More WinAPI problems

Regan Heath regan at netmail.co.nz
Fri Jul 20 06:49:55 PDT 2012


On Fri, 20 Jul 2012 14:07:51 +0100, DLimited <tanojoshu at googlemail.com>  
wrote:

> Hello everyone,
>
> I encountered a few more problems while creating my system-wide makro  
> program.
>
> 1)
> I can't load my dll with LoadLibraryW, only LoadLibraryA. Why?

How are you passing the DLL filename to LoadLibraryA/W?  Are you passing a  
string literal, i.e.

LoadLibraryW("C:\\folder\dllname.dll");

Have you tried the string literal suffix 'w', e.g.

LoadLibraryW("C:\\folder\dllname.dll"w);

R


More information about the Digitalmars-d-learn mailing list