Thank you for your help. Actually that is a typo. But i do have it solved by your words of "copy object". I forgot to make a copy construct function. Thank you!
I am trying to draw something in a modeless dialog in some where other than OnPaint member function. I used a bitmap to save the drawing and show it in OnPaint. like this
I added a modeless dialog in my project. But I found the dialog window covered top of the main frame window, so that I cannot use alt+tab to switch to show the main window. I tried to add codes...
I want to use a specific library in my VC project. I added the directory of the library into Windows environment path. But when I compiled and linked my code, I still got a "cannot open file...
After I ran SetWindowText for a CEdit edit box, the input cursor will jump to the position before the first character in the box. How to put it in the position after the last character? Thank you!
I want to hook some APIs. I has some questions when reading the article on codeguru website
http://www.codeguru.com/Cpp/W-P/dll/hooking/article.php/c127/
I drew things in DC and wanted to create a comparatible bitmap as follows:
BOOL bSucced = bmp.CreateCompatibleBitmap(&dc, width, height);
But when I set the width and height more than 10,000 *...
Unfortunately, It seems no SQL statement can do this work. I am also looking for some time :(
So, my way is to create a root table first containing all the table names in this database. then you can...
yes, you may use "database view with file support " or other styles. But no matter what you use, you should create a CDatabase object before you use your database file. If you have registered a...
actrually, the database source file is just a file containing some information of the database file, so you can give these information without this file when opening a database. Here is some code...
yes, you must tell us the error you run your .exe
Another possible problem is that you may use ODBC Data Source Administrator to add a data source and use this source in your program. But when you...
Then you should capture the GDI API although there is still another way that tracking the DC of the windows. but I think the former one does better considering the compatibility. after you capture...
yes, yours is an easy way. But by it, you will only retrieve the title of a certain window such eidtbox or some controls. However, you cann't retrieve words in other cases such as...