473,499 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

unregistering type library

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!!
Nov 16 '05 #1
2 1651
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
Nov 16 '05 #2
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!
"Mohamoss" wrote:
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

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
8168
by: Scott M. | last post by:
I have been trying to uninstall an assembly from the GAC using gacutil.exe -u but with no luck. Can anyone give me more information on how to successfully uninstall from the GAC? Also, how can...
6
13226
by: Saso Zagoranski | last post by:
Hi! How can I unregister all the events registered to a control? I have seen a piece of code in another thread, which gets all the registered handlers for a specific event. Let's say I have a...
1
3227
by: | last post by:
Hi all I am using RegAsm.exe to register .NET assemblies like this: regasm D:\...\...\MyDLL.dll /tlb:d:\mybin\MyDLL.tlb for unregistering: regasm D:\...\...\MyDLL.dll /tlb:d:\mybin\MyDLL.tlb...
1
1443
by: Howard Kaikow | last post by:
I created a class library using VB .NET 2002 by, in Project Properties, selecting Configuration Properties, then checking Register for COM Interop and then OK. That worked as I was able to use...
0
7131
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
6894
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7388
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5470
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4600
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3091
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
297
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.