Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Using Visual C++ Express 2008 / 2010

Author
Message
Mike Johnson
TGC Developer
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 15th Aug 2011 10:44
Anyone using the Express versions of C++ will need to make a few changes to the templates and projects in order to compile:

* remove the include for atlimage.h in core.cpp

* edit project settings and ignore atls.lib and atlsd.lib in the linker

* update the debug directory so it points to the Final folder (for example projects)

We will be releasing an update that contains these fixes as soon as possible.
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 16th Aug 2011 15:43
In VS2010 (NOT express) under DEBUG mode i have to ignore atls.lib and atlsd.lib in the linker, else I get 7 warning errors
wodvik
13
Years of Service
User Offline
Joined: 16th Aug 2011
Location:
Posted: 16th Aug 2011 21:56
Did anybody get this working? I am still failing to get it up and running on VS2010 express. Anyone happen to have a fixed file for at least for the template they can send over?

Thanks.
wodvik
13
Years of Service
User Offline
Joined: 16th Aug 2011
Location:
Posted: 16th Aug 2011 22:44
Apologies if this is a repost (please dlete it so). Did anyone get this working? I am still struggling to get the exe.s running from within the VS2010 IDE (it keeps looking in the wrong directory). if anyone has a working solution file can they post it? Thanks.
wodvik
13
Years of Service
User Offline
Joined: 16th Aug 2011
Location:
Posted: 17th Aug 2011 00:42
Ok here is the work around that worked (change for each project)

under Linker/General/Output File change to $(OutDir)$(TargetName)$(TargetExt)

under Config Properties/Debugging/Working Directory change to
$(SolutionDir)\Final
Mike Johnson
TGC Developer
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 17th Aug 2011 10:04
Glad you got it working wodvik. Just so you know I am on the case with this and the next set of projects will have updated settings. Expect to see these files available for download by the end of the week.
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 17th Aug 2011 10:24
I know it's much work, but for the sake of everyone, and to avoid repeating the same problem 10000 times, could you make sets of project files for VS2008 & 2010, Express & Full?
Mike Johnson
TGC Developer
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 17th Aug 2011 10:33
There will be project files for VS 2008, VS 2008 Express and VS 2010 Express. Not able to do the full version of VS 2010 right now.
skybro
13
Years of Service
User Offline
Joined: 17th Aug 2011
Location:
Posted: 17th Aug 2011 23:00
Hi all, this is my first time using a forum so please forgive me in advance if I'm no doing it correctly.

I've tried the above suggestions but I'm now getting the following error (I'm using Microsoft Visual Studio 2010
Version 10.0.30319.1 RTMRel
Microsoft .NET Framework
Version 4.0.30319 RTMRel

Installed Version: VC Express

Microsoft Visual C++ 2010 01013-169-2610014-70575
Microsoft Visual C++ 2010

Hotfix for Microsoft Visual C++ 2010 Express - ENU (KB2542054) KB2542054
This hotfix is for Microsoft Visual C++ 2010 Express - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2542054.

Security Update for Microsoft Visual C++ 2010 Express - ENU (KB2251489) KB2251489
This security update is for Microsoft Visual C++ 2010 Express - ENU.
If you later install a more recent service pack, this security update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2251489.):

1>------ Build started: Project: 001 General - Core, Configuration: Release Win32 ------
1>LINK : fatal error C1047: The object or library file 'C:\Program Files\The Game Creators\AGK\IDE\platform\windows\Lib\Release\AGKWindows.lib' was created with an older compiler than other objects; rebuild old objects and libraries
1>LINK : fatal error LNK1257: code generation failed
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Jeku
Moderator
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 18th Aug 2011 07:22
I'm having troubles too. I haven't used VC++ in a long time, and am trying 2010 Express.

Quote: "
* edit project settings and ignore atls.lib and atlsd.lib in the linker

* update the debug directory so it points to the Final folder (for example projects)
"


I'm not sure where to do these steps. I've already followed bjadams' steps successfully.

When I compile I get:

Quote: "template.rc(1): fatal error RC1015: cannot open include file 'afxres.h'."



Software Engineer - Metamoki
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 18th Aug 2011 08:35
skybro, you have to compile in DEBUG mode for now. RELEASE won't work. But they will fix that soon.
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 18th Aug 2011 08:39
jeku...

1. View - Other Windows - Property Manager
2. right click inside the Property Manager & select Properties
3. Check under Linker - General - Additional Lib Directories
4. Check under C++ - General - Additional Inc Directories
skybro
13
Years of Service
User Offline
Joined: 17th Aug 2011
Location:
Posted: 18th Aug 2011 12:29
Thanks for that bjadams - I was up to the early hours trying to sort it - eventually passed out due to sleep deprivation
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 18th Aug 2011 16:37
Unfortunately VS2010 has different setting screens than VS2008 and it's not that straight forward & very frustrating until you get the hang of it
Mike Johnson
TGC Developer
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 18th Aug 2011 18:48
Testing has gone well over the past few days. New project files and template work fine with VS 2008, VS 2008 Express and VS 2010 Express in debug and release. Expect to see everything released sometime tomorrow.
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 20th Aug 2011 03:44 Edited at: 20th Aug 2011 03:47
hi i think i am doing this all wrong but are you suppose to open up the interperter project file. Then make these changes. because that is what i did and i got the following error.
I notice that it has already been belt and the release has the core and release object files.



Go through yourself at a wall.
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 20th Aug 2011 03:52
Oh never mind I think I know the error i am using 2008 express instead of 2008 professional

Go through yourself at a wall.
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 20th Aug 2011 15:12
I got AppGameKit up and running in VS 2010 C++ express but some of the changes I made seemed to errupt a ton of error messages related to "Cannot open pdb file" or something of the sort. I checked on the msdn website and from what I gathered this isn't a big concern? One thing I can't figure out is how to load images, where do the image files need to be in order for the agk::LoadImage to work and do I need to do something to the project settings?

I'm quite new to C++ so my apologies if these questions have very basic solutions.

3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 20th Aug 2011 18:41 Edited at: 20th Aug 2011 18:44
Well i got it too work but there is a message loop error that I don't know what it is. You only need the first post to acually make it work on c++ 2008 professional, because I have ecountered afxres.h error before. It means that express wont work with the prexisting program. I have tried to work around this error in express and I don't know if it is worth the effort to make it work with express.

Go through yourself at a wall.
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 20th Aug 2011 19:42
Hodger, for now put all your media files in a folder called MEDIA. They are going to fix this requirement for the next version
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 21st Aug 2011 00:06
@ 3d point in space: I got pre existing progams to work in VS 2010 express by excluding a projectname.rc from the project (I still kept the file). I don't have a clue how dangerous this is but it worked.

@ Bjadams: Thanks, worked like a charm.

3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 21st Aug 2011 23:35 Edited at: 21st Aug 2011 23:41
Well know that i got that done I found a bug where the bitmaps or jpegs dont load in c++. I just get a square with a red x in it. and the files are in the same folder. I even tried to include the hole path to where the image was.

Go through yourself at a wall.
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 21st Aug 2011 23:59 Edited at: 22nd Aug 2011 00:33
Never mind look at post, make a media file for the program, this will make your program work. Put the folder in the final folder that was created. I show picture of where that folder would be located with reference to the main program.

http://forum.thegamecreators.com/?m=forum_view&t=188421&b=41[img]null[/img]

Go through yourself at a wall.

Attachments

Login to view attachments
chunks chunks
17
Years of Service
User Offline
Joined: 2nd Jan 2007
Location: ackworth uk
Posted: 23rd Aug 2011 14:39
@mike Is the fixes for the templates ready yet ?

nvidia geforce 9500gt + amd athlon 64
windows vista ultimate.
Mike Johnson
TGC Developer
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 23rd Aug 2011 14:55
Yes and all the files are in place. Just waiting for confirmation that they can go live.
chunks chunks
17
Years of Service
User Offline
Joined: 2nd Jan 2007
Location: ackworth uk
Posted: 23rd Aug 2011 18:39
thanks for info .

chunks

nvidia geforce 9500gt + amd athlon 64
windows vista ultimate.
wownice908
13
Years of Service
User Offline
Joined: 19th Aug 2011
Location:
Posted: 24th Aug 2011 09:54
Visual C++ 2010 Express is part of the Visual Studio 2010 Express family, a free set of tools that Windows developers at any level can use to create custom applications using basic and expert settings. Visual C++ is a powerful language that is designed to give you deep and detailed control when you build either native Windows (COM+) applications or .NET Framework managed Windows applications.

Your signature has been erased by a mod because you are a spambot
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 24th Aug 2011 15:28
@wownice...... Wow! The information you provide is almost google like! I'd swear you were some sort of evil robot thing!

My signature is NOT a moderator plaything! Stop changing it!
SPARTAN 31337
17
Years of Service
User Offline
Joined: 23rd Jun 2007
Location:
Posted: 27th Aug 2011 11:52
I am not a C++ coder, but I do have VS2010 Pro (under BizSpark).
If anyone would like to explain exactly how I setup a 2010 project/solution to work with AppGameKit, then I can send the resultant project/solution to whomever needs it.
Bored of the Rings
User Banned
Posted: 11th Sep 2011 11:56 Edited at: 11th Sep 2011 12:10
Going back to Mike Johnson's comment regarding the linker options
Quote: "* edit project settings and ignore atls.lib and atlsd.lib in the linker"
.

If you are using Visual Studio Express 8, you need to separate the lib names by semi-colons. The examples were then compiling ok.

Login to post a reply

Server time is: 2024-11-23 12:56:19
Your offset time is: 2024-11-23 12:56:19