I am compiling a .odl file to generate a typelib (.tlb) but it appears that the typelib is not being properly registered, meaning when I add new functions they are not showing up.
Although the system gives a current date and time when I actually view the typelib using OleView it is clear that the changes I tried to make during the compilation are not getting through. Similarly, if I, say, keep everything else the same but change version from 1.0 to 1.1, the registry only shows version 1.0 (what I currently have installed) but as I understand it should have a subfolder for each version.
I am using Visual Studio 2005. Here are snippets of the odl
// pwrs.odl : type library source for pwrs.exe// This file will be processed by the MIDL compiler to produce the// type library (pwrs.tlb).[ uuid(FBA79343-34E9-11D1-8A7F-000000000000), version(1.1) ]library Pwrs{ importlib("stdole32.tlb"); // Primary dispatch interface for CPwrsDoc typedef enum { // Vessel Characteristics VCH_FOREPERP = 1, VCH_AFTPERP, VCH_LCG, VCH_VCG, VCH_RG, VCH_W, VCH_KAR, VCH_CBF, VCH_CBMM, VCH_CDC, VCH_CPILEUP1, VCH_CPILEUP2, VCH_CPILEUP3, VCH_CPILEUP4, VCH_OPVELOCITY, VCH_CALMHEAVE, VCH_PITCHRG, VCH_ROLLRG, VCH_TCG, VCH_B22Q, VCH_B44Q, VCH_B66Q, VCH_LATADMFACTOR, VCH_ROLLADMFACTOR, VCH_ATRANSOM } enumVesselChar; ... (all other required enums defined) ... [ uuid(FBA79344-34E9-11D1-8A7F-000000000000) ] dispinterface IPwrs { properties: // NOTE - ClassWizard will maintain property information here. // Use extreme caution when editing this section. //{{AFX_ODL_PROP(CPwrsDoc) [id(1)] boolean bPrintHeadings; [id(2)] boolean bPrintTitle; [id(3)] short cDelim; ... [id(25)] enumHydCoeffStatus iHydParamStatus; [id(26)] short iOpVelUnits; [id(27)] enumResidForceMode iResidForceMode; [id(28)] double dCalmHeave; //}}AFX_ODL_PROP methods: // NOTE - ClassWizard will maintain method information here. // Use extreme caution when editing this section. //{{AFX_ODL_METHOD(CPwrsDoc) [id(29)] boolean SetVesselChar(enumVesselChar iVar, double dVal); [id(30)] double GetVesselChar(short iVar); ... [id(166)] boolean SaveTextWindowAs(BSTR sPath); [id(167)] boolean SimpleHydrostatics(VARIANT_BOOL bCtrlValid); //}}AFX_ODL_METHOD }; // Class information for CPwrsDoc [ uuid(FBA79342-34E9-11D1-8A7F-000000000000) ] coclass Document { [default] dispinterface IPwrs; }; //{{AFX_APPEND_ODL}} //}}AFX_APPEND_ODL}}};