Direct Input 8

Cleanup methods

Step 1: Create a Message Map for WM_DESTROY
Step 2: Create a Message Map for IDC_FREEDEVICE


void CDirectInput1View::OnDestroy()
{
   CFormView::OnDestroy();
   
   // TODO: Add your message handler code here
   KillTimer( 0 );    
   FreeDirectInput();    
   
}

void CDirectInput1View::OnFreeDevice()
{
   // TODO: Add your control notification handler code here
   KillTimer( 0 );    
   FreeDirectInput();    
   
}

You might also like...

Comments

About the author

David Nishimoto United States

NishiSoft provides Part I of the Information Technology Project collaboration. Sign up and list your IT project tasks, assign task too friends, and get percent complete task.

Part will ...

Interested in writing for us? Find out more.

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“If debugging is the process of removing software bugs, then programming must be the process of putting them in.” - Edsger Dijkstra