Click here to Skip to main content
15,895,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem with CreateMutex() and CloseHandle() Pin
Member 75496020-Dec-07 3:37
Member 75496020-Dec-07 3:37 
GeneralRe: Problem with CreateMutex() and CloseHandle() Pin
ashishbhatt24-Dec-07 18:18
ashishbhatt24-Dec-07 18:18 
GeneralRe: Problem with CreateMutex() and CloseHandle() Pin
Member 75496026-Dec-07 4:51
Member 75496026-Dec-07 4:51 
GeneralRe: Problem with CreateMutex() and CloseHandle() Pin
DevelopmentNoob16-Dec-09 19:56
DevelopmentNoob16-Dec-09 19:56 
GeneralRe: Problem with CreateMutex() and CloseHandle() Pin
NehaMishra286846-Dec-10 19:31
NehaMishra286846-Dec-10 19:31 
GeneralDrag Drop Pin
john563219-Dec-07 18:01
john563219-Dec-07 18:01 
GeneralRe: Drag Drop Pin
Hamid_RT19-Dec-07 18:17
Hamid_RT19-Dec-07 18:17 
GeneralHelp Needed for getting record from database Pin
Y_Kaushik19-Dec-07 17:53
Y_Kaushik19-Dec-07 17:53 
Hi..all's
I am making a program. I need to fetch record from Oracle database and
print these record to .txt file . I write a program for this . Although
i fetch record from database and store these record to result set .

Now i can exteract these record from object of CRecordset class and how can i write these record to .txt file although . I have create file successfully. My code is written below.

CDatabase *Dbase = new CDatabase();
CRecordset rs;

int count=0;
if(!Dbase->Open("aixmmapping_72",FALSE,FALSE,"ODBC;DSN=aixmmapping_72;UID=aixmmapping_72;PWD=aixmmapping_72"))
{
MessageBox(" Can Not Connect With Database");
}else
{
rs.Open(CRecordset::dynaset,_T("Select * from vor"));
while(!rs.IsEOF())
{
rs.MoveNext();
}
CFile obj;
obj.Open( "D:\\Yogi\\Test\\abc.txt", CFile::modeCreate|CFile:: modeReadWrite);

char TextData[800];
strcpy(TextData, "rs");
obj.Write(TextData,800);
MessageBox("File Write Successfully");
rs.Close();
}

Please help me
Regard's
Kaushik

GeneralRe: Help Needed for getting record from database Pin
Roger Broomfield19-Dec-07 18:57
Roger Broomfield19-Dec-07 18:57 
GeneralRe: Help Needed for getting record from database Pin
Y_Kaushik19-Dec-07 19:22
Y_Kaushik19-Dec-07 19:22 
GeneralRe: Help Needed for getting record from database Pin
Roger Broomfield19-Dec-07 19:41
Roger Broomfield19-Dec-07 19:41 
GeneralRe: Help Needed for getting record from database Pin
Y_Kaushik19-Dec-07 19:53
Y_Kaushik19-Dec-07 19:53 
GeneralRe: Help Needed for getting record from database Pin
Y_Kaushik19-Dec-07 20:01
Y_Kaushik19-Dec-07 20:01 
GeneralRe: Help Needed for getting record from database Pin
Y_Kaushik19-Dec-07 20:36
Y_Kaushik19-Dec-07 20:36 
QuestionNeed help with restricting window movement to the screen... Pin
demxine19-Dec-07 16:35
demxine19-Dec-07 16:35 
GeneralRe: Need help with restricting window movement to the screen... Pin
Maxwell Chen19-Dec-07 16:45
Maxwell Chen19-Dec-07 16:45 
QuestionRe: Need help with restricting window movement to the screen... [modified] Pin
demxine19-Dec-07 19:47
demxine19-Dec-07 19:47 
GeneralFake Memory Leak!! Pin
Lea Hayes19-Dec-07 16:06
Lea Hayes19-Dec-07 16:06 
GeneralRe: Fake Memory Leak!! [modified] Pin
Maxwell Chen19-Dec-07 16:34
Maxwell Chen19-Dec-07 16:34 
GeneralRe: Fake Memory Leak!! Pin
Lea Hayes19-Dec-07 21:14
Lea Hayes19-Dec-07 21:14 
GeneralRe: Fake Memory Leak!! Pin
Roger Broomfield19-Dec-07 17:09
Roger Broomfield19-Dec-07 17:09 
GeneralRe: Fake Memory Leak!! Pin
Lea Hayes19-Dec-07 22:02
Lea Hayes19-Dec-07 22:02 
GeneralDestroy/Close the window Pin
CodingLover19-Dec-07 14:21
CodingLover19-Dec-07 14:21 
GeneralRe: Destroy/Close the window Pin
CodingLover19-Dec-07 17:54
CodingLover19-Dec-07 17:54 
GeneralRe: Destroy/Close the window Pin
Mark Salsbery20-Dec-07 6:01
Mark Salsbery20-Dec-07 6:01 

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.