C#.net DLL in eVC++

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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
 
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?
 
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
 
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
 
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.
 
Back
Top