tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Fw: Re: tcc BUG report


From: NPbTgv
Subject: [Tinycc-devel] Fw: Re: tcc BUG report
Date: Mon, 12 Sep 2022 15:02:13 +0000

Hi tinycc-devel team,

please check this bug, thanks ;D

------- Original Message -------
2022年9月12日 星期一 下午 3:55,Fabrice Bellard <fabrice@bellard.org> 来信:


> 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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]