Hi,
I have written an ActiveX control which connects to a SQL database but i need the ability to connect to different datbase names and servers.
I am currently using a UDL file for my ConnectionSource property for the DEConnection object.
I manually set the ConnectionSource proprty in the properties window as File Name=C:\Viewer.udl
The control is to be access via the internet and the control should download on startup if its not already registered and then copy the udl file to the correct path.
I have two questions:
1. How do i set the udl file to be situated in the current directory wherever the program runs from?
2. How do i get the control to copy across the udl file from the cab file in the network folder to the local machine in the correct place.
Can anyone help?
Thanks
I have written an ActiveX control which connects to a SQL database but i need the ability to connect to different datbase names and servers.
I am currently using a UDL file for my ConnectionSource property for the DEConnection object.
I manually set the ConnectionSource proprty in the properties window as File Name=C:\Viewer.udl
The control is to be access via the internet and the control should download on startup if its not already registered and then copy the udl file to the correct path.
I have two questions:
1. How do i set the udl file to be situated in the current directory wherever the program runs from?
2. How do i get the control to copy across the udl file from the cab file in the network folder to the local machine in the correct place.
Can anyone help?
Thanks