Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUse STL Pin
Kevin McFarlane8-Oct-04 11:11
Kevin McFarlane8-Oct-04 11:11 
GeneralFinding CRLF or other Characters in char Pin
shibble29-Aug-04 4:32
shibble29-Aug-04 4:32 
GeneralRe: Finding CRLF or other Characters in char Pin
Member 30761229-Aug-04 7:09
Member 30761229-Aug-04 7:09 
GeneralRe: Finding CRLF or other Characters in char Pin
shibble29-Aug-04 7:19
shibble29-Aug-04 7:19 
GeneralIndentation+word wrapping in Edit windows Pin
DaFrawg29-Aug-04 2:26
DaFrawg29-Aug-04 2:26 
GeneralRe: Indentation+word wrapping in Edit windows Pin
Ryan Binns29-Aug-04 19:34
Ryan Binns29-Aug-04 19:34 
QuestionDetect available ODBC data sources? Pin
Roland E.29-Aug-04 0:09
Roland E.29-Aug-04 0:09 
AnswerRe: Detect available ODBC data sources? Pin
JimmyRopes29-Aug-04 5:04
professionalJimmyRopes29-Aug-04 5:04 
It depends on how comfortable you are with the system registry and if you are running WinNT/2000/2003/XP? I don't know if the Win98/ME directory is structured exactly the same way but a little exploring will probably get you similar information.

If you are not familiar with the system registry take a look at it using the H:\WINDOWS\system32\regedt32.exe (H:\WINNT\system32\regedt32.exe for NT) program. The H: drive is the system drive on my system so you will have to substitute your system drive, probably C:, if you have a single operating system loaded on your machine. You can also enter the "set" comand from the command line in a DOS command window and there will be an environment variable named SystemDrive that will tell you, as the name implies, what your system drive is. You can alternatively go to Control Panel=>System and look under the Advanced tab for a button labeled "Environment Variables" and use the windir system variable to construct the path to the regedit32 program.

Anyway, when you execute the regedit32 program you will be able to see what resides in your system registry. As the program name implies you can also edit the contents of your system registry but I would highly recommend against this unless you are very familiar with what the consequnces of the edit are.

Under the key "HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources" you will find an entry for each ODBC data source defined on your system and it's associated data provider. You can enumerate the data sources and parse the strings for *.fdb, in your case, and you have enough information to access the data base via ODBC services.

If you want more information about the data base use the data source string name to go further down the ODBC.INI tree and look for the string named "DBQ" under the data source name. The "DBQ" string value will be the path to the data base. From there you can test for the existance of the data base and from the "FIL" string value you can determine what type of data base you will be working with.

There are examples of accessing the system registry and using ODBC services programmitacly in MSDN if you are using the Microsoft Visual C++ compiler. If you are using another compiler consult their API documentation for how to accomplish the same results.


Question"Small" bug in CSimpleArray ??? Pin
Ernesto D.28-Aug-04 22:47
Ernesto D.28-Aug-04 22:47 
AnswerRe: "Small" bug in CSimpleArray ??? Pin
Neville Franks28-Aug-04 23:54
Neville Franks28-Aug-04 23:54 
GeneralRe: "Small" bug in CSimpleArray ??? Pin
Ernesto D.29-Aug-04 9:47
Ernesto D.29-Aug-04 9:47 
GeneralRe: "Small" bug in CSimpleArray ??? Pin
Neville Franks29-Aug-04 10:56
Neville Franks29-Aug-04 10:56 
GeneralRe: "Small" bug in CSimpleArray ??? Pin
Ernesto D.30-Aug-04 22:02
Ernesto D.30-Aug-04 22:02 
AnswerReal world example (try it if you wish) Pin
Ernesto D.29-Aug-04 9:38
Ernesto D.29-Aug-04 9:38 
GeneralRe: Real world example (try it if you wish) Pin
Neville Franks31-Aug-04 10:09
Neville Franks31-Aug-04 10:09 
GeneralRe: Real world example (try it if you wish) Pin
Ernesto D.1-Sep-04 13:19
Ernesto D.1-Sep-04 13:19 
GeneralISAPI Filter wont load when i add OnSendRawData notification Pin
raed28-Aug-04 22:26
raed28-Aug-04 22:26 
Generalgenadi Pin
genadi28-Aug-04 21:21
genadi28-Aug-04 21:21 
Generalgenadi Pin
genadi28-Aug-04 21:17
genadi28-Aug-04 21:17 
GeneralHowto detect keyboard language change Pin
Ivan Cachicatari28-Aug-04 19:12
Ivan Cachicatari28-Aug-04 19:12 
GeneralRe: Howto detect keyboard language change Pin
Michael Dunn28-Aug-04 20:02
sitebuilderMichael Dunn28-Aug-04 20:02 
GeneralRe: Howto detect keyboard language change Pin
Ivan Cachicatari28-Aug-04 20:32
Ivan Cachicatari28-Aug-04 20:32 
GeneralRe: Howto detect keyboard language change Pin
Michael Dunn28-Aug-04 21:44
sitebuilderMichael Dunn28-Aug-04 21:44 
GeneralRe: Howto detect keyboard language change Pin
Ivan Cachicatari29-Aug-04 10:45
Ivan Cachicatari29-Aug-04 10:45 
Generaldifferent objects share global parameters Pin
impeham28-Aug-04 14:12
impeham28-Aug-04 14:12 

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.