At the risk of appearing a dinosaur, I have some old C++ code, compiled with Borland C++, which sets registers, and interfaces to an Assembler module, which I would like to modernize. I have just installed MS VC++ Express, and needless to say a lot of things don't work! The default seems to be Win32, which is fine, so I have blanked out FAR and HUGE. PASCAL seems to map to __stdcall. So I have a macro
#define THRCOMP extern "C" int FAR PASCAL _Export
where THRCOMP
goes in front of a module name. This presumably results in something like
extern "C" int __stdcall _Export <modname>;
which the compiler doesn't like, and puts out a message about an "anachronism" (doesn't say what!). What is wrong?
Also the old code sets has in-line Assembler which I need to turn into a separately compiled subroutine - is there a (free) Assembler, and can it link Assembler obj decks in with C++?
By the way, I can't see my obj decks - but WinZip picked them up! Explanation?
Generally, is there a guide to migrating old C++ code?
Thanks in advance.