Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLL Help Compiling

Status
Not open for further replies.

psandekian

Programmer
Oct 12, 2000
48
US
I'm adding error constants to a DLL and it has an error in a file called nsm.tlb. I'm new to VC++ and when I look at this file, it's looks like numbers and letters to me. I cannot copy/paste it so I will type a line:
Code:
000e90  47 5F 53 49 5A 45 5F 45  58 43 45 45 44 45 44 57 G_SIZE_EXCEEDEDW
I see where my constant was added but I have no clue as to what could be wrong.
Code:
000f70  1A 30 6B FF 4E 53 4D 5F  45 52 52 4F 52 5F 48 41 .Ok.NSM_ERROR_HA
000f80  53 5F 4F 50 45 4E 5F 48  41 4E 44 4C 45 53 57 57  S_OPEN_HANDLESWW
My error constant is "NSM_ERROR_HAS_OPEN_HANDLES" with a constant of "0xf0000034L". The error message does not give any info. It says:

--------------------Configuration: nsm - Win32 Debug--------------------
Creating Type Library...
nsm.odl
oaidl.idl
objidl.idl
unknwn.idl
wtypes.idl
Error executing midl.exe.

nsm.tlb - 1 error(s), 0 warning(s)

Can someone give me some suggestions?

Thanks.
Patty
 
You don't want to look at the type library (it is the compiled output) but rather the input. MIDL.EXE is the Microsoft IDL compiler (IDL is "Interface Definition Language).

I suspect the problem is the first line: shouldn't it be pulling in nsm.idl, not nsm.odl?

Hope that helps!

Pat Gleason
gleason@megsinet.net

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top