Cannot generate typelibrary... please help understand 
Author Message
 Cannot generate typelibrary... please help understand

folks

I have a struct in my idl file :

typedef
[
    uuid(063F49CC-A611-47f6-8319-CA1D474BE798) ,
 version (1.0) ,
 helpstring("Cabinet Content Information")
]
struct _CabContentInfo
{
  [helpstring("Name of the file as in the Cabinet")] BSTR fileName ;
  [helpstring("Last Modification Timestamp as in the Cabinet")] DATE
lastModified ;
  [helpstring("Size of the file (uncompressed)")] long size ;
  [helpstring("Root Folder Name")] BSTR RootFile ;
  [helpstring("Root Folder Name Length")] long RootFileNameLen ;

Quote:
}  CabContentInfo ;

For some reason, I am getting the following error message :

D:\Projects\vc\cabsdk\Cabinet\Cabinet.idl(45) : warning MIDL2039 : interface
does not conform to [oleautomation] attribute : [ Parameter 'pVal' of
Procedure 'get_ContentInformation' ( Interface 'ICabinetFile' ) ]
D:\Projects\vc\cabsdk\Cabinet\Cabinet.idl(47) : warning MIDL2039 : interface
does not conform to [oleautomation] attribute : [ Parameter 'pVal' of
Procedure 'get_Files' ( Interface 'ICabinetFile' ) ]
midl\oleaut32.dll : warning MIDL2368 : error generating type library,
ignored : Could not set UUID : _CabContentInfo

I cannot understand what "Could not set UUID etc" means. I did generate a
new GUID

All help really appreciated.

regards

srini



Sat, 05 Mar 2005 02:00:57 GMT  
 Cannot generate typelibrary... please help understand
See http://www.mvps.org/vcfaq/com/4.htm

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD

MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

Quote:

> folks

> I have a struct in my idl file :

> typedef
> [
>     uuid(063F49CC-A611-47f6-8319-CA1D474BE798) ,
>  version (1.0) ,
>  helpstring("Cabinet Content Information")
> ]
> struct _CabContentInfo
> {
>   [helpstring("Name of the file as in the Cabinet")] BSTR fileName ;
>   [helpstring("Last Modification Timestamp as in the Cabinet")] DATE
> lastModified ;
>   [helpstring("Size of the file (uncompressed)")] long size ;
>   [helpstring("Root Folder Name")] BSTR RootFile ;
>   [helpstring("Root Folder Name Length")] long RootFileNameLen ;

> }  CabContentInfo ;

> For some reason, I am getting the following error message :

> D:\Projects\vc\cabsdk\Cabinet\Cabinet.idl(45) : warning MIDL2039 : interface
> does not conform to [oleautomation] attribute : [ Parameter 'pVal' of
> Procedure 'get_ContentInformation' ( Interface 'ICabinetFile' ) ]
> D:\Projects\vc\cabsdk\Cabinet\Cabinet.idl(47) : warning MIDL2039 : interface
> does not conform to [oleautomation] attribute : [ Parameter 'pVal' of
> Procedure 'get_Files' ( Interface 'ICabinetFile' ) ]
> midl\oleaut32.dll : warning MIDL2368 : error generating type library,
> ignored : Could not set UUID : _CabContentInfo

> I cannot understand what "Could not set UUID etc" means. I did generate a
> new GUID

> All help really appreciated.

> regards

> srini



Sat, 05 Mar 2005 02:33:37 GMT  
 Cannot generate typelibrary... please help understand
Thanks.

I looked at it. I did the following :

I copied the MIDL.EXE (and MIDLC.exe) from the SDK\BIN directory to the MSVC
directory. (May be I should do something else?)

Did not appear to take care of the "error". The 2 warnings about conforming
to [oleautomation] etc... are gone.

Any further ideas?

Version of the MIDLC.EXE (and MIDL.EXE) shows : 5.00.2157.1 and a modified
date of 10/21

thanks

srini


See http://www.mvps.org/vcfaq/com/4.htm

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD

MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================


Quote:
> folks

> I have a struct in my idl file :

> typedef
> [
>     uuid(063F49CC-A611-47f6-8319-CA1D474BE798) ,
>  version (1.0) ,
>  helpstring("Cabinet Content Information")
> ]
> struct _CabContentInfo
> {
>   [helpstring("Name of the file as in the Cabinet")] BSTR fileName ;
>   [helpstring("Last Modification Timestamp as in the Cabinet")] DATE
> lastModified ;
>   [helpstring("Size of the file (uncompressed)")] long size ;
>   [helpstring("Root Folder Name")] BSTR RootFile ;
>   [helpstring("Root Folder Name Length")] long RootFileNameLen ;

> }  CabContentInfo ;

> For some reason, I am getting the following error message :

> D:\Projects\vc\cabsdk\Cabinet\Cabinet.idl(45) : warning MIDL2039 :
interface
> does not conform to [oleautomation] attribute : [ Parameter 'pVal' of
> Procedure 'get_ContentInformation' ( Interface 'ICabinetFile' ) ]
> D:\Projects\vc\cabsdk\Cabinet\Cabinet.idl(47) : warning MIDL2039 :
interface
> does not conform to [oleautomation] attribute : [ Parameter 'pVal' of
> Procedure 'get_Files' ( Interface 'ICabinetFile' ) ]
> midl\oleaut32.dll : warning MIDL2368 : error generating type library,
> ignored : Could not set UUID : _CabContentInfo

> I cannot understand what "Could not set UUID etc" means. I did generate a
> new GUID

> All help really appreciated.

> regards

> srini



Sat, 05 Mar 2005 04:17:37 GMT  
 Cannot generate typelibrary... please help understand
Ensure your Platform SDK paths come before all others in the
Tools/Options/Directories for Inclides, Libs and Executables.

Also, remove the helpstring for the struct itself.

Finally, dispense with the typedef and use a raw struct. I bet
you don't have any idea why you put the typedef there... (Note
you then use "struct <StructName>" throughiut the IDL source.
In C++ the struct name is a type.)

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD

MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

Quote:

> Thanks.

> I looked at it. I did the following :

> I copied the MIDL.EXE (and MIDLC.exe) from the SDK\BIN directory to the MSVC
> directory. (May be I should do something else?)

> Did not appear to take care of the "error". The 2 warnings about conforming
> to [oleautomation] etc... are gone.

> Any further ideas?

> Version of the MIDLC.EXE (and MIDL.EXE) shows : 5.00.2157.1 and a modified
> date of 10/21

> thanks

> srini



> See http://www.mvps.org/vcfaq/com/4.htm

> --
> =====================================
> Alexander Nickolov
> Microsoft MVP [VC], MCSD

> MVP VC FAQ: http://www.mvps.org/vcfaq
> =====================================



> > folks

> > I have a struct in my idl file :

> > typedef
> > [
> >     uuid(063F49CC-A611-47f6-8319-CA1D474BE798) ,
> >  version (1.0) ,
> >  helpstring("Cabinet Content Information")
> > ]
> > struct _CabContentInfo
> > {
> >   [helpstring("Name of the file as in the Cabinet")] BSTR fileName ;
> >   [helpstring("Last Modification Timestamp as in the Cabinet")] DATE
> > lastModified ;
> >   [helpstring("Size of the file (uncompressed)")] long size ;
> >   [helpstring("Root Folder Name")] BSTR RootFile ;
> >   [helpstring("Root Folder Name Length")] long RootFileNameLen ;

> > }  CabContentInfo ;

> > For some reason, I am getting the following error message :

> > D:\Projects\vc\cabsdk\Cabinet\Cabinet.idl(45) : warning MIDL2039 :
> interface
> > does not conform to [oleautomation] attribute : [ Parameter 'pVal' of
> > Procedure 'get_ContentInformation' ( Interface 'ICabinetFile' ) ]
> > D:\Projects\vc\cabsdk\Cabinet\Cabinet.idl(47) : warning MIDL2039 :
> interface
> > does not conform to [oleautomation] attribute : [ Parameter 'pVal' of
> > Procedure 'get_Files' ( Interface 'ICabinetFile' ) ]
> > midl\oleaut32.dll : warning MIDL2368 : error generating type library,
> > ignored : Could not set UUID : _CabContentInfo

> > I cannot understand what "Could not set UUID etc" means. I did generate a
> > new GUID

> > All help really appreciated.

> > regards

> > srini



Sat, 05 Mar 2005 06:08:01 GMT  
 Cannot generate typelibrary... please help understand
Changing the Tools/Options/Directories took care of the problem.

I did not have to change the struct.

You are quite right -- the struct is to figure out how to pass these things
back and forth. I need to (later). I am still trying to experiment to figure
this out.

thanks once again.

regards

srini

Ensure your Platform SDK paths come before all others in the
Tools/Options/Directories for Inclides, Libs and Executables.

Also, remove the helpstring for the struct itself.

Finally, dispense with the typedef and use a raw struct. I bet
you don't have any idea why you put the typedef there... (Note
you then use "struct <StructName>" throughiut the IDL source.
In C++ the struct name is a type.)

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD

MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================


Quote:
> Thanks.

> I looked at it. I did the following :

> I copied the MIDL.EXE (and MIDLC.exe) from the SDK\BIN directory to the
MSVC
> directory. (May be I should do something else?)

> Did not appear to take care of the "error". The 2 warnings about
conforming
> to [oleautomation] etc... are gone.

> Any further ideas?

> Version of the MIDLC.EXE (and MIDL.EXE) shows : 5.00.2157.1 and a modified
> date of 10/21

> thanks

> srini



> See http://www.mvps.org/vcfaq/com/4.htm

> --
> =====================================
> Alexander Nickolov
> Microsoft MVP [VC], MCSD

> MVP VC FAQ: http://www.mvps.org/vcfaq
> =====================================



> > folks

> > I have a struct in my idl file :

> > typedef
> > [
> >     uuid(063F49CC-A611-47f6-8319-CA1D474BE798) ,
> >  version (1.0) ,
> >  helpstring("Cabinet Content Information")
> > ]
> > struct _CabContentInfo
> > {
> >   [helpstring("Name of the file as in the Cabinet")] BSTR fileName ;
> >   [helpstring("Last Modification Timestamp as in the Cabinet")] DATE
> > lastModified ;
> >   [helpstring("Size of the file (uncompressed)")] long size ;
> >   [helpstring("Root Folder Name")] BSTR RootFile ;
> >   [helpstring("Root Folder Name Length")] long RootFileNameLen ;

> > }  CabContentInfo ;

> > For some reason, I am getting the following error message :

> > D:\Projects\vc\cabsdk\Cabinet\Cabinet.idl(45) : warning MIDL2039 :
> interface
> > does not conform to [oleautomation] attribute : [ Parameter 'pVal' of
> > Procedure 'get_ContentInformation' ( Interface 'ICabinetFile' ) ]
> > D:\Projects\vc\cabsdk\Cabinet\Cabinet.idl(47) : warning MIDL2039 :
> interface
> > does not conform to [oleautomation] attribute : [ Parameter 'pVal' of
> > Procedure 'get_Files' ( Interface 'ICabinetFile' ) ]
> > midl\oleaut32.dll : warning MIDL2368 : error generating type library,
> > ignored : Could not set UUID : _CabContentInfo

> > I cannot understand what "Could not set UUID etc" means. I did generate
a
> > new GUID

> > All help really appreciated.

> > regards

> > srini



Sat, 05 Mar 2005 20:59:12 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Please help : cannot understand error mesg.

2. Learning Linked Lists, Code Attached, My understanding of code attached, Please confirm understanding

3. Help on my C code, dont understand how to fix my compiler errors (PLEASE HELP)

4. Please help!!!!Please help!!!!Please help!!!!Please help!!!!Please help!!!!Please help!!!!Please help!!!!

5. Please help me understand this...

6. Please help, I don't understand

7. New2C: Problems understanding STRUCT Please HELP!!!!

8. Understanding UINT Help Please

9. Cannot understand it..

10. Cannot understand it..

11. CDynLinkLibrary not behaving properly in my ATL App-Wizard generated code, please help

12. Please help!!!!Please help!!!!Please help!!!!

 

 
Powered by phpBB® Forum Software