blah blah blah is here! blah blah » Close

up0down
link

hi, Friends,
I need to call .net component from unmanaged code. I am using the com wrapper that is described in here:
http://www.csharpfriends.com/articles/getarticle.aspx?articleID=113
It works well on 32-bit OS but doesn't work on 64-bit such as Windows Server 2008 64-bit.
Regasm.exe and gacutil are all successful. My .net component dll is compiled target to any CPU type. But it doesn't work.
Could anybody please shed some light on this issue?
Thanks,
Jay

last answered 2 years ago

1 answers

up0down
link

If you haven't done so already, I think you'll need to run the 64-bit version of regasm.exe to register your COM component to run on a 64-bit system.
Whereas the 32-bit version is usually found from the path:
C:\windows\microsoft.net\Framework\vx.x.xxxxx\regasm.exe
the 64-bit version (same name) should be in:
C:\windows\microsoft.net\Framework<b>64</b>\vx.x.xxxxx\regasm.exe
There's only one version of gacutil which can deal with the installation etc. of both 32-bit and 64-bit assemblies.

This post was imported from csharpfriends, if you have a similiar question please ask it again.

All previous members have been migrated, hope you enjoy the new platform!

Feedback