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

Search:

Type: Posts; User: koden

Page 1 of 9 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    3
    Views
    7,051

    format number with 8 digits, leading zeros

    How do I do the equivalent of this in powershell


    sprintf (szBuffer, "%08d", number);


    The above code is C. Basically "number" is any number, but when I print it I want it to have leading...
  2. Replies
    10
    Views
    13,681

    Re: How to launch Powershell cmdlet?

    Is there anyway to capture Powershell's output? It may have an error message that I can't see. I am running this without any handles. How can I get it to print out in my current command prompt?
  3. Replies
    10
    Views
    13,681

    Re: How to launch Powershell cmdlet?

    It looks fine, I even print it to the console to check what it is. I copy and paste it and it works perfectly on the command line.

    Somehow ShellExecute isn't using it correctly I think?

    Is...
  4. Replies
    10
    Views
    13,681

    Re: How to launch Powershell cmdlet?

    I'm having problems with my ShellExecute. If I manually run the command with the parameters, it does what I need, but using ShellExecute, some goes wrong, but ShellExecute comes back successfully.
    ...
  5. Replies
    10
    Views
    13,681

    Re: How to launch Powershell cmdlet?

    But for exchange, I think I need the exchange powershell, rather than just powershell itself.

    When I use the shortcut to launch the exchange powershell prompt, this is the path


    ...
  6. Replies
    10
    Views
    13,681

    How to launch Powershell cmdlet?

    I'm not using .NET or C#, I'm using Visual Studio 2005 with a C++ project. I want to execute a Enable-mailbox cmdlet from my code. Is there a way to do this? Can I shellexec a powershell command...
  7. How to get difference between two GMT times in seconds on WinCE?

    I know there is the CTimeSpan that can take the difference between two CTime objects, but CTime always uses the local time zone, which is all jacked up these days with the weird DST.

    So I'd like...
  8. Re: _WIN32_WCE isn't being defined? ERROR: cannot open include file 'winresrc.h'

    Yes, I tried without the version as well, no luck. But I should definitely look and see if it's being undefined.

    thanks for the suggestions! =)
  9. _WIN32_WCE isn't being defined? ERROR: cannot open include file 'winresrc.h'

    I need some help!

    I want to compile my app for WINCE, but I'm getting this one error:



    Compiling resources...
    C:\Program Files\Microsoft Visual Studio 8\VC\ce\atlmfc\include/winres.h(33) :...
  10. Replies
    1
    Views
    1,757

    use _ttoh instead of atoh in unicode?

    I wrote some code for MBCS awhile ago, now I'm converting it to Unicode.

    I have a function that takes a hex string and turns it into bytes, in this function I am using "atoh"

    atoh takes in a...
  11. After I CryptImportKey for a session key, can I CryptGetKeyParam?

    I'm deriving my own key to use for encrypting / decrypting for 3DES. It's a 24 byte key as it should be.

    I use CryptImportKey to obtain a session key, and then I try to get parameters for it.
    ...
  12. How to change parent dialog data from child dialog?

    So I have a Child Dialog that I instantiate with doModal();

    I want to change a variable in the parent dialog's class from the child. How do I do this without saving the data in the file?

    Thanks
  13. Re: Porting VS 6.0 C++ to VS 2005 to Win Mobile, please help!

    I figured this one out, I had to put _ARM_ in the preprocessor defines. But now I'm getting other problems that has to do with it. can you guys help me figure out how to set the definitions?
    ...
  14. Re: Porting VS 6.0 C++ to VS 2005 to Win Mobile, please help!

    i know, but it's weird how it's the available winnt classes etc. that are failing the compilation.
  15. Porting VS 6.0 C++ to VS 2005 to Win Mobile, please help!

    I have an application written for win32 using Visual Studio C++ 6.0

    I want to port it over to a windows mobile device. I converted the 6.0 to a Visual Studio 2005 project, and then changed the...
  16. Porting VS 6.0 C++ to VS 2005 to Win Mobile, please help!

    I have an application written for win32 using Visual Studio C++ 6.0

    I want to port it over to a windows mobile device. I converted the 6.0 to a Visual Studio 2005 project, and then changed the...
  17. Re: I have an existing application that I'd like to run on Windows Mobile, please hel

    So I could effectively just try to run my app onto windows mobile 5/6 and see how the UI looks?

    I'm using all very basic MFC and such, so it shouldn't be too crazy.
  18. I have an existing application that I'd like to run on Windows Mobile, please help!

    I wrote an application for windows xp/2000/2003, but I am now looking into putting it onto windows mobile 5 / 6 as well, using Visual Studio 6.0.

    I was reading the developer pages...
  19. Replies
    0
    Views
    728

    CD Autorun.inf equivalent for USB?

    I have a few files on a USB drive that I'd like to autorun, similar to that of a CD where you can save an autorun.inf file that specifies what to run.

    Does anybody know how I can achieve the same...
  20. Re: How to supress the "beep" on AfxMessageBox popup?

    Oops, I didn't mean in the environment, I mean is it possible from the programming side to keep it from beeping on a client's computer?
  21. How to supress the "beep" on AfxMessageBox popup?

    Whenever I have an AfxMessageBox pop up, it beeps. Is there anyway to suppress this beep?
  22. Re: Possible to run Safari (browser) on Windows machine?

    Well the first problem I ran into was getRangeAt() function from a selection object. I couldn't figure out why it wasn't working, so I finally figured out there was no such function supported by...
  23. Re: Possible to run Safari (browser) on Windows machine?

    it seems like a lot of my code is falling into that 10% that won't work on safari. I've figured it out for now, but all the scripting I'm doing I have to constantly check.

    I just got a G4 from a...
  24. Possible to run Safari (browser) on Windows machine?

    I'm trying to test javascript for different browsers, but I don't have easy access to a Mac to test Safari.

    Is there any ports that I can depend on? Is there a good free emulator of some sort I...
  25. Re: CEdit subclass, how to get a reference to the dialog it's a part of?

    I understand what you mean... perhaps I can just call the parent window's function, and it can deal with it there.
Results 1 to 25 of 219
Page 1 of 9 1 2 3 4





Click Here to Expand Forum to Full Width

Featured