Using BCB for making Zilmar spec plugins
Ok.. here are some dumb questions..
BCB will mangle names not a big deal that can be worked around.. here comes the real question what is the deal with _cdecl? It seems to create a non standard function call system..
So basically it's NOT possible to use any compilor other than VC++ to make DLL's for 'the spec' of PJ 64 or any other N64 emulator adhering to the Zilmar specs.
as far as I can tell _cdecl should only use the Microsoft C passing conventions right? is this not the same as _stdcall? or is _stdcall a seperate standard?
Does _stdcall use MSpascal and MSfortran conventions?
My problem is functions are being exported without the _ in front of them, which is non standard IF you are using _cdecl (C calling conventions). That's the default for BCB (C calling convention and _ in the front). I can't seem to create a DEF file that changes the names of the functions/ maps them to without the preceeding _ either... arg. No wonder Dave stoped using BCB.. unfortunately the problem doesn't really seem to be BCB but with VC++ not using .. standards.
Have suggestions? Note.. VC++ sucks in it's socket implementation and the documentation they have is worse yet. No wonder people curse MS's name so much.
I have VC.NET I just don't want to use the piece of crap.
Cyb
Ok.. here are some dumb questions..
BCB will mangle names not a big deal that can be worked around.. here comes the real question what is the deal with _cdecl? It seems to create a non standard function call system..
So basically it's NOT possible to use any compilor other than VC++ to make DLL's for 'the spec' of PJ 64 or any other N64 emulator adhering to the Zilmar specs.
as far as I can tell _cdecl should only use the Microsoft C passing conventions right? is this not the same as _stdcall? or is _stdcall a seperate standard?
Does _stdcall use MSpascal and MSfortran conventions?
My problem is functions are being exported without the _ in front of them, which is non standard IF you are using _cdecl (C calling conventions). That's the default for BCB (C calling convention and _ in the front). I can't seem to create a DEF file that changes the names of the functions/ maps them to without the preceeding _ either... arg. No wonder Dave stoped using BCB.. unfortunately the problem doesn't really seem to be BCB but with VC++ not using .. standards.
Have suggestions? Note.. VC++ sucks in it's socket implementation and the documentation they have is worse yet. No wonder people curse MS's name so much.
I have VC.NET I just don't want to use the piece of crap.
Cyb
Last edited: