IStrings in delphi, IStringsPtr in VC7 (.NET) - please help!!!!!

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.
 

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

Top