i'm creating an application which connects to a local sql server
however the dsn string is hardcoded into my program.
char ConnectionString[10]="DSN=local";
CDatabase* theDb = new CDatabase;
CRecordset* theRec = new CRecordset(theDb);
theDb->OpenEx(ConnectionString);
...............
...............
theDb->Close();
i want the program to be used by other user that is connected to my server i want the program to open a prompt asking the user to enter the dsn b4 the app starts and they can locate my dsn thru the network....
how is this done?
however the dsn string is hardcoded into my program.
char ConnectionString[10]="DSN=local";
CDatabase* theDb = new CDatabase;
CRecordset* theRec = new CRecordset(theDb);
theDb->OpenEx(ConnectionString);
...............
...............
theDb->Close();
i want the program to be used by other user that is connected to my server i want the program to open a prompt asking the user to enter the dsn b4 the app starts and they can locate my dsn thru the network....
how is this done?