Pelles C forum

Pelles C => General discussions => Topic started by: RedGhost on October 23, 2005, 09:23:03 AM

Title: custom entrance must be cdecl?
Post by: RedGhost on October 23, 2005, 09:23:03 AM
for a win32 exe or dll if i define my own entrance

eg:

#pragma comment( linker, "/ENTRY:dll_entrance" )


i get an error that the entrance procedure is unresolved unless it is of the cdecl convention, why is this, am i use /ENTRY wrong?

cheers
Title: custom entrance must be cdecl?
Post by: Pelle on October 23, 2005, 09:12:26 PM
Not really - but some symbols need the fully decorated form (_name@byte-count for a _stdcall symbol, for example). In a perfect world you probably shouldn't have to worry, but...

Pelle
Title: custom entrance must be cdecl?
Post by: RedGhost on October 23, 2005, 09:54:22 PM
perfect, problem resolved