I am using VC 6 and have an application which links in several static libraries. Everything had been working fine but now when I build the main exe I get the following error:
...
Type: Posts; User: Jonnster
I am using VC 6 and have an application which links in several static libraries. Everything had been working fine but now when I build the main exe I get the following error:
...
I seem to have fixed this. I was creating the thread in the OnInitDialog of my CDialog derived class. Doing so causes a stack overflow in the thread. However, if I start the thread after OnInitDialog...
I have a worker thread which I start with AfxBeginThread. This threads tries to download a file from FTP but when it hits the GetFile function it causes a stack overflow and Visual Studio disappears....
I solved this myself and thougt I would update the thread. I then tried using Outlook Express and got the same error. This made me realise it must be a problem with the settings of my local SMTP...
I have installed IIS on my local machine. The SMTP is setup to then relay the messages through a remote smtp server. If I just drop email text files in the pickup directory it works fine. However, in...
No I'm not and as stated in the original post, it works fine on a non-virtual machine. It is only on a virtual machine that this happens. Your blind guess wouldn't work on either ;)
I have an application which creates a local directory. Later on, elsewhere in the code this path is checked by using GetFileAttributes and checking that the FILE_ATTRIBUTE_DIRECTORY flag was present....
I have a time_t structure with the current date/time.
What I want is to work out yesterday's date from this. Just subtracting one from the day is not enough as it needs to take the first of the...
I am sure I have used the equivalent function in .NET to do this but on Visual C++ 6 it doesn't like me trying to copy files using a wildcard to a new directory.
Like:
...
See, I said my brain had given up for the day.
This is something really easy but my brain is struggling today. I have a long which has a value of 10. I want to convert it to negative (i.e. -10)
I am using
lValue = lValue - (lValue * 2);
...
It compiles now. Many thanks for your help.
map < string, vector <CMyClass> >::iterator i = m_MyMap.find("sometext");
CMyClass data;
// code to set data removed
(*i)->push_back(data);
I've removed the checks on the find for...
I was expecting to do a find on the map, and with the iterator of this do:
(*i)->push_back(data);
This doesn't compile. So how would I push a new element to the vector?
first time with maps. I have been reading up but I was under the impression if I called find for a specific string key, I would just get a copy of the vector in the map. Therefore any push_back...
I want a map like this:
map< string, vector<CMyClass> > m_mymap;
Does anyone have any examples of inserting into a map like this, finding particular keys, getting the vector and adding to the...
Yes, that's the answer I was expecting but it's not catching it. I'm not really sure why.
I am having to use some old legacy code which throws HRESULTS. How do I catch these exceptions? What is the catch parameter for it?