help
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
help

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
cesi2d
Guest





Posted: Thu Mar 17, 2005 10:04 am    Post subject: help Reply with quote

Hi,

I'm needing some "how to" logical help

We are writing software using : Lisp , VBA , Dll , Ocx files

LISP call VBA , VBA call DLL and/or OCX files , so the on VBA modules
This files are located inside 3 directories (LISP , VBA , DLLOCX)
During software writing and testing we need to select the the rights lines
in the VBA reference tab.
This references are using absolute path names

During the installation process on the customer PC , the customer can change
the directories locations,
for exemple each of them on an different drive letter

The problems are :
dynamicly recreate the links (actually we use Regsvr32 the first time to
this)
permit to change one dll to an new version of them (with the same name)
with an copy process (actually , doing this does an vba compilation error)
do this on OEM developpement (no vbaide acces)

thanks

Luc



--
Cesi2d
Luc Vallot
Chemin du Bassard
38121 Chonas l ' amballan
France

info@cesi2d.com
Tel: 04 74 58 95 68

Back to top
GTVic
Guest





Posted: Fri Mar 18, 2005 4:35 am    Post subject: Re: help Reply with quote

If a DLL or OCX changes and the Class ID in the registry also changes then the only solution is to send out a new version of your VBA/VB compiled for that version. Otherwise the user must do this manually in the IDE by unselecting the old reference and re-selecting the new reference.

The path that the DLL or OCX is installed in does not matter. If the new DLL or OCX has the same Class ID but is installed in a different location it will be automatically located by its registry entry. If the Class ID changes then it is like an entirely new DLL/OCX.

You could try the "Microsoft Visual Basic 6 Extensibility" reference and create a macro that would update your other macro(s).

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconextendingvisualbasicenvironmentwithaddins.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbobjobjectsthatallowyoutomanipulateprojects.asp
Back to top
cesi2d
Guest





Posted: Fri Mar 18, 2005 7:11 pm    Post subject: Re: help Reply with quote

ok, I now understand my problem

thanks for your help

Luc

"GTVic" <nospam@address.withheld> a écrit dans le message de
news:23414882.1111102565186.JavaMail.jive@jiveforum2.autodesk.com...
Quote:
If a DLL or OCX changes and the Class ID in the registry also changes then
the only solution is to send out a new version of your VBA/VB compiled for

that version. Otherwise the user must do this manually in the IDE by
unselecting the old reference and re-selecting the new reference.
Quote:

The path that the DLL or OCX is installed in does not matter. If the new
DLL or OCX has the same Class ID but is installed in a different location it

will be automatically located by its registry entry. If the Class ID changes
then it is like an entirely new DLL/OCX.
Quote:

You could try the "Microsoft Visual Basic 6 Extensibility" reference and
create a macro that would update your other macro(s).


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconextendingvisualbasicenvironmentwithaddins.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbobjobjectsthatallowyoutomanipulateprojects.asp


Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
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




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB