Click here to Skip to main content
15,921,548 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: .NET Confusion Pin
Nemanja Trifunovic26-Dec-01 9:58
Nemanja Trifunovic26-Dec-01 9:58 
QuestionI got a HWND of CFileDialog form another program, and get the child HWND named "edit" within this CFileDialog, and SetWindowText(hWnd,"C:\\"); to change the filedialog 's path, but failed, how to do it? Pin
25-Dec-01 14:51
suss25-Dec-01 14:51 
AnswerRe: I got a HWND of CFileDialog form another program, and get the child HWND named "edit" within this CFileDialog, and SetWindowText(hWnd,"C:\\"); to change the filedialog 's path, but failed, how to do it? Pin
567890123425-Dec-01 23:16
567890123425-Dec-01 23:16 
Generalinp() and outp() won't work on NT ?!!! Pin
Hadi Rezaee25-Dec-01 10:32
Hadi Rezaee25-Dec-01 10:32 
GeneralRe: inp() and outp() won't work on NT ?!!! Pin
Ravi Bhavnani25-Dec-01 10:51
professionalRavi Bhavnani25-Dec-01 10:51 
GeneralRe: inp() and outp() won't work on NT ?!!! Pin
Hadi Rezaee26-Dec-01 9:20
Hadi Rezaee26-Dec-01 9:20 
GeneralRe: inp() and outp() won't work on NT ?!!! Pin
Erik Funkenbusch25-Dec-01 21:04
Erik Funkenbusch25-Dec-01 21:04 
GeneralDAO : the memory size increase Pin
Wizard_0125-Dec-01 5:44
Wizard_0125-Dec-01 5:44 
code :


void CreateConnetion(){
try{m_db.Open("xxxxx.MDB",FALSE,TRUE); }
catch(CDAOException *e){ .... }
}

void Open(CString Sql){
CloseQuery();
m_pRecordset = new CDaoRecordset(&m_db);
try{m_pRecordset->Open(dbOpenDynaset,Sql,dbReadOnly);}
catch (CDaoException *e) {
...
}
...
}
void CloseConnection(){
CloseQuery();
if (m_db.IsOpen()){
m_db.Close();
}
}
void CloseQuery(){
if (m_pRecordset->IsOpen()){
m_pRecordset->Close();
}
delete m_pRecordset;

}

.
Each time when I call CreateConnection and Open("SELECT * from [table]") the memory size increase. After time when i call CloseConnection the memory size doesnt decrease and app needs 5 MB (before creating connection had 4 MB).Confused | :confused: Mad | :mad:

{{i use this code :
CreateConnection();
Open();
CloseConnection();
}}

Is is alright ?
Confused | :confused: Confused | :confused: Confused | :confused:

Wizard_01
GeneralClass problem ! Pin
Hadi Rezaee25-Dec-01 5:36
Hadi Rezaee25-Dec-01 5:36 
GeneralRe: Class problem ! Pin
Ravi Bhavnani25-Dec-01 6:09
professionalRavi Bhavnani25-Dec-01 6:09 
GeneralRe: Class problem ! Pin
Hadi Rezaee25-Dec-01 10:27
Hadi Rezaee25-Dec-01 10:27 
GeneralRe: Class problem ! Pin
Ravi Bhavnani25-Dec-01 10:47
professionalRavi Bhavnani25-Dec-01 10:47 
GeneralCFtpConnection... Pin
25-Dec-01 4:36
suss25-Dec-01 4:36 
GeneralXP AutoPlay - how to turn it off Pin
567890123425-Dec-01 4:31
567890123425-Dec-01 4:31 
GeneralPlease, ActiveX help ! Pin
25-Dec-01 3:47
suss25-Dec-01 3:47 
GeneralStuid Question Pin
The_Server24-Dec-01 21:58
The_Server24-Dec-01 21:58 
GeneralRe: Stuid Question Pin
l a u r e n25-Dec-01 1:33
l a u r e n25-Dec-01 1:33 
GeneralRe: Stuid Question Pin
The_Server25-Dec-01 23:03
The_Server25-Dec-01 23:03 
GeneralRe: Stuid Question Pin
Tim Smith25-Dec-01 2:32
Tim Smith25-Dec-01 2:32 
GeneralRe: Stuid Question Pin
The_Server25-Dec-01 23:07
The_Server25-Dec-01 23:07 
GeneralRe: Stuid Question Pin
The_Server25-Dec-01 23:17
The_Server25-Dec-01 23:17 
GeneralRe: Stuid Question Pin
Fazlul Kabir25-Dec-01 23:26
Fazlul Kabir25-Dec-01 23:26 
GeneralRe: Stuid Question Pin
Ravi Bhavnani25-Dec-01 6:13
professionalRavi Bhavnani25-Dec-01 6:13 
GeneralUsing typedef with classes Pin
24-Dec-01 16:20
suss24-Dec-01 16:20 
GeneralRe: Using typedef with classes -- I got it !! Pin
24-Dec-01 18:57
suss24-Dec-01 18:57 

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.