473,326 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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
1 1366
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: RobJUK66 | last post by:
have a 3rd party .Net dll that wraps a set of further unmanaged dll's. The ..Net DLL basically uses pinvoke to wrap the calls. The low level dlls provide an API to talk to a complex device which...
3
by: Brett Robichaud | last post by:
I have created a simple background thread to make one pinvoke call into a DLL I've created. My Winforms app spawns the thread in the form load event then go about it's business. The problem is...
5
by: vertigo | last post by:
Hello I use some win 32 API function for example: HANDLE CreateFile( LPCTSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD...
1
by: cppdev | last post by:
Hello, After reading a few articles, http://blogs.gotdotnet.com/cbrumme/PermaLink.aspx/e55664b4-6471-48b9-b360-f0fa27ab6cc0...
5
by: nicolasr | last post by:
Hi, I have the following PInvoke problem: I want to call the Win32 API SystemParametersInfo() which has the following signature: BOOL SystemParametersInfo( UINT uiAction, UINT uiParam,
4
by: yaron | last post by:
Hi, I want to use my unmanaged c++ class library from a c# client. my unmanaged c++ class library use polymorpism, is this polymorphism also exported to my c# client via PInvoke ? thanks.
0
by: kanagaraju | last post by:
Server object error 'ASP 0177 : 800401f3' Server.CreateObject Failed /online test/xreg.asp, line 4 800401f3
14
by: Mohamed Mansour | last post by:
Hey there, this will be somewhat a long post, but any response is appreciated! I have done many PInvoke in the past from C++ to C#, but I did PInvoke within C# not C++/CLI. Can someone explain...
3
by: not_a_commie | last post by:
The CLR won't garbage collect until it needs to. You should see the memory usage climb for some time before stabilizing. Can you change your declaration to use the 'out' keyword rather than a 'ref'...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.