CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Paul McKenzie

Search: Search took 4.81 seconds.

  1. Re: Newbie to DLLs... DLL not loading using LoadLibrary

    But you're missing the general point.

    Regardless of the character set used, the code I gave you is correct. The _T() (or TEXT()) macro automatically sets string literals to either ANSI or wide,...
  2. Re: Newbie to DLLs... DLL not loading using LoadLibrary

    Second, you don't cast from one char type to another:


    HINSTANCE hInstLibrary = LoadLibrary((WCHAR*)"DLL_Tutorial.dll");
    Never do this. You cannot just change from one string type to another by...
  3. Re: Newbie to DLLs... DLL not loading using LoadLibrary

    I guess that tutorial didn't teach you to call GetLastError if LoadLibrary fails:

    http://msdn.microsoft.com/en-us/library/ms886736.aspx

    Regards,

    Paul McKenzie
Results 1 to 3 of 3





Click Here to Expand Forum to Full Width

Featured