Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding datetime picker to working application
Message
 
 
To
28/10/2001 09:08:11
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00573438
Message ID:
00576516
Views:
25
Sorry for the delay in replying...

To be honest, I've never had to worry that much about it failing since all our systems are under a standard config. It's basically trying it out on one system, working out the bugs and then deploying on all the computers. I usually just check for the existance of the dll or ocx (e.g. file("c:\windows\system\mscomct2.ocx")) then run the code if it's not there. Sorry I couldn't help out more.

Tom

>Thank you. I will use the following code since this returns the error code
>to my program.
>
>Have you tired to use this kind of dynamic registration in your applications ?
>
>How I can check which additional dll files are required by mscomct2.ocx ?
>
>
>DECLARE INTEGER DllRegisterServer ;
>      IN mscomct2.OCX ;
>      AS __DllRegisterServer__
>nRes =__DllRegisterServer__()
>if m.nRes#0
>  messagebox( 'Registration fails, error ' + tran(nRes) )
>  ENDIF
>
>>lcfile1="\\(ServerName)\mscomct2.ocx"
>>lcfile2="c:\windows\system\mscomct2.ocx"
>>COPY FILE (lcfile1) to (lcfile2)
>>lcrunfile="run /n c:\windows\system\regsvr32.exe /s "+lcfile2
>>&lcrunfile
>>
>>HTH,
>>
>>Tom
>>
>>>I want to start using ms datatime picker ( mscomctrl2.dtpicker.2, file mscomct2.ocx ) in my existing VFP 7 LAN application.
>>>All users run a common myapp.exe file in LAN server.
>>>
>>>Unfortunately, datetime picker control is not registered in users computers.
>>>Due to large number of workstations it is difficult to walk through all workstations to run some setup program. I need automatic setup.
>>>
>>>I need that at startup myapp.exe file checks for registration and
>>>registers datetime picker control.
>>>I can put mscomct2.ocx and depending files
>>>to the same directory where my myapp.exe file resides.
>>>
>>>Is it possible to register this control at application startup automatically ?
Previous
Reply
Map
View

Click here to load this message in the networking platform