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.
1 Attachment(s)
Re: Need Help with Compiling
By the way, here are the sources the Quester was pointing at
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.
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.
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.
Re: Need Help with Compiling
Quote:
Originally Posted by
S_M_A
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.
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.