Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > referencing active x to project...


Reply
 
Thread Tools Display Modes
  #1  
Old 04-01-2005, 05:24 AM
Chich14 Chich14 is offline
Regular
 
Join Date: Sep 2003
Posts: 83
Default referencing active x to project...


hey, i have a .dll that is referenced to my project. now i have obtained the source code for that .dll and am wondering how i change my references so that my project uses the loaded active x control rather then the referenced .dll from system32.

thanks
Reply With Quote
  #2  
Old 04-01-2005, 05:26 AM
wakjah's Avatar
wakjah wakjah is offline
Senior Contributor
 
Join Date: Jan 2004
Location: Home
Posts: 1,170
Default

You would have to register the new ActiveX DLL under another name and GUID so that COM can tell the difference between your modified version and the old version. You can do this simply by changing the project name. Then all you have to do is reference the new one instead of the old one in your project and voila
__________________
wakjah

<wittySentence/>
Reply With Quote
  #3  
Old 04-01-2005, 05:37 AM
Chich14 Chich14 is offline
Regular
 
Join Date: Sep 2003
Posts: 83
Default

no sorry thats not what i mean. originally i was using a EXTERNAL activeX .dll, but i now have the source code for the .dll so i have added it to my project. but when i go to Project>References and uncheck the external .dll and run my project, i get an error saying "User defined type not defined" and it highlights one of my declarations ("Implements ISubclass"). so i need some way to point vb to the activeX project source code that i have added to my project so its able to declare this class. the only thing is i dont know how
Reply With Quote
  #4  
Old 04-01-2005, 07:45 AM
herilane's Avatar
herilane herilane is offline
Unashamed geek

Retired Moderator
* Expert *
 
Join Date: Jul 2003
Location: London, England
Posts: 8,988
Default

Adding a reference to the .vbp file of that dll should solve it.
Reply With Quote
  #5  
Old 04-01-2005, 08:29 AM
Chich14 Chich14 is offline
Regular
 
Join Date: Sep 2003
Posts: 83
Default

yes i know that, but the point is that i want to have a STAND-ALONE .exe when im done, not carry around a bunch of .dll's with it.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->