Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    C++ Nub needs help


    sunshine
     Share

    Recommended Posts

    Hello guys

     

    I wanna lern how to use Shellexecute.

    I used msdn.com and now i have this code:

    #include <windows.h>

    #include <ShellAPI.h>

    #include <tchar.h>

     

    int main()

    {

    ShellExecute(NULL, _T("open"), _T("C:\\asdf.txt"), NULL, NULL, SW_SHOWNORMAL);

    }

     

    But ive got some failure:

    1>main.obj : error LNK2028: Nicht aufgelöstes Token (0A000024) ""extern "C" struct HINSTANCE__ * __stdcall ShellExecuteW(struct HWND__ *,wchar_t const *,wchar_t const *,wchar_t const *,wchar_t const *,int)" (?ShellExecuteW@@$$J224YGPAUHINSTANCE__@@PAUHWND__@@PB_W111H@Z)", auf das in Funktion ""int __cdecl main(void)" (?main@@$$HYAHXZ)" verwiesen wird.

    1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""extern "C" struct HINSTANCE__ * __stdcall ShellExecuteW(struct HWND__ *,wchar_t const *,wchar_t const *,wchar_t const *,wchar_t const *,int)" (?ShellExecuteW@@$$J224YGPAUHINSTANCE__@@PAUHWND__@@PB_W111H@Z)" in Funktion ""int __cdecl main(void)" (?main@@$$HYAHXZ)".

    1>C:\Users\nuffi\Documents\Visual Studio 2008\Projects\uuuu\Debug\uuuu.exe : fatal error LNK1120: 2 nicht aufgelöste externe Verweise.

    1>Das Buildprotokoll wurde unter "file://c:\Users\nuffi\Documents\Visual Studio 2008\Projects\uuuu\Debug\BuildLog.htm" gespeichert.

     

    Im using Visual c++ 2008 Express Edition

    Google said (O.o) said its not wrong coded but my compiler settings are wrong

    but i dont know what to change...

    Can someone help me?

     

     

     

    Sorry for bad english

    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...