Information générale
Catégorie:
COM, DCOM et OLE automation
Titre:
How to create a 'config' file for Outlook COM in VB6
Greetings,
I have an outlook COM object I have created in VB6. After much pain, it is finally working and I'm able to deploy it.
One thing I would really like to do is have a way to setup certain parameters for the COM without having to rebuild it each time.
For example, when the user presses a button I have ShellExecute launch an EXE named warranty.exe. What I would like is to be able to change the application to say, warranty2.exe without rebuilding the whole COM object.
I've thought about some ways it could be done, I'm just trying to figure out the easiest/best ways. One idea I had was to use a simple txt file and then read it from the COM. I also suppose I could create an ADO connection to SQL Server to lookup data that way. Both ideas however seem a little complex.
Can anyone think of an easy way to accomplish what I want without writing a lot of code?
Greg
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement