get 800401f3 if pinvoke, but not in C call on xp only

G

Guest

Have a dll that calls a com object. Can call dll from C program fine, can
call dll from C# program in compact framework (i.e. CE/PPC devices), no
problem.
On XP devices when I pinvoke it gets into the dll, but when the dll calls
the COM interface get that error.
Don't get the error if call same dll from C application on same XP device.
Error is 800401f3 "Invalid class string".

I see this is a common problem with ASP, and remote SQL calls, but did not
find any one discussing this issue with FF pinvoke to dll to COM. Any
suggestions would be appreciated.
 
B

Bryan Phillips

p/invoke to dll to COM is a little shaky. If you have access to the dll
source code, you might consider turning on CLR and wrapping the call to
COM so that you can have more control over the COM object's lifetime and
expose a nice .Net interface to the C# program.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com
 

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