I'm trying to convert a 16-bit dll to 32-bit. The dll uses an ojbect file that I created using MASM 6.11c. I compiled the ASM file and have a new 32-bit .OBJ file. It compiled with no errors. The relevent part of the ASM file follows:
.model flat, stdcall
M250 PROC NEAR COMMAND:DWORD, L_RESPONSE:DWORD, RET_ERROR:DWORD
In the header file for the dll, I have the following line to define the prototype for M250:
BOOL __stdcall M250(short *command, long *response, short
The TargetExpert options are Platform:Win32 and Target Model: Console.
And the IDE project looks like this:
When I attempt to build the dll. I get the following message
Info :Compiling C:\Model250\250ewin\version5\32bit\250dlld.cpp
Info :Linking C:\Model250\250ewin\version5\32bit\250dll32.dll
Warn : Warning: .DEF file heap reserve size < 64K; 1MB default will be used
Warn : Warning: .DEF file stack reserve size < 64K; 1MB default will be used
Error: Error: Unresolved external 'M250' referenced from module 250dlld.cpp
What am I doing wrong? The project compiles and runs fine when I built it for 16-bit.