M
Microsoft
Hi,
I am trying to use an activeX created using Delphi7 in "Visual studio 6" and
"Visual studio 7". In my activeX, I have methods which return IStrings.
when I use the created OCX in VC6 (VC++), there is a wrapper created for
IStrings called CStrings which provides all the functionality of IStrings
and works fine.
But when i use my OCX in VC7 (visual C .Net), the method which is supposed
to return IStrings now returns LPDISPATCH. I imported the .tlb file to gain
access to IStrings interface. When the project is compiled after importing
the .tlb file, I get errors saying "IStringsPtr: Missing storage class or
type specifier" from the .tlh file. I even tried importing the stdvcl40.tlb
where IStrings interface is defined. But did not suppress the errors.
The above problem does not exist in case of C#.Net or VB.Net. The methods
that return IStrings are exposed as is.
If anybody has encountered such a problem, please let me know how to
overcome it.
Thanks in advance.
I am trying to use an activeX created using Delphi7 in "Visual studio 6" and
"Visual studio 7". In my activeX, I have methods which return IStrings.
when I use the created OCX in VC6 (VC++), there is a wrapper created for
IStrings called CStrings which provides all the functionality of IStrings
and works fine.
But when i use my OCX in VC7 (visual C .Net), the method which is supposed
to return IStrings now returns LPDISPATCH. I imported the .tlb file to gain
access to IStrings interface. When the project is compiled after importing
the .tlb file, I get errors saying "IStringsPtr: Missing storage class or
type specifier" from the .tlh file. I even tried importing the stdvcl40.tlb
where IStrings interface is defined. But did not suppress the errors.
The above problem does not exist in case of C#.Net or VB.Net. The methods
that return IStrings are exposed as is.
If anybody has encountered such a problem, please let me know how to
overcome it.
Thanks in advance.