AfxGetThread() == NULL ???



  • Kann mir jemand sagen, warum AfxGetThread() in einer exportierten Funktion einer DLL NULL zurückliefert?



  • Remarks

    Must be called from within the desired thread.

    Note If you are porting an MFC project calling AfxGetThread from Visual C++ versions 4.2, 5.0, or 6.0, AfxGetThread calls AfxGetApp if no thread is found. In Visual C+ .NET and later, AfxGetThread returns NULL if no thread was found. If you want the application thread, you must call AfxGetApp.

    😉


Anmelden zum Antworten