October 10th, 2009, 05:19 PM
LoadLibrary("*.dll") vs LoadLibraryA(".dll")
I am programming an ansi C application that needs to load a .dll.
My line of code is the next:
hCodigo = LoadLibrary("zlib1.dll");
when I try to run the program that way it doesnt find the dll, I started searching and find that exists LoadLibraryA, the program works using that function,
but why it doesnt work with LoadLibrary("dll")??
also, are there any differences in those functions?
I know that the last A is for Ansi, this is the only i found about LoadLibrary, hehe.
Btw, I read somewhere that i should use _T("dll") but that didnt work.
the dll is in both folders system and system32.
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!