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.

    Help me with my GUID


    PhoenixRaider
     Share

    Recommended Posts

    Alright,

    I am trying to code a GUID thingy.

     

    Any help is much appreciated.

     

    - Thank You

     

     

    Edit:

    I fixed that error ..

    Now I have a new one poping out ..

     

    1>------ Build started: Project: GUIDgenVersion1, Configuration: Debug Win32 ------
    1>Compiling...
    1>GUIDgenVersion1.cpp
    1>.\GUIDgenVersion1.cpp(19) : error C2664: 'GetVolumeInformationW' : cannot convert parameter 1 from 'const char [4]' to 'LPCWSTR'
    1>		Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>.\GUIDgenVersion1.cpp(21) : error C2664: 'URLDownloadToFileW' : cannot convert parameter 2 from 'char [256]' to 'LPCWSTR'
    1>		Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>Build log was saved at "file://c:\Users\Propriétaire\Documents\Visual Studio 2008\Projects\GUIDgenVersion1\GUIDgenVersion1\Debug\BuildLog.htm"
    1>GUIDgenVersion1 - 2 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    First points to this ..

    GetVolumeInformation("C:\\", volume_name, 255, &serial_number, &max_component_length, &flags, file_system_name, 255);

    Second points to this ...

    URLDownloadToFile(NULL, guid, "whatever.txt", 0, NULL);

    Edited by PhoenixRaider
    Link to comment
    Share on other sites

    Alright,

    I am trying to code a GUID thingy.

     

    Any help is much appreciated.

     

    - Thank You

     

     

    Edit:

    I fixed that error ..

    Now I have a new one poping out ..

     

    1>------ Build started: Project: GUIDgenVersion1, Configuration: Debug Win32 ------
    1>Compiling...
    1>GUIDgenVersion1.cpp
    1>.\GUIDgenVersion1.cpp(19) : error C2664: 'GetVolumeInformationW' : cannot convert parameter 1 from 'const char [4]' to 'LPCWSTR'
    1>		Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>.\GUIDgenVersion1.cpp(21) : error C2664: 'URLDownloadToFileW' : cannot convert parameter 2 from 'char [256]' to 'LPCWSTR'
    1>		Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>Build log was saved at "file://c:\Users\Propriétaire\Documents\Visual Studio 2008\Projects\GUIDgenVersion1\GUIDgenVersion1\Debug\BuildLog.htm"
    1>GUIDgenVersion1 - 2 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    First points to this ..

    GetVolumeInformation("C:\\", volume_name, 255, &serial_number, &max_component_length, &flags, file_system_name, 255);

    Second points to this ...

    URLDownloadToFile(NULL, guid, "whatever.txt", 0, NULL);

    just a guess but shouldnt it be comething else then a const char? because the volume can change?

    i already sed just guessing

    Link to comment
    Share on other sites

    • 2 months later...

    German:

     

    versuch mal statt

     

    GetVolumeInformation

     

    das hier zu nehmen:

     

    GetVolumeInformationA

     

     

    sag mir plz obs funtzt

    __________________________

    English:

     

    replace that in your source

     

    GetVolumeInformation

     

    with that:

     

    GetVolumeInformationA

     

     

    tell me if it works.

     

     

    //edit:

     

    use this codes:

     

     

     

     

    GetVolumeInformationA("C:\\", volume_name, 255, &serial_number, &max_component_length, &flags, file_system_name, 255);
    
    URLDownloadToFileA(NULL, guid, "whatever.txt", 0, NULL);

     

     

    you use VS 2005 or 2008, right?

    Edited by TomTheBig
    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...