Good C++ Forum?
Posted: Thu Sep 16, 2010 5:23 pm
Anybody who writes C++ here, do you have a forum that you really like? I'm starting on a little project of mine, and require some assistance.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Framework is a loosely defined term, wxWidgets call themselves a toolkit, which is anyones guess why. It's more than a simple library of functions or classes though. All Windowing frameworks will impose some architectural decisions on you, if anything, the hierarchy of components, whether you like it or not.I'm planning on creating a graphical program. I did some research and came to a non-finalized decision to use wxWidgets because of native widget cross-platform-ness (not correct?)... I did not realize it was a framework
Low level programming? Depends. If were talking real low level, like just using the CRT the programming on Linux and WIndows is pretty much the same experience. If were dealing with the native API's (still without a framework/abstraction library) then Windows is easier, IMO, simply because I am very familiar with the Windows SDK, I have only a laymen understanding of how Linux and it's signals and slots approach work. I am sure I could quickly learn the Linux style, but using a framework like wxWidgets or Qt would make that un-nessecary(sp?).I mainly use Linux. Is it your opinion that low level programming is easier/better on Windows?
I could recommend a dozen books, but I have no clue what your experience level is. Are you proficient in C/C++? If you are just learning and have a basic understanding of pointers, templates, etc. Using a framework like Qt is going to make things more difficult.The issue is, I'm defining parameters while I really know nothing about this stuff. I'll google for some tutorials on how to get started... do you know of any that you would recommend?
In my entire life, I've written no more and no less than twenty-six lines of C++. I just finished getting wxWidgets installed and built the Hello World example.PCSpectra wrote:but I have no clue what your experience level is
Yikes. Haha. I would say starting with wxWidgets framework is going backwards, but i personally chose to learn low-level C/C++ then STL, then Windows SDK, then OWL then MFC. Actually I lie, STL came in during my learning MFC. I am a ground up learner, whereas some people can do the top down approach, which is what you are doing, so ignore everything I just said if it discourages you.In my entire life, I've written no more and no less than twenty-six lines of C++. I just finished getting wxWidgets installed and built the Hello World example.
I am normally a ground-up learner, but in this case I have a specific purpose for learning C++, and obviously that can push one faster than one would normally like to go.PCSpectra wrote:I would say starting with wxWidgets framework is going backwards, but i personally chose to learn low-level C/C++ then STL, then Windows SDK, then OWL then MFC. Actually I lie, STL came in during my learning MFC. I am a ground up learner, whereas some people can do the top down approach, which is what you are doing, so ignore everything I just said if it discourages you.
Good, sounds like a good choice then.PCSpectra wrote:Thinking in C++ I purchased and never gave it away, it's one of those books I can still reference and learn something from. If you can read through that cover to cover and comprehend everything your doing good. Then ask questions in forums and read articles on topics that confuse you, pointers will probably stall you more than once, so read as many articles as you can find.
To protect myself from mis-implementing more advanced practices, I'll try to start with a few basic apps.PCSpectra wrote:Templates, Pointers, STL are the basics of learning C++ - when you move into a Window'ing framework, you start learning about events, class hierarchies, multi-threading, etc. Actually MT isn't connected to Window'ing frameworks at all, but I never built any MT daemons, one single threadded console apps, so that is at least my experience.
I'd recommend Java.Jonah Bron wrote:I'd like to create a program that is largely cross-platform, with only minor changes needed for each (by low level, I mean lower than scripting lang.s like PHP, e.g. C??).
http://en.wikipedia.org/wiki/Java_%28pr ... PrinciplesOne characteristic of Java is portability, which means that computer programs written in the Java language must run similarly on any supported hardware/operating-system platform.
I have nothing against Java the language, but the technology. Java apps run slower and look Java-ish. With the exception of basic Windows Java appears to implement their own control stack, so things like tabs, list boxes, etc are Java powered, which means more abstraction and a less consistent interface with the native operating system.By cross platform, I mean just Win/Mac/Linux, nothing really beyond that. What major advantages does Java have over C? Doesn't Java require that the user have the JVM installed?
Forgot to mention PCSpectra, I have in the past written a couple of simple apps with Visual Basic.
Code: Select all
HWND WINAPI CreateWindow(
__in_opt LPCTSTR lpClassName,
__in_opt LPCTSTR lpWindowName,
__in DWORD dwStyle,
__in int x,
__in int y,
__in int nWidth,
__in int nHeight,
__in_opt HWND hWndParent,
__in_opt HMENU hMenu,
__in_opt HINSTANCE hInstance,
__in_opt LPVOID lpParam
);Code: Select all
Window XCreateWindow(
display,
parent,
x,
y,
width,
height,
border_width,
depth,
class,
visual,
valuemask,
attributes
);Code: Select all
Qt_CreateWindow()
{
#ifdef __MS_WINDOWS
CreateWindow();
#else
XCreateWindow();
#endif
}