The javascript error you are seeing indicates that the callme() method is not found on the object SPW...I agree
I'll add the test and get back to you
So you have built a DLL in C# and have exported a COM interface? Not sure what you mean by export Comm Interface.
Is it essential that you use pointers? The code that is contained within the DLL uses pointers...Is it possible to use the COM Interop functions to marshall the pointers? Dunno, not familar with this interested to learn
Main Topics
Browse All Topics





by: rherguthPosted on 2006-06-01 at 13:35:00ID: 16811163
I'm not sure why you are seeing this behavor.
The javascript error you are seeing indicates that the callme() method is not found on the object SPW. If the browser security settings were blocking the object, then SPW would be unavailable and you would see an "object not found" type of error. You can test for this type of error using:
if (!SPW) alert("ActiveX component not installed")
So you have built a DLL in C# and have exported a COM interface?
Since javascript can only late-bind to SPW, the callme() method must be on the default interface, otherwise, it will be invisible to the browser. The object browser should identify the callme() method on the default interface.
Is it essential that you use pointers? Is it possible to use the COM Interop functions to marshall the pointers?
It seems that the best way to diagnose this may be to export the interface with and without the unsafe code block and see what the differences are.