I'm trying to wrap a SOAP webservice in an OCX and one option is to write the webservice wrapper in C# and export it as a .NET/COM interoperabilit y object, as in http://support.microsoft.com/kb/908574
However, when I attempt this initially I got a could not import tlb error when compiling the C++, I fixed this by correcting the path on the import line and that error went away - so I'm pretty confident the tlb is now being properly imported. I now get lots of undefined errors for all of the symbols that should be created e.g. my equivalent of IHelloWorldPtr, ptrHW etc... I've tried inspecting the TLB using the COM/OLE Viewer, but this doesn't seem to contain any of the names I'd recognise.
There seems to be a gap in all of the tutorials I've found that doesn't explain how the class names and interface names I use get translated in to the Ptr style names that appear in the C++ examples - I'm sure its something so obvious that no-one sees the need to mention it.
There's another example at http://support.microsoft.com/kb/828736/ but again it seems to skip over how you find out what the ICalculatorPtr and pICalc should be called if you only have the C# source to refer to.
Apologies if this isn't quite the right forum - because it spans .NET, OLE, COM, C++ and C# I wasn't sure of the best place for it.
Help would be much appreciated!
Alex
However, when I attempt this initially I got a could not import tlb error when compiling the C++, I fixed this by correcting the path on the import line and that error went away - so I'm pretty confident the tlb is now being properly imported. I now get lots of undefined errors for all of the symbols that should be created e.g. my equivalent of IHelloWorldPtr, ptrHW etc... I've tried inspecting the TLB using the COM/OLE Viewer, but this doesn't seem to contain any of the names I'd recognise.
There seems to be a gap in all of the tutorials I've found that doesn't explain how the class names and interface names I use get translated in to the Ptr style names that appear in the C++ examples - I'm sure its something so obvious that no-one sees the need to mention it.
There's another example at http://support.microsoft.com/kb/828736/ but again it seems to skip over how you find out what the ICalculatorPtr and pICalc should be called if you only have the C# source to refer to.
Apologies if this isn't quite the right forum - because it spans .NET, OLE, COM, C++ and C# I wasn't sure of the best place for it.
Help would be much appreciated!
Alex
Comment