Click here to Skip to main content
15,923,087 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: reading outlook.pst Pin
neha.agarwal2726-Sep-06 20:50
neha.agarwal2726-Sep-06 20:50 
QuestionRe: reading outlook.pst Pin
David Crow27-Sep-06 3:10
David Crow27-Sep-06 3:10 
Questionwhat this code is doing? Pin
With_problem26-Sep-06 20:28
With_problem26-Sep-06 20:28 
AnswerRe: what this code is doing? Pin
Hamid_RT26-Sep-06 20:39
Hamid_RT26-Sep-06 20:39 
GeneralRe: what this code is doing? Pin
With_problem26-Sep-06 20:59
With_problem26-Sep-06 20:59 
GeneralRe: what this code is doing? Pin
Hamid_RT27-Sep-06 8:24
Hamid_RT27-Sep-06 8:24 
GeneralRe: what this code is doing? Pin
With_problem26-Sep-06 21:00
With_problem26-Sep-06 21:00 
GeneralRe: what this code is doing? Pin
Hamid_RT26-Sep-06 22:10
Hamid_RT26-Sep-06 22:10 

CDaoDatabase database;
CDaoRecordset recordset(&database);
CString lpszFile = "c:\\Database2.mdb";
database.Create(lpszFile);
//database.Open(lpszFile);
CString SqlCmd = "CREATE TABLE MYTable (MarketNo VARCHAR(2),MarketName VARCHAR(8),Bid VARCHAR(10),Ask VARCHAR(10),MarketState VARCHAR(2))";
database.Execute(SqlCmd);
recordset.Open(AFX_DAO_USE_DEFAULT_TYPE,"SELECT * FROM MyTable",0);
database.Execute("INSERT INTO MyTable values('a','Market','b','c','d')");
//database.Execute("INSERT INTO MyTable(MarketName)");
//database.Execute("INSERT INTO MyTable(Bid)");
//database.Execute("INSERT INTO MyTable(Ask)");
//database.Execute("INSERT INTO MyTable(MarketState)");
recordset.AddNew();
recordset.SetFieldValue("MarketNo","2a");
recordset.SetFieldValue("MarketName","2Market");
recordset.SetFieldValue("Bid","2b");
recordset.SetFieldValue("Ask","2c");
recordset.SetFieldValue("MarketState","2d");
recordset.Update();
//recordset.MoveNext();
recordset.AddNew();





WhiteSky

AnswerRe: what this code is doing? Pin
Steve Echols26-Sep-06 21:09
Steve Echols26-Sep-06 21:09 
AnswerRe: what this code is doing? Pin
Steve Echols26-Sep-06 21:20
Steve Echols26-Sep-06 21:20 
GeneralRe: what this code is doing? Pin
With_problem26-Sep-06 21:27
With_problem26-Sep-06 21:27 
GeneralRe: what this code is doing? Pin
Steve Echols26-Sep-06 21:37
Steve Echols26-Sep-06 21:37 
QuestionRe: what this code is doing? Pin
David Crow27-Sep-06 3:13
David Crow27-Sep-06 3:13 
AnswerRe: what this code is doing? Pin
Reagan Conservative27-Sep-06 8:32
Reagan Conservative27-Sep-06 8:32 
Questionserial communication prog? Pin
Sunshine Always26-Sep-06 20:25
Sunshine Always26-Sep-06 20:25 
AnswerRe: serial communication prog? Pin
Hamid_RT26-Sep-06 20:40
Hamid_RT26-Sep-06 20:40 
AnswerRe: serial communication prog? Pin
Ștefan-Mihai MOGA26-Sep-06 22:51
professionalȘtefan-Mihai MOGA26-Sep-06 22:51 
QuestionMemory Allocation Pin
Polite Programmer26-Sep-06 20:10
Polite Programmer26-Sep-06 20:10 
AnswerRe: Memory Allocation Pin
Cedric Moonen26-Sep-06 20:10
Cedric Moonen26-Sep-06 20:10 
GeneralRe: Memory Allocation Pin
Polite Programmer26-Sep-06 20:22
Polite Programmer26-Sep-06 20:22 
GeneralRe: Memory Allocation Pin
Cedric Moonen26-Sep-06 20:28
Cedric Moonen26-Sep-06 20:28 
QuestionRe: Memory Allocation Pin
David Crow27-Sep-06 3:16
David Crow27-Sep-06 3:16 
AnswerRe: Memory Allocation Pin
User 21559726-Sep-06 20:26
User 21559726-Sep-06 20:26 
GeneralRe: Memory Allocation Pin
Polite Programmer26-Sep-06 20:31
Polite Programmer26-Sep-06 20:31 
QuestionRe: Memory Allocation Pin
David Crow27-Sep-06 3:22
David Crow27-Sep-06 3:22 

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.