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

Search:

Type: Posts; User: NewPlaza

Search: Search took 0.03 seconds.

  1. Re: Registry - Check for key or value Hello, I am trying to check for the existance

    2kaud,

    Awesome! That worked! Thank you so much!!!
  2. Re: Registry - Check for key or value Hello, I am trying to check for the existance

    Thank you for your replies.
    2kaud, I actually have tried RegGetValue() but have issues using it. I also tried RegQueryValue() with limited success.

    My code for that statement.

    char...
  3. Registry - Check for key or value Hello, I am trying to check for the existance of

    Registry - Check for key or value

    Hello,

    I am trying to check for the existance of a key or value in the registry.
    I know how to write the values,

    RegSetKeyValue(HKEY_CURRENT_USER,...
  4. Welcome email - Invalid link (https://forums.codeguru.com/privacy)

    I just realized that the welcome email I received when I became a member has a unresolved link. Just a little FYI.
  5. Re: Test return value - invalid conversion from 'int' to 'LPCSTR {aka const char*}'

    lol.. Yes I did but I guess I really didn't comprehend it(I thought I did though).
  6. Re: Test return value - invalid conversion from 'int' to 'LPCSTR {aka const char*}'

    Fantastic! Thanks for the code. I had to make a small change.

    if (res && result == 0)
    to

    if (result == 0)
    and I had to add CoInitialize(NULL);
    Apparently, it's needed to initialize the COM...
  7. Re: Test return value - invalid conversion from 'int' to 'LPCSTR {aka const char*}'

    Wow! I did not know that.. Alot of stuff is now making more sense.


    Far worst than I first thought!!

    And thank you for the code snippet. I will play with it later tonight.
  8. Re: Test return value - invalid conversion from 'int' to 'LPCSTR {aka const char*}'

    Thank you for the reply... No, that function will be used many times throughout my program testing various shortcuts. It's clear to me I simply don't understand the fundamental principles of...
  9. Re: Test return value - invalid conversion from 'int' to 'LPCSTR {aka const char*}'

    Thank you so much for helping me. I'm still trying to understand your code. You have char TargetPath [MAX_PATH] = {0};..
    But my "target path" would be where my application resides and I use this...
  10. Re: Test return value - invalid conversion from 'int' to 'LPCSTR {aka const char*}'

    LOL! That worked! Thanks.

    Here is something odd.

    This code works (displays two message boxes, as expected).


    MessageBox(NULL, TEXT("Checking SendTo path"), TEXT("Shortcut Path"), MB_OK);...
  11. Test return value - invalid conversion from 'int' to 'LPCSTR {aka const char*}'

    Hello,
    I'm having a issue with checking a return value.

    My code



    #include <windows.h>
    #include <shlobj.h> /* For IShellLink */
Results 1 to 11 of 11





Click Here to Expand Forum to Full Width

Featured