msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Rdeference to activex dll disappears when I rebuild the acti

 
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE
Author Message
Hal Tz



Joined: 04 Oct 2007
Posts: 1

PostPosted: Wed Feb 02, 2005 7:11 pm    Post subject: Rdeference to activex dll disappears when I rebuild the acti Reply with quote

Hi, I hope this is the right place for this. Using VB 6.0 , I am building an
activex DLL. It exports a class with some functions, which I call from a
standard exe. The exe has the activex dll as a reference
(Project..References). Whenever I rebuild the DLL (and even if I run regsvr32
on it after a build), when I then load the exe project, I get the error
"Could not create reference" followed by the full pathname to the dll. I then
look at the Project references for the exe and the reference to my dll is
gone. I add the reference again and all's well until the next time I rebuild
the dll. What am I missing?
--
Hal

Archived from group: microsoft>public>vb>ole
Back to top
View user's profile Send private message
Brian Muth



Joined: 04 Oct 2007
Posts: 18

PostPosted: Wed Feb 02, 2005 9:09 pm    Post subject: Re: Rdeference to activex dll disappears when I rebuild the Reply with quote

In your DLL project, select properties. Under the Component tab, select
Binary Compatibility.

Otherwise, VB6 automatically generates new GUID's for your coclass and
interface, but your Project..References is still pointing to the old GUID's.

Brian

"Hal Tz" wrote in message@microsoft.com...
> Hi, I hope this is the right place for this. Using VB 6.0 , I am building
an
> activex DLL. It exports a class with some functions, which I call from a
> standard exe. The exe has the activex dll as a reference
> (Project..References). Whenever I rebuild the DLL (and even if I run
regsvr32
> on it after a build), when I then load the exe project, I get the error
> "Could not create reference" followed by the full pathname to the dll. I
then
> look at the Project references for the exe and the reference to my dll is
> gone. I add the reference again and all's well until the next time I
rebuild
> the dll. What am I missing?
> --
> Hal
Back to top
View user's profile Send private message
Rajneesh Noonia



Joined: 04 Oct 2007
Posts: 12

PostPosted: Fri Nov 17, 2006 4:48 am    Post subject: RE: Rdeference to activex dll disappears when I rebuild the Reply with quote

Under Project Properties > Components > Verion Compatibily options
This option is used to set the backward compatibility with previous version
of your components.If you chose no compatibility.. vb6 create new GUIDs for
you components and other clients which are refreing to you component breaks.
Create folder vercom and copy the old verion of your DLL.Open the dll prject
and set the binary compatibility option ..Now whenevr you update the dll
project and recompile vb will maintan the old GUID's and hence your component
will not break..

Regards
Rajneesh

"Hal Tz" wrote:

> Hi, I hope this is the right place for this. Using VB 6.0 , I am building an
> activex DLL. It exports a class with some functions, which I call from a
> standard exe. The exe has the activex dll as a reference
> (Project..References). Whenever I rebuild the DLL (and even if I run regsvr32
> on it after a build), when I then load the exe project, I get the error
> "Could not create reference" followed by the full pathname to the dll. I then
> look at the Project references for the exe and the reference to my dll is
> gone. I add the reference again and all's well until the next time I rebuild
> the dll. What am I missing?
> --
> Hal

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group