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

Search:

Type: Posts; User: Igor Vartanov

Page 1 of 80 1 2 3 4

Search: Search took 0.14 seconds.

  1. Replies
    7
    Views
    169

    Re: Get the stdout of a console process

    Creating a Child Process with Redirected Input and Output
  2. Replies
    15
    Views
    564

    Re: WinAPI timer vs thread?

    Both times it results in window procedure direct calling. The difference is that when calling from worker thread, the caller thread gets blocked, the context is switched to UI thread, the window...
  3. Re: What are CRT file descriptors in Windows?

    Your understanding is correct. POSIX layer really exists in Windows, and the reason for introducing it was the intention of providing POSIX API for the sake of compatibility and easy porting from...
  4. Replies
    15
    Views
    564

    Re: WinAPI timer vs thread?

    You must be cautious when doing with SendMessage having possible deadlocks in mind (not in the case you showed), but in case you are, there would be no problem except one point: your GUI logic is...
  5. Re: How to use Visual Studio 2010 to compile dos programs?

    ... which is MS Visual Studio 1.x (1.5 was the last from the family, a.f.a.i.r).
  6. Re: Console Ctrl Event handler

    The method still remains to be a class member, so compiler reasonably complains there's no global :: DefaultConsoleHandler exists.


    vmConsoleEvent::vmConsoleEvent(){
    ...
  7. Re: Writing to a named pipe coming from a service (session 0) without admin rights

    Your service application may create the proper pipe with explicit all-access security descriptor.



    PSECURITY_DESCRIPTOR psd = NULL;
    BYTE sd[SECURITY_DESCRIPTOR_MIN_LENGTH];
    psd =...
  8. Replies
    7
    Views
    343

    Re: Creating Process

    Did it ever occur to you how much vague and ambiguous this sounds? Do you mean there should be some third process spawning the other two? Should those processes be running different executables or...
  9. Re: Passing NULL to FindResource() might not work?

    If so, this would mean somebody fail to read or understand MSDN article, as the article is 100% clear about this particular situation. Not 99% or something, but 100%. :)
  10. Re: Passing NULL to FindResource() might not work?

    Unfortunately with all this you remain were you were: no confidence in MSDN, and no real technical information from experts regarding supposed failures, like Windows version, resource type, module...
  11. Re: Passing NULL to FindResource() might not work?

    I don't see any reason to start having any doubt regarding completeness or correctness of the MSDN article just because some Kowalczyk (never heard the name before) vaguely claimed a fail is...
  12. Re: Passing NULL to FindResource() might not work?

    Never ran into this sort of issue, and NULL worked for me always fine. Though in case of any doubt, it's not that hard to put GetModuleHandle(NULL) instead of just NULL, I believe. Of course, the...
  13. Replies
    9
    Views
    399

    Re: DLL initilization problem

    Thank you Vladimir, but this won't end his suffering, I guess. As I said, the guy somehow manages to call object's method without object itself, and this appears to be the most misty part.
  14. Replies
    18
    Views
    656

    Re: TreeView_SetImageList error

    Please don't be misguided, I never said it's something really from Windows codebase. This is just a demo for a pure concept of how fuction would be not able to fail but still fit the description MSDN...
  15. Replies
    9
    Views
    399

    Re: DLL initilization problem

    Sorry, but this does not answer any of my questions.


    Your problem is you're not good neither at C++, nor DLL. What made you think your DLL dies? I can't even imagine what "DLL dies" could mean,...
  16. Replies
    18
    Views
    656

    Re: TreeView_SetImageList error

    There's nothing to teach about in school. Please look at the code, SetImageList in particular:


    class TreeViewControl
    {
    HIMAGELIST m_il;

    public:
    TreeViewControl(): m_il(NULL)
    {
  17. Replies
    9
    Views
    399

    Re: DLL initilization problem

    Besides an advice to learn C++ and DLL basics I would suggest you to explain your design, what side is to do what. Looking at your code I can not see anything that would make any sense to me. Why...
  18. Re: [C/C++ 11 - win32] - about Notification area

    Notify icon, low level keyboard hook and the stuff in one sample :)
  19. Replies
    18
    Views
    656

    Re: TreeView_SetImageList error

    Man, there's nothing to hahaha about. You are supposed to read documentation and follow the description with full obedience and not fictioning your own rules. Do you think you "somehow" know what to...
  20. Replies
    9
    Views
    399

    Re: DLL initilization problem

    Well, how much you know about C++ object lifecycle? You construct your Caller instance on the stack within CNewDLLApp constructor. It is going to die immediately after leaving the latter. Did you...
  21. Replies
    24
    Views
    1,071

    Re: how can i subclass a menu?

    "Variables that accept functions names" are function pointers or function objects, while lambda is an anonymous function or closure.
  22. Re: how get the keyboard messages, when the window loses the focus?

    And? Admin mode app is running in a separate session, of course your hook won't work across session bounds. Hooks are running limited by current session desktop.

    If you want a guaranteed key...
  23. Re: How to tell if Windows partition is active?

    IOCTL_DISK_GET_PARTITION_INFO_EX looks like what you need.
  24. Re: how get the keyboard messages, when the window loses the focus?

    As we finally found out, you don't need no dll, so your hook proc is executed directly in your process. Having that, you can make the window handle just be a global variable, or static member of your...
  25. Re: how get the keyboard messages, when the window loses the focus?

    You neglect reading documentation carefully. In low level hook proc lparam is a pointer to KBDLLHOOKSTRUCT.
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center