ProgramWindow.NET

Creating COM wrapper

Hi all,

I want to create a tlb file for a .NET assembly(Component) to access from my VB client.

I created and registered the Type Library using

regasm master.dll /tlb:master.tlb

and the type library is getting generated and registered successfully.But when i try to

access from my VB application,I could only able to create an object for the class.

like..

Dim ms as New Master.Employee

when i try "ms." i'm not able to get the members of Employee class...Though the dll,tlb and

the VB project are in same location..

please help..

Thanks,
Suresh

Replay:Creating COM wrapper
Unless you are installing your DLL to the Global Assembly Cache (GAC), you must include the /codebase switch on the regasm command line. For more information, see http://msdn.microsoft.com/library/en...lRegasmexe.asp

Replay:Creating COM wrapper
Yes i tried with /Codebase switch and even installed my assembly in the GAC...but nothing worked...

Thanks,
Suresh.

Replay:Creating COM wrapper
Hi Suresh,
First use Regasm which, creates guid and wrapper for your server and also it registers wrapper in the registry.
now, from .net command prompt , run tlbexp which, creates the type library from .net server. and use this type library for your vb client.

regards,
Meghal Gandhi

Replay:Creating COM wrapper
No luck still..still VB doesnt able to popup the members of the type exported from my component..

I've another question...When any Exception occurs or when i throw a new Exception in my Component VS .NET opens the .cs file (where the Exception is occured in component) in the client application and breaks.Is it possible to avoid that and make it possible to appear like the Exception occured in the Client application method call line..

for ex: ms.GetSalary("employee") is the call from the .NET client where GetSalary is defined in my component. When any Exception occured in this function VS .NET opens the c# file where this function resides and puts a break on it in the client application...this shows the code of the cs file in the client app.,Is there any way to avoid it?
I want the application to break in ms.GetSalary("") call and not to show my component code..

Thanks,
Suresh.



.NET

Help,listview column header alignment
help me! i'm stuck!
Get Property and function
Migrating data?
Making avalon application without VS.NET 2005
Try ... Catch VB.NET
RSS and XSLT
Dataset returned nothing. What did I miss?
criteria for field with no data
gaining control before form load
menu item fonts
VB.NET upgrade question
Thread - Two Proesses
Web page control via .Net Win App
How to Show WinForm in Browser Like I.E. ??
Capturing the Console Output in VB .Net
How to show a form after disposing it
Noob Questions - Part 1
Passport how does it work?
How to bind data with two dataTable to a DataGrid?