I just need some help figuring out how to fix this. the dll is inpout32.dll and it has a corresponding lib file. this is a windows forms application (io.cpp) in its infancy.
Here is the error:
Code:
------ Build started: Project: io, Configuration: Debug Win32 ------
Compiling...
io.cpp
k:\program files\io\io\io\Form1.h(320) : warning C4441: calling convention of '__stdcall ' ignored; '__clrcall ' used instead
k:\program files\io\io\io\Form1.h(321) : warning C4441: calling convention of '__stdcall ' ignored; '__clrcall ' used instead
Linking...
io.obj : error LNK2020: unresolved token (06000004) io.Form1::Inp32
io.obj : error LNK2020: unresolved token (06000005) io.Form1::Out32
K:\Program files\io\io\Debug\io.exe : fatal error LNK1120: 2 unresolved externals
Build log was saved at "file://k:\Program files\io\io\io\Debug\BuildLog.htm"
io - 3 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
and here is the code I tried to use that brought the error up:
Code:
int reg;
reg=Inp32(378);
short _stdcall Inp32(short PortAddress);
void _stdcall Out32(short PortAddress, short data);