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

Search:

Type: Posts; User: Igor Vartanov

Page 1 of 5 1 2 3 4

Search: Search took 0.12 seconds.

  1. Re: InvlidateRect() Doesn't Allow to Display My Child Screen in MFC?

    SetWindowPos function

    SetForegroundWindow function

    BringWindowToTop function

    ... or just specify your main window as a parent for your child. :)
  2. Re: Compatibility of MFC-based Automation?

    Any proof on that? My understanding is, any Office app is an out-of-proc COM server, so I would not expect any problem with this.
  3. Re: CFileDialog::DoModal() never returns in DLL

    BOOL CDLLTestApp::InitInstance()
    {
    CWinApp::InitInstance();

    CTestDlg dlg;
    m_pMainWnd = &dlg;

    INT_PTR nResponse = dlg.DoModal();

    return TRUE;
  4. Re: CFileDialog::DoModal() never returns in DLL

    However my simple sample works fine with dll.
  5. Re: Compatibility of MFC-based Automation?

    Office 2010: C:\Program Files (x86)\Microsoft Office\Office14\MSWORD.OLB
  6. Replies
    4
    Views
    157

    Re: Simple Handle question

    Your situation is not about where the error device is outputting to, but it's exactly about whether your code has an intention to write to it. Whatever the device really is, if you don't need to...
  7. Replies
    8
    Views
    247

    Re: Advice on structured header use

    I would dare to disagree. :) It highly depends on the way how you design data types and interfaces. Please consider the plain C sample (monolithic, not a LIB or DLL) attached.
  8. Replies
    5
    Views
    152

    Re: Cannot maximize window

    In a case like yours I always implement a sample app that basically tests what I doubt about.

    You may yourself make sure that ShowWindow works as expected with regular overlapped window (frame...
  9. Replies
    5
    Views
    152

    Re: Cannot maximize window

    Are you sure you use correct terms in regard to what you do and what you want?
  10. Replies
    3
    Views
    136

    Re: Need Help to Solve Errors Please!

    First of all, your program does not compile.

    Second thing, catType is a pointer, and your intention is evidently to compare not pointers but strings. So you have to use string comparison...
  11. Re: Unit-testing functions with user-defined types

    This is what I told you about, exactly it is: you have to redesign your call interfaces until unit testing becomes easy going and natural.
  12. Re: Unit-testing functions with user-defined types

    Man, it seems you don't listen. Not any code can be unit tested. If you can't mock the type you have to mock, you either change your code or switch to a smarter unit test framework.

    In your...
  13. Re: MFC C++ multiple OnSetActive() calls happening at once

    Good questions, and I believe all of them should be directed to MS. :) What I said is just my in-mind how-it-would-be construct based on my many years of programming Windows, and I never saw this...
  14. Re: Unit-testing functions with user-defined types

    I don't get what you talk about. You test only what you test, you mock everything else. The framework you use ideally helps you to generate mocked interfaces. If it does not, you either find another...
  15. Re: how do i convert xml attributes to c++ class using tinyxml

    So you have to put aside your current task and learn about basics of parsing strings (not char pointers) to numbers, floats in particular.

    You should never guess, but always read error messages...
  16. Re: MFC C++ multiple OnSetActive() calls happening at once

    The PSN_SETACTIVE is sent by Property Sheet control. It seems the control re-sends the message in case it considers the previous message lost due to some reason. The lengthy operation (or Sleep) you...
  17. Replies
    13
    Views
    337

    Re: C++ assistance for my beginner class

    % is html encoded %.
  18. Re: Problems in Passing File Handle to DLL

    Please see the attached sample that passes file handle to dll within the same process. The code does just fine:


    D:\Temp\87>87.exe C:\hiberfil.sys
    EXE: last error 32

    D:\Temp\87>net helpmsg 32...
  19. Replies
    13
    Views
    337

    Re: C++ assistance for my beginner class

    To be sure the program is running as instructed you have to analyze your requirements and make a plan how you make sure not only about normal cases but error cases/input as well. Please don't get me...
  20. Re: C++ HTTP Flood code ported to C++ bot source

    Apache JMeter
    Using Apache Bench for Simple Load Testing
  21. Replies
    13
    Views
    337

    Re: C++ assistance for my beginner class

    What kind of assistance do you need with this?
  22. Replies
    1
    Views
    179

    Re: Pass a handle to a function

    Whatever framework you use you have to use types provided by the framework.

    In case the framework's on-line documentation is not enough, you always may inspect samples the framework site provides....
  23. Replies
    1
    Views
    188

    Re: Beginner WinAPI question

    There's no such ready to use control in Windows. So anyway you need to find some third party grid control, or make the custom one by yourself.
  24. Re: WM_NOTIFY for EDITTEXT (Edit Control)

    Edit Control Notifications do not include double click event. To catch one you have to subclass the control and provide your custom handler for WM_LBUTTONDBLCLK message.
  25. Re: CFileDialog mulitple selection limit - is there a workaround ?

    CFileDialog is just a thin wrapper over GetOpenFileName. What's the problem to write a function that suits your needs? You do this every single day, don't you? :confused:
Results 1 to 25 of 116
Page 1 of 5 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width