community attempt at multiplayer
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
the stdafx.h links to several other MFC headers, which would require the MFC libs to work right?paradoxnj wrote:Sounds like it uses a precompiled header. stdafx.h is usually a precompiled header. In the project properties, does it link with MFC libs at all?
Here's a list of Mfc headers included
- #include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#include <afxcmn.h> // MFC support for Windows Common Controls
Code: Select all
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdParam, int nCmdShow)
Jonas
Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. If you aren't sure which way to do something, do it both ways and see which works better. - John Carmack
Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. If you aren't sure which way to do something, do it both ways and see which works better. - John Carmack
you got to be kidding is that it? if so why in the world were mfc's used?
Jonas
Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. If you aren't sure which way to do something, do it both ways and see which works better. - John Carmack
Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. If you aren't sure which way to do something, do it both ways and see which works better. - John Carmack
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
Well, of course you can use std:string instead of CString but it's still quite some work replacing all occurrences of CString. Also CString has quite a few utility functions like TrimRight/TrimLeft, Format etc that need some extra coding when using std::string. The RF executable size would _not_ change much because mfc is used in a shared dll.You can get rid of CString and use std::string instead. It's not much of a change and would eliminate the need for MFC making the RF executable much smaller.
As mentioned earlier CString is not the only part of MFC used in RF...
Why not? MFC is widespread, fast to learn, easy to use and rather well documented...if so why in the world were mfc's used?
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
OK, I've done it. MFC is gone and replaced with the standard windows/template libraries. I need to do some more testing to make sure everything works as expected though. I think this should be done by the end of the week.
Requirements for compiling are (everything is freely available):
Visual Studio C++ 2005 (Express and better)
Platform SDK
DirectX SDK
Requirements for compiling are (everything is freely available):
Visual Studio C++ 2005 (Express and better)
Platform SDK
DirectX SDK
Thats GREAT! Thanks!!
RF2 site: http://realityfactory2.sourceforge.net/
RF2 tasks: http://sourceforge.net/pm/?group_id=179085
RF2 tasks: http://sourceforge.net/pm/?group_id=179085
Before this, only developers who had some prof. version of Visual C++ (and NOT the freely available Version of C++ that can be downloaded on the microsoft site) were able to compile the source code of RealityFactory. Now everyone who has a compiler can compile RealitFactory. This is great news because now improvements can be made by everyone who can program a bit, not just by Quest, Nout and wxbx1, who have this version that was needed for compiling RF i suppose.
Everyone can see the difficult, but only the wise can see the simple.
-----
-----
-
- Posts: 5
- Joined: Sat Feb 03, 2007 12:29 am
- Location: Australia