C#.net DLL in eVC++

G

Guest

Hi
I am tryig to use a C#.Net created dll in eVC++. I am unable to. every time
i run it in the emulator it give me the error. "Activex control cant create
object.

I have used interop and created a .tlb file and am using that.

Can someone help me on this?
 
D

Daniel Moth

Managed code can not be called from unmanaged code with CF 1.0. Even with CF
2.0, a unmanaged exe cannot call a managed dll. Maybe a suitable workaround
is to create two exes (1 managed and one unmanaged) and have them
communicate via traditional IPC mechanisms.

Cheers
Daniel
 
G

Guest

Isnt it possible to use Com interop in some way to have is woking for eCV++?
the only problem im facing is registering the .tlb on a pocket pc.
Any suggestions?
 
D

Daniel Moth

No. COM Interop is not supported in CF 1.0 out of the box. There is a 3rd
party solution from odyssey.

Even in CF 2.0 where COM Interop is supported, it is intended for the other
way round: managed exe calling unmanaged COM dll.

Cheers
Daniel
 
G

Guest

Hi,

I am trying to do what Rakesh was trying to do back in January. Is this
still something that is not possible or recommended even with the release of
Visual Studio 2005?

Thanks,
Shaun
 
P

Paul G. Tobey [eMVP]

If you mean that you want to build a COM object in .NET code and call it
from an unmanaged application, then the answer is unchanged. You *cannot*
do that because you still can't host .NET code from unmanaged executables.

Paul T.
 

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