Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / September 2005

Tip: Looking for answers? Try searching our database.

referencing a .det component without a strong name from a vb6 app

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Naim - 20 Sep 2005 13:50 GMT
hi,
we have a .net component that we want to call from a vb6 application.
The .net component doesn't have a strong name and we don't have the code
for the .net component.
Is there any way to call the .Net component from the vb6 application ?
or is it just impossible ?

regards
Kaustav. - 21 Sep 2005 09:30 GMT
Hi Naim,

AFAIK you will not be able to do a CCW with that assembly. Strong naming is
required for COM Interop to work. And if you would still wan't to do it, you
would have to reconstruct the assembly (am i hinting at decompilers :p) and
then proceed the usual way to create a CCW.

> hi,
> we have a .net component that we want to call from a vb6 application.
[quoted text clipped - 6 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***
TDC - 22 Sep 2005 13:58 GMT
No you don't have to strong name it.  If you put the .NET component in
the same directory as you VB app, and then use RegAsm with the
/codebase option then you can access it fine.
Kaustav. - 22 Sep 2005 15:06 GMT
TDC is correct. It works. I was not aware of this. However you will get a
warning message for an unsigned assembly -

RegAsm warning: Registering an unsigned assembly with /codebase can cause
your assembly to interfere with other applications that may be installed on
the same computer. The /codebase switch is intended to be used only with
signed assemblies
. Please give your assembly a strong name and re-register it.
Types registered successfully

> No you don't have to strong name it.  If you put the .NET component in
> the same directory as you VB app, and then use RegAsm with the
> /codebase option then you can access it fine.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.