Quantcast
Channel: SetTimer issue
Viewing all articles
Browse latest Browse all 6

SetTimer issue

$
0
0

All windows process messages, and need Create/DestroyWindow.  The underlying problem you encountered is that the timer messages are sent to an HWND, and your object does not have an HWND until you call its Create function.

Since you did new you will need delete.  (Not delete [])

You could simplify things by putting a Cmyclass2 member in Cmyclass1. Then you would not need to use new/delete.

 


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>