Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running exe file in windows xp
Message
From
22/08/2002 02:51:29
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Running exe file in windows xp
Miscellaneous
Thread ID:
00692340
Message ID:
00692340
Views:
52
Hi, I wrote a program that creates a connection using sqlconnect() function.
After compilation, I tried to run the exe program on a windows 98 and 2000 OS and the system worked properly. I also tried to run it in windows xp but the connection failed. Need your help guys, the code is provided below :

Public VCONNSTR
sConn = "Driver={Microsoft Visual FoxPro Driver};UID=;PWD=;SourceDB="
cPathDBC = ALLTRIM(SYS(5))+ALLTRIM(CURDIR())+[FILES\BADMINTONFILES\BADMINTONDBC.DBC]
sConn = sConn+cPathDBC+";SourceType=DBC;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;"
Open Database BADMINTONRV
DBSETPROP("BADCONN","CONNECTION","CONNECTSTRING",sConn)
nConn = SQLSTRINGCONNECT(sConn)

IF nConn>0
VCONNSTR = sConn
ELSE
=MESSAGEBOX('Cannot connect to System Database!',0+16,'Connection Problem')
RETURN
ENDIF
Music Rocks www.musicreserve.blogspot.com
Success is 1% Inspiration & 99% Perspiration
God Sometimes Delays His Help to Test Our Faith and Energize Our Prayers
Our Boat May Be Tossed While He Sleeps, But He Wakes Up Before it Sinks.
Next
Reply
Map
View

Click here to load this message in the networking platform