COM Question

  • Thread starter Thread starter sdf
  • Start date Start date
S

sdf

Well, I got such a good quick response to my last post (thanks everyone,
btw), I thought I'd put this one to you people as well. It's a lot more
specific than network I/O, but I can't seem to figure it out:

I built a project in C#, it's a DLL that references other COM DLLs. I
build and run it on my own system and it works fine. But when I copy the
project output over to another system and run RegAsm on the main .NET
assembly, I get 'Method GetIcon from blah blah blah etc. has no
implementation', and I know that it does because it's just a stub method in
my code. It's a method from one of the two interfaces that my class
implemets, so that it can interact with some other software, and it's bool,
so i just return true/false(doesn't matter).
So I figure that maybe I'm missing some DLL or something. Or maybe the
version of the interface on the remote machine has a different signature for
GetIcon(), so it doesn't notice my method? I mean, I have to have
implemented the method or VS.NET wouldn't even let me compile.

Any ideas?

Nick
 
Hi Nick
If you are using different version of the native com DLLs, you need to re
import the type libraries for these native DLL using export tool the
command prompt of the visual studio.
hope this helps
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Back
Top