Click here to Skip to main content
15,892,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Learning C++ Confusion Pin
valikac8-Feb-04 6:25
valikac8-Feb-04 6:25 
GeneralRe: Learning C++ Confusion Pin
Michael Gunlock8-Feb-04 12:06
Michael Gunlock8-Feb-04 12:06 
GeneralRe: Learning C++ Confusion Pin
DavisLW8-Feb-04 12:54
DavisLW8-Feb-04 12:54 
GeneralRe: Learning C++ Confusion Pin
Michael Gunlock8-Feb-04 17:42
Michael Gunlock8-Feb-04 17:42 
GeneralPopulating Combo box with data from a database(^_^!!) Pin
solostar***7-Feb-04 19:56
solostar***7-Feb-04 19:56 
GeneralRe: Populating Combo box with data from a database(^_^!!) Pin
Antti Keskinen8-Feb-04 10:23
Antti Keskinen8-Feb-04 10:23 
GeneralDynamically setting up DSN (^_^!!) Pin
solostar***7-Feb-04 19:55
solostar***7-Feb-04 19:55 
GeneralRe: Dynamically setting up DSN (^_^!!) Pin
Antti Keskinen8-Feb-04 10:18
Antti Keskinen8-Feb-04 10:18 
If in any way possible, use a DSN-less connection.

Creating DSN entries in the ODBC manager is a REAL pain in the ass, and when/if your application is uninstalled, you must remove these entries, which is even more difficult.

Here is a useful article on writing DSN-less connection strings for ODBC data sources: http://www.able-consulting.com/ADO_Conn.htm

The key logic here is firstly enumerate the available data source drivers on the local machine. If a driver is found, the appropriate connection string is issued. If you need added security, you can create the connection string on the fly, and store the username/password in an encrypted string table entry or something similar. Naturally, when the connection string is used, it is posted in clear-type, which creates a possible security risk. This can be avoided, if necessary, by prompting the user to enter a username and password each time an attempt to open the data source is made.

If, however, you are forced to create a DSN programmatically, there is an MSDN Library article available in here[^].

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralStructure parser ... Pin
super-kingkong7-Feb-04 19:45
super-kingkong7-Feb-04 19:45 
Generalclient to client communication Pin
rasha20037-Feb-04 18:47
rasha20037-Feb-04 18:47 
GeneralRe: client to client communication Pin
John M. Drescher7-Feb-04 19:12
John M. Drescher7-Feb-04 19:12 
GeneralRe: client to client communication Pin
rasha20037-Feb-04 19:19
rasha20037-Feb-04 19:19 
GeneralPointer templates and delete errors Pin
Leo Smith7-Feb-04 18:09
Leo Smith7-Feb-04 18:09 
GeneralRe: Pointer templates and delete errors Pin
Michael Dunn8-Feb-04 6:21
sitebuilderMichael Dunn8-Feb-04 6:21 
GeneralComboBox problem.... Pin
je_gonzalez7-Feb-04 17:25
je_gonzalez7-Feb-04 17:25 
GeneralRe: ComboBox problem.... Pin
je_gonzalez7-Feb-04 17:28
je_gonzalez7-Feb-04 17:28 
QuestionAre users of "IP*Works!" here? Pin
Uwe Keim7-Feb-04 16:38
sitebuilderUwe Keim7-Feb-04 16:38 
AnswerRe: Are users of "IP*Works!" here? Pin
je_gonzalez7-Feb-04 17:19
je_gonzalez7-Feb-04 17:19 
GeneralRe: Are users of "IP*Works!" here? Pin
Uwe Keim7-Feb-04 18:08
sitebuilderUwe Keim7-Feb-04 18:08 
AnswerRe: Are users of "IP*Works!" here? Pin
Joe Woodbury7-Feb-04 18:01
professionalJoe Woodbury7-Feb-04 18:01 
Generaljust a small syntax question Pin
Ylis7-Feb-04 13:37
Ylis7-Feb-04 13:37 
GeneralRe: just a small syntax question Pin
Jörgen Sigvardsson7-Feb-04 14:00
Jörgen Sigvardsson7-Feb-04 14:00 
GeneralRe: just a small syntax question Pin
Ylis7-Feb-04 14:13
Ylis7-Feb-04 14:13 
GeneralRe: just a small syntax question Pin
Jörgen Sigvardsson7-Feb-04 14:18
Jörgen Sigvardsson7-Feb-04 14:18 
GeneralMultithreading assertion error Pin
sschilachi7-Feb-04 8:44
sschilachi7-Feb-04 8:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.