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

Search:

Type: Posts; User: danperrin

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,517

    Re: WM_GETTEXT - heap/stack buffer issue

    Thanks to all that replied to this question. My apolagies for not being more specific with detail first time round. I am working round the problem at this stage - as there are other ways of...
  2. Replies
    5
    Views
    1,517

    Re: WM_GETTEXT - heap/stack buffer issue

    Thanks for your reply. There is no exception or any other form of error. ::SendMessage simply returns 0 (zero) and the text buffer is empty. I have not checked GetLastError() yet - will do that - but...
  3. Replies
    5
    Views
    1,517

    WM_GETTEXT - heap/stack buffer issue

    Can anyone explain why WM_GETTEXT works when using a stack buffer and fails when using a heap buffer. See code samples - this code has been simplified to demonstrate the problem.



    //-- this...
  4. Replies
    2
    Views
    704

    Re: share your ideas/experience

    You have a tough project ahead. The presentation layer of this type of app should not be dialog based. There are many ways to achieve the end result, but I personally would probably use the MFC...
  5. Replies
    14
    Views
    2,758

    Re: Creating an Application Installer

    Hi - listen carefully - don't re-invent the wheel. It may seem simple enough creating your own installer - but there are many pitfalls and you probably don't want to go there. Unless you have a...
  6. Re: How to convert control coordinates to Image coordinates

    Hi - I may be misunderstanding the question, but I think the following two functions might help:
    ClientToScreen
    ScreenToClient
    Screen co-ordinates are relative to the upper left hand
    corner of...
  7. Re: How can I close or delay applications in Windows from outside the Application?

    One last thought - once you have the thread ID, if I can remember correctly, you can change the thread priorety to lower priorety. So enum the threads (and there will probably be a way whereby you...
  8. Re: How can I close or delay applications in Windows from outside the Application?

    Thats not a bad idea - an extension of that might be to use CreateProcess to start the EXE, then you should have ownership of the thread - which gives you the additional control.
  9. Re: How can I close or delay applications in Windows from outside the Application?

    The basic idea would be to get the process (and or thread) ID of the EXE that you want to pause. Once you have that - there are various functoins you can use to pause, suspend, terminate threads etc....
  10. Replies
    19
    Views
    9,622

    Re: Anti-Keylogger program

    This has been very interesting reading. Here's the downfall of your plan. Firstly a keyboard hook is event driven - there is no timer polling for activity - so no key presses - no CPU usage. If you...
  11. Howto remove /delete a document template from an MDI App.

    Howto delete\remove MDI doc template?
    Hi,

    Can anyone please assist?

    How does one remove /delete a document template from an MDI App.

    Eg. CWinApp allows adding templates...
    ...
  12. Replies
    4
    Views
    819

    Reply to your question..

    "Instead of using IDB_BITMAP1 , Can i give the path of my bmp file in a string say "C:\\mypic.bmp" in the LoadBitmap() Function?"

    Look at the methods of CBitmap. If not, then use LoadImage
  13. Replies
    2
    Views
    944

    DHTML Edit Control Bugs

    This may not answer your question but take note anyway.
    There are MS confirmed bugs with the DHTML edit control. Properties do not get saved (after setting a property the behaviouir remains the...
  14. try this

    Lookup on the following:

    ShellExecute(...)
    CreateProcess(...)

    One or both of these should solve your problem
  15. Some ideas

    There may be other ways, but these two work for me:

    1) Use FindWindow() in InitInstance. If the Window is found, then set focus to the new window and abort the current instance. If it is not...
  16. Replies
    4
    Views
    819

    Override OnPaint

    Hi,

    You will need to do some homework on the GDI functions. There is plenty of documentation and samples on this site and MSDN. To get you started, here's some info. There are a number of ways...
  17. Replies
    0
    Views
    549

    Howto delete\remove MDI doc template?

    Hi,

    Can anyone please assist?

    How does one remove /delete a document template from an MDI App.

    Eg. CWinApp allows adding templates...

    CWinApp::AddDocTemplate(new...
Results 1 to 17 of 17





Click Here to Expand Forum to Full Width

Featured