Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ken Murphy
  Where is Ken Murphy?
 Springhill
 Canada
 Ken Murphy
 To: Massimo Tombesi
  Where is Massimo Tombesi?
 
 Italy
 Massimo Tombesi
 Tags
Subject: RE: how to do regsvr32 with VFP
Thread ID: 143059 Message ID: 143241 # Views: 2 # Ratings: 0
Version: Visual FoxPro 9 Category: Install & Config. issues
Date: Sunday, August 26, 2007 3:47:35 PM         
   


> >> I need to register a DLL with my PC. I could manually do it by typing "regsvr32 my.DLL" into the RUN box and register it. I want to know whether I could register the DLL with VFP code?
>
> > The following program handles both DLL and EXE registration and unregistration ...
> >
> >
***********************************************************************
> > * Program....: REGISTER.PRG
> > * Compiler...: Visual FoxPro 07.00.0000.9465
> > * Purpose....: Wrapper to Select and Register DLL & EXE files
> > ***********************************************************************
> > LPARAMETERS tlUnRegister, tcFile, tlNoShow
> > ....
> > * Now Call ShellExecute to run the registration 

> > Andy Kramek
>
>
> Excuse-me for the question, that is very like to be trivial, but can you explain why a code like this:
>
> ! regsevr32 C:\MyAppDir\Ocx\RICHTX32.OCX
>
> shouldn't be used, at least until the command "RUN" is accepted (VFP8, WinXp)?
>
> Massimo Tombesi

Massimo,

You will find that most SysAdmins will have a heart attack if they see that little CMD window appear. Using ShellExecute is a MUCH better solution.

Ken
You shall know the truth - and the truth shall set you free. (John 8:33)

ENTIRE THREAD

how to do regsvr32 with VFP Posted by Nilson Rishi @ 8/24/2007 10:38:46 AM
RE: how to do regsvr32 with VFP Posted by Eric den Doop @ 8/24/2007 10:50:53 AM
RE: how to do regsvr32 with VFP Posted by Nilson Rishi @ 8/25/2007 3:14:32 AM
RE: how to do regsvr32 with VFP Posted by Andy Kramek @ 8/24/2007 12:26:47 PM
RE: how to do regsvr32 with VFP Posted by Nilson Rishi @ 8/25/2007 3:16:56 AM
RE: how to do regsvr32 with VFP Posted by Ahsan Rana @ 8/25/2007 8:07:28 PM
RE: how to do regsvr32 with VFP Posted by Eric den Doop @ 8/25/2007 8:56:25 PM
RE: how to do regsvr32 with VFP Posted by Andy Kramek @ 8/25/2007 9:47:08 PM
RE: how to do regsvr32 with VFP Posted by Massimo Tombesi @ 8/26/2007 11:15:14 AM
RE: how to do regsvr32 with VFP Posted by Ken Murphy @ 8/26/2007 3:47:35 PM
RE: how to do regsvr32 with VFP Posted by Andy Kramek @ 8/27/2007 1:12:48 PM