Click here to Skip to main content
15,887,336 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Text in OpenGL Pin
Stuart Dootson20-Apr-09 8:24
professionalStuart Dootson20-Apr-09 8:24 
GeneralRe: Text in OpenGL Pin
yousuf_227920-Apr-09 8:31
professionalyousuf_227920-Apr-09 8:31 
GeneralRe: Text in OpenGL Pin
yousuf_227920-Apr-09 8:34
professionalyousuf_227920-Apr-09 8:34 
GeneralRe: Text in OpenGL Pin
Stuart Dootson20-Apr-09 8:43
professionalStuart Dootson20-Apr-09 8:43 
QuestionHeap Memory / COM Object Limits Pin
Steve Thresher20-Apr-09 6:50
Steve Thresher20-Apr-09 6:50 
QuestionExecuting Code on C++ API Exit Pin
turkmeistr120-Apr-09 5:53
turkmeistr120-Apr-09 5:53 
QuestionRe: Executing Code on C++ API Exit Pin
David Crow20-Apr-09 5:57
David Crow20-Apr-09 5:57 
AnswerRe: Executing Code on C++ API Exit Pin
turkmeistr120-Apr-09 6:23
turkmeistr120-Apr-09 6:23 
Sorry, I'm new to Visual C++ and am not familiar with terminology. Basically, I have a UI and I want it to execute the same code for this button (code shown below) when the user clicks the close button in the upper right hand corner that is built into the form.

private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
if (File::Exists("cmd\\getmac.bat"))
File::Delete("cmd\\getmac.bat");
if (File::Exists("cmd\\showip.bat"))
File::Delete("cmd\\showip.bat");
if (File::Exists("cmd\\tracert.bat"))
File::Delete("cmd\\tracert.bat");
if (File::Exists("cmd\\reset.bat"))
File::Delete("cmd\\reset.bat");
if (File::Exists("cmd\\restart.bat"))
File::Delete("cmd\\restart.bat");
if (File::Exists("cmd\\ping.bat"))
File::Delete("cmd\\ping.bat");
Application::Exit();
}
GeneralRe: Executing Code on C++ API Exit Pin
David Crow20-Apr-09 8:07
David Crow20-Apr-09 8:07 
GeneralRe: Executing Code on C++ API Exit Pin
turkmeistr120-Apr-09 9:07
turkmeistr120-Apr-09 9:07 
Questionchar array issues Pin
gamefreak229120-Apr-09 5:07
gamefreak229120-Apr-09 5:07 
QuestionRe: char array issues Pin
David Crow20-Apr-09 5:15
David Crow20-Apr-09 5:15 
AnswerRe: char array issues Pin
gamefreak229120-Apr-09 6:02
gamefreak229120-Apr-09 6:02 
GeneralRe: char array issues PinPopular
Maximilien20-Apr-09 6:51
Maximilien20-Apr-09 6:51 
AnswerRe: char array issues Pin
CPallini20-Apr-09 10:51
mveCPallini20-Apr-09 10:51 
AnswerRe: char array issues Pin
Stuart Dootson20-Apr-09 19:41
professionalStuart Dootson20-Apr-09 19:41 
Questionmanipulating Windows' "Open With" function Pin
kouddy20-Apr-09 4:56
kouddy20-Apr-09 4:56 
QuestionRe: manipulating Windows' "Open With" function Pin
David Crow20-Apr-09 5:10
David Crow20-Apr-09 5:10 
Questionis this posible can you show me how it is done Pin
Lanstar20-Apr-09 3:32
Lanstar20-Apr-09 3:32 
AnswerRe: is this posible can you show me how it is done Pin
Rajesh R Subramanian20-Apr-09 3:35
professionalRajesh R Subramanian20-Apr-09 3:35 
GeneralRe: is this posible can you show me how it is done Pin
Tony Pottier20-Apr-09 3:53
Tony Pottier20-Apr-09 3:53 
GeneralRe: is this posible can you show me how it is done Pin
Rajesh R Subramanian20-Apr-09 4:06
professionalRajesh R Subramanian20-Apr-09 4:06 
QuestionWriting data to the sound card Pin
Tony Pottier20-Apr-09 2:39
Tony Pottier20-Apr-09 2:39 
AnswerRe: Writing data to the sound card Pin
CPallini20-Apr-09 2:53
mveCPallini20-Apr-09 2:53 
GeneralRe: Writing data to the sound card Pin
Tony Pottier20-Apr-09 3:12
Tony Pottier20-Apr-09 3:12 

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.