using d dll/lib with msvc program

Froglegs lugtug at yahoo.com
Sun May 13 20:56:24 PDT 2012


> 	HINSTANCE LoadME;
> 	LoadME = LoadLibrary(L"C:\\Users\\CrashTUA\\Documents\\visual 
> studio 
> 2010\\Projects\\DynamicLib1\\DynamicLib1\\Release\\DynamicLib1.dll");
> 	func dllprintt;
> 	dllprintt = (func)GetProcAddress(LoadME,"trololo");
> 	int i = dllprintt();
> 	return 0;
> And it gives me acces violation...

  Well did LoadLibrary or did GetProcAddress fail?


More information about the Digitalmars-d mailing list