Typelibrary for Pages and GetModifiedFOrmPages

  • Thread starter Thread starter Michael Tissington
  • Start date Start date
M

Michael Tissington

What type library do I need to use for the Pages collection and a Page item
returned from GetModifiedFormPages ?

Thanks
 
MSForms 2.0. If you use anything from there in your code make sure to
declare the objects as Object and not as strongly typed objects.
 
Ken,

Thanks, I'm using C++ and when I include this (fm20.dll) in my project I get
a number of unknowns ...

Picture and MouseIcon, any idea which Typelib these maybe in ?

Why should they not be strongly type cast ?

--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com
 
No idea, I use VB 6 and have no problems when I reference MS Forms 2.0. I
haven't ever used it with C++ however.

Picture is a StdPicture in the stdole library and MouseIcon is also declared
as StdPicture, accoriding to the Object Browser in Outlook VBA.
 
Michael,

if you haven't already cracked this one, this is how I import fm20.dll:

#import <fm20.dll> no_auto_exclude \
no_namespace \
named_guids \
rename("OLE_COLOR", "FormsOLE_COLOR") \
rename("OLE_HANDLE", "FormsOLE_HANDLE") \
rename("Pages", "FormPages") \
rename("IFont", "FormsFont")

HTH
Matt Fletcher

Ken Slovak - said:
No idea, I use VB 6 and have no problems when I reference MS Forms 2.0. I
haven't ever used it with C++ however.

Picture is a StdPicture in the stdole library and MouseIcon is also declared
as StdPicture, accoriding to the Object Browser in Outlook VBA.
 
Oh, and I include the following typedefs first:

#define Picture IPictureDisp
#define PicturePtr IPictureDispPtr

MF

Matt Fletcher said:
Michael,

if you haven't already cracked this one, this is how I import fm20.dll:

#import <fm20.dll> no_auto_exclude \
no_namespace \
named_guids \
rename("OLE_COLOR", "FormsOLE_COLOR") \
rename("OLE_HANDLE", "FormsOLE_HANDLE") \
rename("Pages", "FormPages") \
rename("IFont", "FormsFont")

HTH
Matt Fletcher
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top