The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: johnsa on May 19, 2008, 01:00:20 PM

Title: Asm and Visual C++ 2008
Post by: johnsa on May 19, 2008, 01:00:20 PM
Hey all,

Seem to be having issues with getting an asm built DLL to link with a Visual Studio 2008/C++ project. I'm sure this used to work fine last time I tried with VS6.0.

ASM DLL is standard with a DEF file as follows:

LIBRARY testdll

EXPORTS
TestFunc

Assembler options per normal /c /coff .. linked using v6.0 of link .. generates DLL and LIB files fine.

In VC++ 2008 added lib file to linker input options and added the following prototype:
extern "C" void TestFunc();

also tried adding in __stdcall .. both come up with linker errors of unresolved external.

Any ideas?
Thanks!
Title: Re: Asm and Visual C++ 2008
Post by: Adamanteus on May 19, 2008, 08:52:50 PM
Try in asm module : .model flat, c - that to add underscore  :clap: