• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Windows Extension only can Load the 32bit DLL?

Zhanghua

Member
Code:
test = external_define("a.dll","abc1",dll_cdecl,ty_real,0);
var ret = external_call(test);
show_debug_message( ret );
If I use the mingw32 to build the shared dll, It's ease.
But I use the -m64 option to generate the dll, GMS2 will show the Err:
Code:
LoadLibraryA failed with error code 193
 
L

Lonewolff

Guest
That would be correct.

The only way to use the 64 bit DLL is for 64 bit game builds. The only Windows build that is 64 bit is UWP.

With UWP you'll find your 32 bit DLL version won't work.

The DLL must match the build target.

Desktop - 32 bit
UWP - 64 bit (can't recall if there is a 32 bit build option in UWP, there might we'll be)
 

Zhanghua

Member
That would be correct.

The only way to use the 64 bit DLL is for 64 bit game builds. The only Windows build that is 64 bit is UWP.

With UWP you'll find your 32 bit DLL version won't work.

The DLL must match the build target.

Desktop - 32 bit
UWP - 64 bit (can't recall if there is a 32 bit build option in UWP, there might we'll be)
OK, gocha
 
Top