Re: Can't compile VC++ program that call a VB DLL
Tim Slattery <Slattery_T@bls.gov> wrote:
LINK : fatal error LNK1104: cannot open file ".\Debug\xxvbdll.res"
OK, I resolved that by right-clicking "xxvbdll.rc" and compiling. I
have no clue why it couldn't compile that file as part of the build.
Now I'm getting unresolved externals. In the dgsCrypto_i.cpp file that
I made by compiling the *.idl file is this:
const IID IID__dgsAES =
{0xBC82FBAC,0x9F60,0x418D,{0xA4,0xE6,0x24,0xF0,0x32,0x51,0x1F,0xFB}};
const CLSID CLSID_dgsAES =
{0xEA20384E,0x4D4B,0x46CC,{0xAC,0x2D,0x51,0x4D,0x4F,0xDF,0xF9,0xC8}};
My CoCreateInstance call is as follows:
_dgsAES *IVBdgsAES = NULL;
hr = CoCreateInstance( CLSID_dgsAES,
NULL,
CLSCTX_INPROC_SERVER,
IID__dgsAES,
(void**) &IVBdgsAES);
I get these error messages:
xxvbdll.obj : error LNK2001: unresolved external symbol _CLSID_dgsAES
xxvbdll.obj : error LNK2001: unresolved external symbol _IID__dgsAES
What have I missed now?
--
Tim Slattery
MS MVP(Shell/User)
Slattery_T@bls.gov
http://members.cox.net/slatteryt