unregistering type library

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have written a C# library to interop with a C DLL. Everythings worked
fine, till I made some small changes (just the name of one variable!!) inside
a structure in the C# Library. Now my C DLL keep throwing an error saying
that xxx is not a member of 'That_Structure' see the decleration for
That_Structure.

How do I remove all the previous definitions of that structure?
(I run a regasm to register my C# Library and to create a typelibrary for
use by the C DLL using tlbexp)

Note : I've also manually deleted all references to the Library and
especially to That_Structure in the registry...also ran a regasm
<path>/library.dll /unregister...still no luck!!

Please Help!!
 
Hi
Although you stated that you have checked that already, but this mostly
seems like a problem of an old reference double check that . you may also
go to the debug menu then Clean then choose Rebuild all not just rebuild .
hope this helps

Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC
 
Nothing works!!

I even recreated the entire solution and then adding a new C# Library
calling it by a different name and then redoing the interop stuff but it
still keeps pointing me to the .tlh file of the new project with the error
pointing me to see the structure in the .tlh(92) : see declaration of 'L_Name'

This is really time consuming? What am I doing wrong. I am doing stuff to
interop exactly as mentioned on MSDN and then i make a small change in one of
my structures (as small as just a change in the name of a variable!!) and
then my code refuses to work??!!!

Help!
 

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

Back
Top