Need Help with Compiling
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Thread: Need Help with Compiling

  1. #1
    Join Date
    Feb 2012
    Posts
    2

    Need Help with Compiling

    I recently downloaded this file from the internet and have been attempting to compile it for about a day now. I've attempted to troubleshoot it as best as I could, but there are things that are beyond my ability needed to compile.

    Can anyone simply download the source and heading files provided, compile them, and package them back to me? It'd be a giant help. It's for the game Skylanders. Thank you!

    file/fmsvcm_Do_not_do_this
    Last edited by Cimperiali; February 21st, 2012 at 03:24 PM. Reason: Not an allowed practice to ask for downolad files not hosted here

  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Need Help with Compiling

    Hi.
    It is never a good idea to ask people to download a file hosted somewhere else.
    Regards,
    Cesare

    ***EDIT

    Addendum:
    The true link has been removed from previous post.
    SLKatana should post the code here (either add a zip with sources - no binary files, or copy and paste code between [Code][/Code] tags) even better, as he claimed he tried to compile a whole day, he could post the error messages asking for a solution to specific errors rather than asking for an exe from someone.
    Last edited by Cimperiali; February 22nd, 2012 at 02:31 AM.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  3. #3
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Need Help with Compiling

    By the way, here are the sources the Quester was pointing at
    Attached Files Attached Files
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  4. #4
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,632

    Re: Need Help with Compiling

    And here are my observations:

    Move the functions that are implemented in main.h to main.cpp instead and delete main.h, you don't need it.
    Also, you don't need the 'using namespace std;' and even if you did you should never have it in a header file.

    Open your project properties and add Wininet.lib comctl32.lib (with the space) into linker - input - additional dependencies.

    In the DownloadBytes function: replace strlen with sizeof. You can't use strlen on an uninitialized buffer and even if you could make it work with strlen it's sizeof you want.

    Now it should build. At least it did for me using VS2005 Pro.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    http://www.microsoft.com/visualstudio/eng/downloads

  5. #5
    Join Date
    Feb 2012
    Posts
    2

    Re: Need Help with Compiling

    After initially posting this thread, I saw that the forum allowed attachments. However, since it had to be "OK'd" by the forum admins before it posted, I didn't see any place to go back and edit the OP. My bad.

    The main compilation errors I was getting were in reference to the include lines requesting USB-like header files. I couldn't sufficiently set them up.

    S M A: Thanks for the feedback, I will attempt it when I get a chance. Everything looks easy enough.

  6. #6
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,632

    Re: Need Help with Compiling

    Ouch! That's not the same code as I found from your link so those observations do not apply.

    A quick glance though, according to the readme file the "new" code need Windows DDK. Follow what's in ReadMe.txt and you probably will be fine.
    Last edited by S_M_A; February 24th, 2012 at 03:02 AM.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    http://www.microsoft.com/visualstudio/eng/downloads

  7. #7
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Need Help with Compiling

    Quote Originally Posted by S_M_A View Post
    Ouch! That's not the same code as I found from your link
    SLKatana, I downloaded that zip from a post of your in another forum in another site.
    To find it, I googoled for "fmsvcm c++" (without quotes) and it lead me to a UNIX/Linux Programming General C++ Programming forum.
    The post had apparently same date as the one you posted here, but as S_M_A is saying sources are different, you should take a look at what I attached here to see it is the proper zip. In case is not, please upload the correct one.
    Thanks,
    C.
    Last edited by Cimperiali; October 10th, 2013 at 05:40 PM.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  8. #8
    Join Date
    Feb 2012
    Posts
    1

    Re: Need Help with Compiling

    Hi,

    Thanks for the efforts Cimperiali & S_M_A.

    I'm also interested in getting compiled SLKatana request with no luck till now so I'd be very gratefull too if someone get done for us.

    Thanks in advance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center