Hi tinycc-devel team, please check this bug, thanks ;D
------- Original Message ------- 2022年9月12日 星期一 下午 3:55,Fabrice Bellard <[email protected]> 来信: > Hi, > > You should send the bug report to the tinycc-devel mailing list. > > Best regards, > > Fabrice. > > On 9/9/22 5:24 AM, NPbTgv wrote: > > > Hi bellard, > > > > Recent, I use tcc to build win32 C code as bellow: > > > > /// version 1 not work, exe program exception exit/ > > /HANDLE h = LoadLibrary(DLLPATH);/ > > /void* func = GetProcAddress((HMODULE)h, "Function_Name");/ > > /((void (WINAPI*)(char*, int))func)("str", 1); // not work/ > > / > > / > > /// version 2 work/ > > /HANDLE h = LoadLibrary(DLLPATH);/ > > /void* func = GetProcAddress((HMODULE)h, "Function_Name");/ > > /((void (WINAPI*)(char*, int))*func)("str", 1); // work/ > > / > > / > > /// version 3 work/ > > /HANDLE h = LoadLibrary(DLLPATH);/ > > /void (WINAPI func)(char, int) = GetProcAddress((HMODULE)h, > > "Function_Name");/ > > /func("str", 1); // work/ > > // > > > > I also test with msvc compiler, 1,2,3 version are work. > > I think version 1,2,3 are equal code, why version 1 not work? _______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
