|
Hey,
I lost the Intgration of VSS with my MSDEV. In the "projects" menu, there is no "Source control" option. There is no such tab in "Options" too.
How can i reintegrate MSDEV with VSS?
Thanks in ADvance
shijuck
|
|
|
|
|
|
How I re-register ssscc.dll ?
I dont have the previous experience in it.
please help me.
shijuck
|
|
|
|
|
|
Hi
Does anyone know how I can find out what exception has actualy
been thrown when I catch it with catch (...) block.
/Per
|
|
|
|
|
all the other exceptions that has not been catched with previous catch block. you can imagine its behavior like the default statement of a switch...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
I woul'd like to catch the exception, but I don't know what type it is. Can I figure that out in some way?
|
|
|
|
|
|
I don't think so either. In cases where you specify the exception type, you can do something like catch(CexType& ex)
and that gives you an object you can interrogate, perhaps using RTTI, but in the ellipsis case, there's nothing to help you.
Steve S
Developer for hire
|
|
|
|
|
Most frameworks provide a base class that all exceptions should be derived from for this reason. For example MFC has a CException class.
In all but the most exceptional (pun intended) circumstances exceptions should derive from std::exception, the exception base class for the C++ Standard library. Rather than catch(...), use catch(std::exception& )
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts your aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
I am using a dll that is returning a byte buffer and bitmapinfoheader
my front end is mfc appliction dialog box and now i want to draw that image byte buffer (that is accompanied by bitmapinfoheader)to my dialog box also the image is very large so i wan to scale it inorder to draw.
can any body help me
|
|
|
|
|
I know it's a little old, but this function works and is pretty easy to use.
DrawDibDraw()
|
|
|
|
|
use BitBlt().....
that might help.....
happy programmin.....
cheerz.....
|
|
|
|
|
Look the scale is almost irrelivante (does not matter).
Never mind (I am not in the mode)! If you have the bitmapinfoheader, then you should know what (should) follow.
I started to go into all the ways this could be handled, but blank that, either you are recieving a bitmap (or DIB) or not (or some other [none-Window} reconized protocal, or you are not).
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
Hi everyone, i have a wrapper calss of std::list<T> that compiles well under VC6.0 but under VC7.1 gegerates syntax error. the listings of the file are as follows:
.h file looks like this
template <class T> class myList
{
public:
list<T>::reference front();
protected:
list<T> m_lItems;
};
and .cpp file looks like this
template <class T> list<T>::reference myList<T>::back()
{
list<T>::reference r = m_lItems.back();
return r;
}
any help why this code is being compiled in VC6 but not in VC7.1.
the error it generated is
error C2143: syntax error : missing ';' before '<
Tariq
|
|
|
|
|
template class myList
{
public:
list::reference front();
protected:
list m_lItems;
};
and .cpp file looks like this
template list::reference myList::back()
{
list::reference r = m_lItems.back();
return r;
}
---------------------------------------------------------
Questions:
1) Where is the list?
You do not difine it (declare it) or what ever...
---------------------------------------------------------
Answer:
1) It is not there!
---------------------------------------------------------
How to declare a list class from a given template:
#include <list>typedef list<byte> CByteList;
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
Well, the class declaration doesn't have a back() method, so that's an error. You also need to have the method's code in the header file, or you'll get linker errors. But to fix the error you posted about, remove the <T> as shown:
template <class T> list<T>::reference myList<s><T></s>::back()
--Mike--
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ | You Are Dumb
|
|
|
|
|
This my first messege in my first day at this perfect site
I have a problem using the Friend Function in microsoft visual C++ .I have a multifile program contains statements like this
friend bool operator < (const tenant&, const tenant&);<br />
bool operator < (const tenant& t1, const tenant& t2)<br />
{ return t1.name < t2.name; }
compiler flags me errors like these:
error C2593: 'operator <' is ambiguous
error C2248: 'name' : cannot access private member declared in class 'tenant'
Can any one help me ..
please my friends.
Abuamr Alareefi
|
|
|
|
|
Well, I do not know if this helps at all but both the declaration refer to the same thing, I think, (no wonder the compiler upset).
//declaration in class tenant within a header file.
friend bool operator < (const tenant&, const tenant&); // friend to whom?
//definition in the source file.
bool operator < (const tenant& t1, const tenant& t2) // may not care
{ return t1.name < t2.name; }
I do not know the symantics, but this is wrong unless you know who your fiend is.
I'll assume, yor wrote the version:
//declaration in class tenant within a header file.
friend bool operator < (const tenant&, const tenant&); // friend to whom?
That should not be needed it the version:
//definition in the source file.
bool operator < (const tenant& t1, const tenant& t2) // may not care
{ return t1.name < t2.name; }
Already exists.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
got a problem in the following code
void main()
{
IGraphBuilder *pGraph = NULL;
IMediaControl *pControl = NULL;
IMediaEvent *pEvent = NULL;
// Initialize the COM library.
HRESULT hr = CoInitialize(NULL);
if (FAILED(hr))
{
printf("ERROR - Could not initialize COM library");
return;
}
// Create the filter graph manager and query for interfaces.
hr = CoCreateInstance(CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER,
IID_IGraphBuilder, (void **)&pGraph);
if (FAILED(hr))
{
printf("ERROR - Could not create the Filter Graph Manager.");
return;
}
hr = pGraph->QueryInterface(IID_IMediaControl, (void **)&pControl);
hr = pGraph->QueryInterface(IID_IMediaEvent, (void **)&pEvent);
// Build the graph. IMPORTANT: Change this string to a file on your system.
hr = pGraph->RenderFile(L"C:\\Example.avi", NULL);
if (SUCCEEDED(hr))
{
// Run the graph.
hr = pControl->Run();
if (SUCCEEDED(hr))
{
// Wait for completion.
long evCode;
pEvent->WaitForCompletion(INFINITE, &evCode);
// Note: Do not use INFINITE in a real application, because it
// can block indefinitely.
}
}
pControl->Release();
pEvent->Release();
pGraph->Release();
CoUninitialize();
}
the compliler says, "Unresolved externals;
CLSID_FilterGraph
IID_IMediaEvent
IID_IMediaControl
IID_IGraphBuilder
mir
|
|
|
|
|
I assume you included something like dshow.h or your code wouldn't have compiled. Try including thoe header files that define those guids in a single source file in your project like this:
Assume this were a file called guids.cpp in you project.
#include <initguid.h>
#include <dshow.h>
#include <uuids.h> // or maybe just include these instead of dshow.h
#include <control.h>
|
|
|
|
|
Sorry about that <'s got treated as html tags.
I assume you included something like dshow.h or your code wouldn't have compiled. Try including thoe header files that define those guids in a single source file in your project like this:
Assume this were a file called guids.cpp in you project.
#include <initguid.h>
#include <dshow.h>
#include <uuids.h> // or maybe just include these instead of dshow.h
#include <control.h>
|
|
|
|
|
How to insert bmp,jpeg images to a button control from a file.
Sreeja
|
|
|
|
|
can u be more specific.....
i mean do u want to load this dynamically??(that is when the program is runnning)
or is that u already have a file that u want to put into the button before running the program.....
if it is the latter.....
use this.....
myButton.SetBitmap( ::LoadBitmap(NULL, MAKEINTRESOURCE(OBM_CHECK)) );
therz a lot of documentation in the msdn.....search in Cbutton
hope that helpz.....
happy programmin.....
cheerz.....
|
|
|
|
|
I want to download a file with an https url which requires authentication. Obviously doing this with an internet browser works but I have to supply the username and password in a popup authentication dialog. I am able to download files using plain old http without authentication by using the following API's:
HINTERNET h=InternetOpen("Session Name", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0);
HINTERNET h2=InternetOpenUrl(h, "http://....", NULL, 0, 0, NULL);
char buf[2048];
DWORD dwRead;
InternetRead(h2, buf, 2048, &dwRead);
I tried using InternetOpen() then InternetConnect() because connect too username/password parameters but I guess I must be missing something after that because the InternetRead doesn't work. I think I need to send and Http request but I'm not sure what or how.
|
|
|
|