| | #1 |
| Advanced Warrior War Room Member Join Date: 2004 Location: Manchester, UK . . .but I would rather be elsewhere!
Posts: 554
Thanks: 98
Thanked 68 Times in 57 Posts
|
Hi Guys A while ago I had a little app created for me on rentacoder and by coder didn't give me instructions on how to compile it. Is there anyone in here who could help me for a few beers? Obviously I don't want to give everybody the zip file - maybe we can do this via email and bit by bit? Kevin |
| |
| | #2 |
| HyperActive Warrior War Room Member Join Date: 2008 Location: Adelaide, South Australia
Posts: 374
Thanks: 59
Thanked 30 Times in 24 Posts
|
Sure Kevin, I can help. First of all. What operating system is this written for, Windows, Mac OSX, Linux? If it's Windows and your coder used Visual Studio, and has provided all the necessary project files, it should be a snap for you to do this yourself. |
| | |
| |
| | #3 | |
| Advanced Warrior War Room Member Join Date: 2004 Location: Manchester, UK . . .but I would rather be elsewhere!
Posts: 554
Thanks: 98
Thanked 68 Times in 57 Posts
|
Yep, the coder has provided everything - it is for windows, but I don't know how to compile it though nor do I know what software I need - I realise that I ned vis studio - and I grabbed ms vs 2008 express but ain't got a clue what to do :-( Can you help? Kevin | |
| |
| | #4 |
| HyperActive Warrior War Room Member Join Date: 2008 Location: Adelaide, South Australia
Posts: 374
Thanks: 59
Thanked 30 Times in 24 Posts
|
Visual Studio Express should be fine, unless your coder used an earlier version. The way to find out is simple. Copy the project files into a folder on your C drive. Locate the .sln file and double click on it. (Make sure VS is installed first of course )That should then start up Visual Studio and load the project. If the project is for an older version of VS it will tell you and prompt you to convert it. Thats' fine, just do it. Now all you have to do is build the project. You don't want to build a debug version, so go to the Build menu and select the Configuration Manager option. When that dialog opens, select the Active Solution Configuration list box and choose release. Close the dialog, open the Build menu again and choose Build Solution. That's all there is to it. You'll then find your exe file under the Release directory in the project directory tree. I think that's all there is involved. Let me know if you have any problems. |
| | |
| |
| | #5 |
| Advanced Warrior War Room Member Join Date: 2004 Location: Manchester, UK . . .but I would rather be elsewhere!
Posts: 554
Thanks: 98
Thanked 68 Times in 57 Posts
|
Thanks John I followed the instructions and i get this error: 1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release 1>stdafx.cpp 1>c:\ . . . .\stdafx.h(38) : fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory 1>Build log was saved at "file://c:\Documents and Settings\Kevin\Desktop\...\Release\BuildLog.htm" 1>... - 1 error(s), 1 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== the ... replaces the directory and file as that would a big giveaway! Any ideas? Kevin |
| |
| | #6 |
| HyperActive Warrior War Room Member Join Date: 2008 Location: Adelaide, South Australia
Posts: 374
Thanks: 59
Thanked 30 Times in 24 Posts
|
Okay.... The first warning, D9035 is for a compiler option that detects 64 bit compatibility problems. It shouldn't be a problem until a later compiler removes that option. This is the help given for C1083 from the visual studio documentation To fix by checking the following possible causes
Try right clicking on the stdafx.cpp file in the solution explorer (the tree list in the side panel on VS) and select the Compile option in the menu. If that builds okay, then try building again. Another thought is to select the Rebuild All option in the build menu. Without seeing the project, I'm not sure if I can offer any more help. It's getting late too and I'm getting fuzzy headed, so I'm about to head off. If you'd like me to take a look at it, PM me. No charge btw. |
| | |
| |
| The Following User Says Thank You to ripsnorta2 For This Useful Post: |
| | #7 |
| Advanced Warrior War Room Member Join Date: 2004 Location: Manchester, UK . . .but I would rather be elsewhere!
Posts: 554
Thanks: 98
Thanked 68 Times in 57 Posts
|
John - PM sent Kevin |
| |
| | #8 |
| HyperActive Warrior War Room Member Join Date: 2008 Location: Adelaide, South Australia
Posts: 374
Thanks: 59
Thanked 30 Times in 24 Posts
|
Hi Kevin. Got some bad news for you I'm afraid. It turns out that Visual C++ Express does not include the functionality, headers, and libraries for the Microsoft Foundation Classes. Since your app uses MFC, it cannot be built. I didn't realise this during the course of this conversation last night. I did a scan of my harddrive just to make sure, but the afxwin.h file doesn't exist. You'll need to go and purchase Visual Studio Standard or Professional in order to compile the application. From Amazon, Standard will cost you $250, Professional will set you back $690. Sorry to be the bearer of bad news. |
| | |
| |
| | #9 |
| Advanced Warrior War Room Member Join Date: 2004 Location: Manchester, UK . . .but I would rather be elsewhere!
Posts: 554
Thanks: 98
Thanked 68 Times in 57 Posts
|
John - just sent another PM Kevin |
| |
| | #10 |
| Advanced Warrior War Room Member Join Date: 2004 Location: Manchester, UK . . .but I would rather be elsewhere!
Posts: 554
Thanks: 98
Thanked 68 Times in 57 Posts
|
John - please disregard the PM - I have it sorted and compiled. I looked through the code and disabled the line that says m_bmpBG.LoadBitmapA(IDB_BITMAP_BGR to see what would happen and bingo . . . it compiled! Can you foresee any problems with this? Kevin |
| |
| | #11 |
| HyperActive Warrior War Room Member Join Date: 2008 Location: Adelaide, South Australia
Posts: 374
Thanks: 59
Thanked 30 Times in 24 Posts
|
Hi Kevin, just PM'd you before I read this. Nope. You should be okay. That variable isn't used anywhere else in the code. It's probably some copy/paste cruft left over in development. |
| | |
| |
|
| Bookmarks |
| Tags |
| needed |
| |