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 04:24 PM.
Reason: Not an allowed practice to ask for downolad files not hosted here
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 03: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.
By the way, here are the sources the Quester was pointing at
...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.
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
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.
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 04: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
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.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.