NO

Author Topic: custom entrance must be cdecl?  (Read 2656 times)

RedGhost

  • Guest
custom entrance must be cdecl?
« on: October 23, 2005, 09:23:03 AM »
for a win32 exe or dll if i define my own entrance

eg:
Code: [Select]

#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

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
custom entrance must be cdecl?
« Reply #1 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
/Pelle

RedGhost

  • Guest
custom entrance must be cdecl?
« Reply #2 on: October 23, 2005, 09:54:22 PM »
perfect, problem resolved