Click here to Skip to main content
15,891,529 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to use strcpy to modify char** ? Pin
Mark Salsbery2-May-07 9:33
Mark Salsbery2-May-07 9:33 
GeneralRe: How to use strcpy to modify char** ? Pin
Michael Dunn2-May-07 11:22
sitebuilderMichael Dunn2-May-07 11:22 
AnswerRe: How to use strcpy to modify char** ? Pin
prasad_som2-May-07 18:33
prasad_som2-May-07 18:33 
QuestionMFC avi Brightness control Pin
YUANGE2-May-07 6:50
YUANGE2-May-07 6:50 
AnswerRe: MFC avi Brightness control Pin
Hamid_RT2-May-07 7:37
Hamid_RT2-May-07 7:37 
Questionsql string format Pin
hero19952-May-07 5:44
hero19952-May-07 5:44 
AnswerRe: sql string format Pin
James R. Twine2-May-07 5:59
James R. Twine2-May-07 5:59 
AnswerRe: sql string format Pin
Hamid_RT2-May-07 7:29
Hamid_RT2-May-07 7:29 
I think if you read an article (read,write Access file) that I think I answered to you that link its better.
After read values of first database /*select * from Table3 that I dont think its good statement you must use Select with a Where maybe you have 200,000 records */ you can use like this code for example
CDaoDatabase database;
CDaoRecordset recordset(&database);
CString lpszFile = "d:\\copyktt.mdb";
/*if your database is exist you get an error if use of create*/
database.Create(lpszFile);//if its not exist else Open

CString lpszSQL = "CREATE TABLE MYTable 
(Field1 VARCHAR(4),Field2 VARCHAR(4),Field3 VARCHAR(4),Field4 VARCHAR(4),MarketState VARCHAR(4))";
database.Execute(lpszSQL);

recordset.Open(AFX_DAO_USE_DEFAULT_TYPE,"SELECT * FROM MyTable",0);
//its an example,you can use of a string for insert your values(concat strings)
database.Execute("INSERT INTO MyTable values('1','2','3','a','b')");

recordset.AddNew();
recordset.Update();





WhiteSky

QuestionAFX_MANAGE_STATE Usage? Pin
rajandpayal2-May-07 4:37
rajandpayal2-May-07 4:37 
AnswerRe: AFX_MANAGE_STATE Usage? Pin
Mark Salsbery2-May-07 5:14
Mark Salsbery2-May-07 5:14 
QuestionSafly Remove USB Pin
VC_RYK2-May-07 2:44
VC_RYK2-May-07 2:44 
AnswerRe: Safly Remove USB Pin
Arman S.2-May-07 3:07
Arman S.2-May-07 3:07 
GeneralRe: Safly Remove USB Pin
VC_RYK2-May-07 18:23
VC_RYK2-May-07 18:23 
QuestionHow do I pass a byte array from VC++ to VB? Pin
prcarp2-May-07 2:20
prcarp2-May-07 2:20 
AnswerRe: How do I pass a byte array from VC++ to VB? Pin
Chris Losinger2-May-07 6:38
professionalChris Losinger2-May-07 6:38 
AnswerRe: How do I pass a byte array from VC++ to VB? Pin
lafleon2-May-07 10:20
lafleon2-May-07 10:20 
GeneralRe: How do I pass a byte array from VC++ to VB? Pin
prcarp2-May-07 11:05
prcarp2-May-07 11:05 
QuestionSerbian(cyrillic) language support to MFC in VC6.0 Pin
Y K Kishore Kumar2-May-07 2:20
Y K Kishore Kumar2-May-07 2:20 
AnswerRe: Serbian(cyrillic) language support to MFC in VC6.0 Pin
Nemanja Trifunovic2-May-07 2:47
Nemanja Trifunovic2-May-07 2:47 
GeneralRe: Serbian(cyrillic) language support to MFC in VC6.0 Pin
Y K Kishore Kumar2-May-07 18:46
Y K Kishore Kumar2-May-07 18:46 
QuestionNeed help Pin
yaminisridaran2-May-07 2:04
yaminisridaran2-May-07 2:04 
AnswerRe: Need help Pin
Arman S.2-May-07 2:13
Arman S.2-May-07 2:13 
AnswerRe: Need help Pin
Mark Salsbery2-May-07 5:24
Mark Salsbery2-May-07 5:24 
QuestionSelect Data Source pops up Pin
Shiva Prasad2-May-07 1:54
Shiva Prasad2-May-07 1:54 
QuestionRe: Select Data Source pops up Pin
David Crow2-May-07 2:21
David Crow2-May-07 2:21 

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.