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

Search:

Type: Posts; User: NewPlaza

Search: Search took 0.01 seconds.

  1. 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.
  2. 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).
  3. 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...
  4. 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.
  5. 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...
  6. 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...
  7. 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);...
  8. 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 8 of 8





Click Here to Expand Forum to Full Width

Featured