Click here to Skip to main content
15,909,530 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to set Quota Limit on a disk in VC++? Pin
Tida16-Aug-02 8:13
Tida16-Aug-02 8:13 
AnswerRe: How to set Quota Limit on a disk in VC++? Pin
Tomasz Sowinski16-Aug-02 8:43
Tomasz Sowinski16-Aug-02 8:43 
GeneralBitmap question Pin
Chun Te, Ewe16-Aug-02 8:11
Chun Te, Ewe16-Aug-02 8:11 
GeneralEdit Box Scrolling Pin
Ken Mazaika16-Aug-02 7:38
Ken Mazaika16-Aug-02 7:38 
GeneralRe: Edit Box Scrolling Pin
Ken Mazaika16-Aug-02 8:43
Ken Mazaika16-Aug-02 8:43 
Generalrelease vs debug builds problem Pin
ns16-Aug-02 5:49
ns16-Aug-02 5:49 
GeneralRe: release vs debug builds problem Pin
PJ Arends16-Aug-02 5:59
professionalPJ Arends16-Aug-02 5:59 
GeneralRe: release vs debug builds problem Pin
ns16-Aug-02 6:12
ns16-Aug-02 6:12 
Well, that took care of one of them! The next crash is again at a delete[] (I just started using delete!) It turns out to be a variable I dont need, but still want to know whats wrong:

		m_pCommandPhoto->ActiveConnection = m_pConn1;


		CString partQuery = "'"+MineName+"'";

		char* partQuery0 = new char(partQuery.GetLength()+1);

		strcpy(partQuery0,partQuery);

		CString SQLQ = "SELECT * FROM tblMine WHERE (DefID = "+partQuery+")";

		char*  SQLQuery = new char [SQLQ.GetLength()+1];

		strcpy(SQLQuery, SQLQ);

		AfxMessageBox(SQLQuery);

		<code>delete[] partQuery0;</</code>pre>  //crashes here. This time I've got my +1 !!

Thanks,
ns

GeneralRe: release vs debug builds problem Pin
Roger Allen16-Aug-02 6:33
Roger Allen16-Aug-02 6:33 
GeneralRe: release vs debug builds problem Pin
ns16-Aug-02 7:20
ns16-Aug-02 7:20 
GeneralRe: release vs debug builds problem Pin
Michael Dunn16-Aug-02 9:41
sitebuilderMichael Dunn16-Aug-02 9:41 
GeneralRe: release vs debug builds problem Pin
ns16-Aug-02 10:09
ns16-Aug-02 10:09 
GeneralRe: release vs debug builds problem Pin
Tomasz Sowinski16-Aug-02 6:58
Tomasz Sowinski16-Aug-02 6:58 
GeneralWM_KILLFOCUS Pin
Anonymous16-Aug-02 5:37
Anonymous16-Aug-02 5:37 
GeneralRe: WM_KILLFOCUS Pin
PJ Arends16-Aug-02 5:41
professionalPJ Arends16-Aug-02 5:41 
GeneralRe: WM_KILLFOCUS Pin
NC16-Aug-02 7:22
NC16-Aug-02 7:22 
GeneralRe: WM_KILLFOCUS Pin
PJ Arends16-Aug-02 14:58
professionalPJ Arends16-Aug-02 14:58 
GeneralRe: WM_KILLFOCUS Pin
NC19-Aug-02 1:49
NC19-Aug-02 1:49 
QuestionIs there a way to see if a SOCKET is connected? Pin
Le centriste16-Aug-02 4:40
Le centriste16-Aug-02 4:40 
AnswerRe: Is there a way to see if a SOCKET is connected? Pin
Masaaki Onishi16-Aug-02 7:21
Masaaki Onishi16-Aug-02 7:21 
Questionhow to idenitify whether process is running or not Pin
tongc16-Aug-02 3:58
tongc16-Aug-02 3:58 
AnswerRe: how to idenitify whether process is running or not Pin
Tomasz Sowinski16-Aug-02 4:04
Tomasz Sowinski16-Aug-02 4:04 
GeneralRe: how to idenitify whether process is running or not Pin
tongc16-Aug-02 6:04
tongc16-Aug-02 6:04 
GeneralRe: how to idenitify whether process is running or not Pin
Tomasz Sowinski16-Aug-02 7:04
Tomasz Sowinski16-Aug-02 7:04 
GeneralRe: how to idenitify whether process is running or not Pin
Daniel Lohmann16-Aug-02 13:10
Daniel Lohmann16-Aug-02 13:10 

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.