Click here to Skip to main content
15,922,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Number of files in a directory Pin
Madmaximus19-Dec-03 2:29
Madmaximus19-Dec-03 2:29 
GeneralRe: Number of files in a directory Pin
greba19-Dec-03 8:21
greba19-Dec-03 8:21 
GeneralCSliderCtrl Range Setting Trouble Pin
Justin Cooke18-Dec-03 9:20
Justin Cooke18-Dec-03 9:20 
GeneralRe: CSliderCtrl Range Setting Trouble Pin
Justin Cooke18-Dec-03 10:12
Justin Cooke18-Dec-03 10:12 
Generaldatabase probelm Pin
karteek18-Dec-03 7:09
karteek18-Dec-03 7:09 
GeneralRe: database probelm Pin
Jon Sagara18-Dec-03 7:41
Jon Sagara18-Dec-03 7:41 
GeneralRe: database probelm Pin
l a u r e n18-Dec-03 14:38
l a u r e n18-Dec-03 14:38 
GeneralRe: database probelm Pin
karteek18-Dec-03 20:31
karteek18-Dec-03 20:31 
Hi,

Thanks a lot.
But still I have a problem.I got the ODBC driver and created a DSN and wrote a sample WIN32 Console appln to test it .But it is not working.Please check this code.

#include "stdafx.h"
#include<afx.h>
#include<afxdb.h>

int main(int argc, char* argv[])
{
printf("Hello World!\n");
CDatabase c;
c.Open(_T("test"),FALSE,FALSE,_T("ODBC"),TRUE);
return 0;
}


It is giving the following errors.


--------------------Configuration: kardb - Win32 Debug--------------------
Compiling...
kardb.cpp
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/kardb.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

kardb.exe - 3 error(s), 0 warning(s)
GeneralFile handles Pin
Fabio Panzavolta18-Dec-03 6:50
Fabio Panzavolta18-Dec-03 6:50 
GeneralRe: File handles Pin
Alexander M.,18-Dec-03 8:02
Alexander M.,18-Dec-03 8:02 
GeneralCode Dependencies Pin
jmkhael18-Dec-03 6:46
jmkhael18-Dec-03 6:46 
GeneralRe: Code Dependencies Pin
John R. Shaw18-Dec-03 17:25
John R. Shaw18-Dec-03 17:25 
GeneralEncrypt and Decrypt data Pin
Anonymous18-Dec-03 6:46
Anonymous18-Dec-03 6:46 
General&quot;Files are out of date&quot; Pin
GeraldoLuiz18-Dec-03 5:46
GeraldoLuiz18-Dec-03 5:46 
GeneralRe: &quot;Files are out of date&quot; Pin
Christian Graus18-Dec-03 12:27
protectorChristian Graus18-Dec-03 12:27 
GeneralRe: &quot;Files are out of date&quot; Pin
GeraldoLuiz18-Dec-03 12:51
GeraldoLuiz18-Dec-03 12:51 
GeneralRe: &quot;Files are out of date&quot; Pin
Monty218-Dec-03 19:31
Monty218-Dec-03 19:31 
Generalgettting IP address of the system Pin
Anonymous18-Dec-03 5:34
Anonymous18-Dec-03 5:34 
GeneralRe: gettting IP address of the system Pin
Anonymous18-Dec-03 5:36
Anonymous18-Dec-03 5:36 
GeneralRe: gettting IP address of the system Pin
David Crow18-Dec-03 6:15
David Crow18-Dec-03 6:15 
GeneralRe: gettting IP address of the system Pin
karteek18-Dec-03 6:47
karteek18-Dec-03 6:47 
GeneralRe: gettting IP address of the system Pin
David Crow18-Dec-03 7:46
David Crow18-Dec-03 7:46 
GeneralRe: gettting IP address of the system Pin
karteek18-Dec-03 19:20
karteek18-Dec-03 19:20 
GeneralRe: gettting IP address of the system Pin
David Crow19-Dec-03 2:55
David Crow19-Dec-03 2:55 
GeneralDeclaring an CInternetSession variable globally Pin
harinat18-Dec-03 5:18
harinat18-Dec-03 5:18 

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.