Search:
Type: Posts; User: olin
Search:
Search took 0.04 seconds.
-
February 20th, 2007, 03:49 PM
I got it. i forget to use const member funcion in the class with const reference.
sorry to bother. I haven't used c++ for a while, some basics just slip out of my mind. :)
-
February 20th, 2007, 03:40 PM
Hi,
Once i add const prefix, i got an error below while compiling.
error C2662: 'Func' : cannot convert 'this' pointer from 'const class CMyClass' to 'class CMyClass &'
in Func, i return a...
-
February 20th, 2007, 03:20 PM
Hobson,
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!
-
February 20th, 2007, 02:43 PM
I make a "+" overload for my class as what CString does but found it cannot give the right result.
Here is my code:
CmyClass& operator +(CmyClass& a, CmyClass& b)
{
CmyClass c(...);
//...
-
But why I can do this similar thing without any problem in View? (using CClientDC in OnDraw instead of using CPaintDC in OnPaint)
What is the difference between CView and CDialog in terms of...
-
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
void...
-
yes, i want them to be 2 options in the alt-tab window. is the only way to do this to use a multi-thread?
-
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...
-
December 22nd, 2005, 11:17 PM
I got it. After rebuilt all, I can eliminate this problem. But it is weird.
-
December 22nd, 2005, 11:08 PM
I am doing a single document project. I got an assertion fail in CSingleDocTemplate::SetDefaultTitle function. The error occured at this line:
VERIFY(strDocName.LoadString(AFX_IDS_UNTITLED));
...
-
October 27th, 2005, 09:47 AM
-
October 26th, 2005, 11:34 PM
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...
-
October 20th, 2005, 12:01 PM
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!
-
April 25th, 2005, 08:12 AM
Sorry about the link. it is:
<a href=http://www.codeguru.com/Cpp/W-P/dll/hooking/article.php/c127/>api hooking </a>
I think you are right. So to use WH_CBT hook is just make a chance to...
-
April 24th, 2005, 06:15 PM
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...ticle.php/c127/
The sample in that article is to hook...
-
April 24th, 2005, 09:41 AM
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/
The sample in that article is to hook...
-
August 14th, 2004, 05:56 AM
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 *...
-
If you don't want to run other applications as your sub-process, you can also use ShellExecute.
-
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...
-
April 25th, 2004, 09:27 AM
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...
-
April 24th, 2004, 09:41 AM
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...
-
April 23rd, 2004, 08:34 PM
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...
-
April 9th, 2004, 12:50 AM
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...
-
April 8th, 2004, 10:44 PM
Hi, Sam Hobbs,
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...
-
April 8th, 2004, 07:21 PM
Well, I have to say it is not an easy work to do.
Typically, you may use hook to capture some call of GDI API function such as TextOut and TextOutA, and then you may modify the image of the...
|
Click Here to Expand Forum to Full Width
|