467,138 Members | 1,323 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,138 developers. It's quick & easy.

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

Roy
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.

Oct 27 '06 #1
  • viewed: 1192
Share:
1 Reply
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


"Roy" <Ro*@discussions.microsoft.comwrote in message
news:BC**********************************@microsof t.com:
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.
Oct 29 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Brett Robichaud | last post: by
5 posts views Thread by vertigo | last post: by
5 posts views Thread by nicolasr | last post: by
3 posts views Thread by not_a_commie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.