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

Search:

Type: Posts; User: dc_2000

Page 1 of 35 1 2 3 4

Search: Search took 0.03 seconds.

  1. Code to measure CPU usage returns inconsistent results for overclocked CPU

    I have a somewhat strange behavior of the code I'm showing below. This code is called repeatedly to measure the current CPU usage in my application (the value measured for all CPU cores):


    int...
  2. How to lower privileges of a user process started from the system service?

    In my local system service I may start a UI process that should run with credentials of the logged on Windows user, but at times, when there's no logged on user, it should be able to start in the...
  3. Re: Code review request for displaying UI over the logon screen

    Arjay, you're the man! It worked!

    All it needed is for my child GUI process to be created with the WS_EX_TOPMOST style. (This obviously wouldn't work with the stock calc.exe.) Evidently the logon...
  4. Re: Code review request for displaying UI over the logon screen

    Yep, and it didn't come from me. It's MSDN. Plus, a buggy code too. (See my explanation of their GetLogonSid() method.)
  5. Re: Code review request for displaying UI over the logon screen

    While waiting for your responses, I did some research and found this MSDN sample that shows how to configure the ACL for the window station and the desktop. I originally didn't know that a window...
  6. Re: Code review request for displaying UI over the logon screen

    Thanks, Arjay.


    No, I haven't. The issue is that we're talking about two different desktops here. The one on the lock screen is what they refer to as a "Secure desktop" or "Winlogon", while the...
  7. Re: Code review request for displaying UI over the logon screen

    Yes, that's what I mean. It did the same thing as the calc.exe
  8. Re: Code review request for displaying UI over the logon screen

    Well, I thought so too. I built a simple (stock) Win32 GUI app and it did not show either. In other words, it's not the issue with the child GUI process that I'm running... it's something else in the...
  9. Code review request for displaying UI over the logon screen

    Hi everyone:

    I have a Windows service written in C++/WinAPI that runs in a local-system context. The service may perform some configurable power actions (such as put the system into sleep mode)...
  10. Re: Trying to create MFC-based automation/COM Dll to be invoked from JScript

    Igor, I appreciate it. You are really helpful! I especially appreciate your idea of using out-of-proc server that's housed in an exe vs dll. That does solve me a lot of trouble. (Especially your...
  11. Re: Trying to create MFC-based automation/COM Dll to be invoked from JScript

    It actually just returns your usual HRESULT. So I guess doing SUCCEEDED() may do the job for checks for success.


    No, I don't. Sorry, Igor, can you repeat how one can change that default timeout...
  12. Re: Trying to create MFC-based automation/COM Dll to be invoked from JScript

    Yeah, no problem. I'll ignore it. Plus I don't think I'll be rebuilding this COM server once it's done. I just need a quick shim for the JScript code.

    I'm more concerned about those 3 points I...
  13. Re: Trying to create MFC-based automation/COM Dll to be invoked from JScript

    Oh, I see. That's really cool. And you're right. I was totally missing it. Thanks for bringing it up.

    There are some concerns that this brings up though. So let me hear your take on it:

    1. Is...
  14. Re: Trying to create MFC-based automation/COM Dll to be invoked from JScript

    Victor, what do you mean by close IDE editor? What? Completely? How else would I work with the source code then? If you mean just that file, then like I said above, it's not open:
    33669
  15. Re: Trying to create MFC-based automation/COM Dll to be invoked from JScript

    Arjay, I don't have it open. And if I remove it from the solution itself, then I start getting linker errors about missing symbols.
  16. Re: Trying to create MFC-based automation/COM Dll to be invoked from JScript

    Also, Igor, on the side note. Why am I getting this when I build your project?

    33667
  17. Re: Trying to create MFC-based automation/COM Dll to be invoked from JScript

    I would surely love to have only a 32-bit build and eliminate messing with 64-bit-only DLL, but I'm still not quite clear on how this .exe approach would work. That .exe has to run somehow for the...
  18. Re: Trying to create MFC-based automation/COM Dll to be invoked from JScript

    Appreciate it! ATL it is! And if I link it statically it doesn't drag as much "weight" as MFC either...

    One last follow up question, guys. Since I will need to make both 32-bit and 64-bit builds...
  19. Re: Trying to create MFC-based automation/COM Dll to be invoked from JScript

    Guys, thanks.

    @Igor: I need to be able to recreate it for VS 2008. Can you give me general steps how you made that ComDll project?
  20. [RESOLVED] Trying to create MFC-based automation/COM Dll to be invoked from JScript

    Hi everyone:

    I should admit, that I do not have much experience working with COM/automation. My goal is to create a C++ module whose methods could be exposed/called by a JScript script running in...
  21. Re: Can I have a COM interface in a service to be called from Windows Script Host?

    Thank you for the explanation guys.

    So is there a lot of code to switch from in-proc to out-of-proc COM? Like I said I've never tried out of proc in my limited exposure to COM.

    Also Arjay, you...
  22. Re: Can I have a COM interface in a service to be called from Windows Script Host?

    Thanks. You have a point there.

    One follow-up. I'm not entirely sure what's the difference between the in-proc and out-of-proc COM server. I understand that the former one is when my DLL is loaded...
  23. Re: Can I have a COM interface in a service to be called from Windows Script Host?

    No, not really. I was just trying to eliminate complexity, but it seems like I'm only adding it, hah?

    You see, I am not really good with COM, but it seems like if I do in-process DLL, I will have...
  24. Can I have a COM interface in a service to be called from Windows Script Host?

    My goal is to create a COM interface in my Windows local service, written with C++/MFC, whose methods could be called from a Windows Script Host JScript code running under a logged in interactive...
  25. Re: Internet Explorer displays a blank page when opening a local file while screen is

    I might have gotten to the bottom of it.

    This looks like a bug in the IE 11 rendering engine. (Interestingly enough, I ran it on a machine with IE 8 and it worked fine.) I discovered this by...
Results 1 to 25 of 866
Page 1 of 35 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!


HTML5 Development Center