Search:

Type: Posts; User: Jonnster

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,091

    I am using VC 6 and have an application which...

    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:

    ...
  2. Replies
    1
    Views
    1,021

    I seem to have fixed this. I was creating the...

    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...
  3. Replies
    1
    Views
    1,021

    FTP Download And Stack Overflow

    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....
  4. Replies
    1
    Views
    1,660

    I solved this myself and thougt I would update...

    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...
  5. Replies
    1
    Views
    1,660

    SMTP Relay And CDO?

    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...
  6. Replies
    4
    Views
    1,435

    No I'm not and as stated in the original post, it...

    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 ;)
  7. Replies
    4
    Views
    1,435

    GetFileAttributes And VirtualBox

    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....
  8. Replies
    2
    Views
    5,587

    Get yesterdays date from time_t?

    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...
  9. Replies
    2
    Views
    4,828

    CopyFile With Wildcards?

    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:
    ...
  10. Replies
    2
    Views
    1,584

    See, I said my brain had given up for the day.

    See, I said my brain had given up for the day.
  11. Replies
    2
    Views
    1,584

    Convert a long to negative?

    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);
    ...
  12. Replies
    9
    Views
    7,969

    It compiles now. Many thanks for your help.

    It compiles now. Many thanks for your help.
  13. Replies
    9
    Views
    7,969

    map < string, vector >::iterator i =...

    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...
  14. Replies
    9
    Views
    7,969

    I was expecting to do a find on the map, and with...

    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?
  15. Replies
    9
    Views
    7,969

    first time with maps. I have been reading up but...

    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...
  16. Replies
    9
    Views
    7,969

    STL Map Of Vectors

    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...
  17. Replies
    6
    Views
    3,378

    Yes, that's the answer I was expecting but it's...

    Yes, that's the answer I was expecting but it's not catching it. I'm not really sure why.
  18. Replies
    6
    Views
    3,378

    Catching A HRESULT?

    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?
Results 1 to 18 of 18