Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: olin

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    664

    Re: operator overload problem

    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. :)
  2. Replies
    6
    Views
    664

    Re: operator overload problem

    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...
  3. Replies
    6
    Views
    664

    Re: operator overload problem

    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!
  4. Replies
    6
    Views
    664

    operator overload problem

    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(...);
    //...
  5. Replies
    3
    Views
    418

    Re: drawing in the dialog

    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...
  6. Replies
    3
    Views
    418

    drawing in the dialog

    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...
  7. Replies
    5
    Views
    402

    Re: modeless dialog question

    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?
  8. Replies
    5
    Views
    402

    modeless dialog question

    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...
  9. Replies
    1
    Views
    528

    Re: SetDefaultTitle error

    I got it. After rebuilt all, I can eliminate this problem. But it is weird.
  10. Replies
    1
    Views
    528

    SetDefaultTitle error

    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));
    ...
  11. Replies
    6
    Views
    394

    Re: link library problem

    Thank you! It works!
  12. Replies
    6
    Views
    394

    link library problem

    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...
  13. Replies
    3
    Views
    545

    Problem of SetWindowText

    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!
  14. Replies
    3
    Views
    650

    Re: API Hooking question

    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...
  15. Replies
    3
    Views
    650

    API Hooking question

    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...
  16. Replies
    0
    Views
    273

    API Hooking question

    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...
  17. Replies
    4
    Views
    466

    problem with comparatible bitmap

    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 *...
  18. Replies
    7
    Views
    407

    If you don't want to run other applications as...

    If you don't want to run other applications as your sub-process, you can also use ShellExecute.
  19. Thread: SQL statement ?

    by olin
    Replies
    5
    Views
    320

    Unfortunately, It seems no SQL statement can do...

    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...
  20. Thread: ODBC newbie

    by olin
    Replies
    7
    Views
    549

    yes, you may use "database view with file support...

    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...
  21. Thread: ODBC newbie

    by olin
    Replies
    7
    Views
    549

    actrually, the database source file is just 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...
  22. Thread: ODBC newbie

    by olin
    Replies
    7
    Views
    549

    yes, you must tell us the error you run your .exe...

    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...
  23. Replies
    20
    Views
    1,535

    Then you should capture the GDI API although...

    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...
  24. Replies
    20
    Views
    1,535

    Hi, Sam Hobbs, yes, yours is an easy way. But...

    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...
  25. Replies
    20
    Views
    1,535

    Well, I have to say it is not an easy work to do....

    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...
Results 1 to 25 of 82
Page 1 of 4 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center