| | |
C++ OS
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2009
Posts: 73
Reputation:
Solved Threads: 6
1
#2 Oct 11th, 2009
8? Are you serious? Wtf, Get your ass away from the computer and work on school, football and other stuff >:[.
And FYI, OS's take dedicated teams months or even years to make. Come back to C++ when you're at least a teenager.
Oh, and to give you an example of one of the simplest things you are looking for, heres the C++ code for a blank Window, kind of like Internet Explorer but with nothing but the blue title bar and borders.
Tl;dr: Programming is not for under-14's at all. It usually requires mathematical abilities too. It is appreciative that you have a lust for it, but let it wait
.
And FYI, OS's take dedicated teams months or even years to make. Come back to C++ when you're at least a teenager.
Oh, and to give you an example of one of the simplest things you are looking for, heres the C++ code for a blank Window, kind of like Internet Explorer but with nothing but the blue title bar and borders.
C++ Syntax (Toggle Plain Text)
#include <windows.h> const char g_szClassName[] = "myWindowClass"; LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { switch(msg) { case WM_CLOSE: DestroyWindow(hwnd); break; case WM_DESTROY: PostQuitMessage(0); break; default: return DefWindowProc(hwnd, msg, wParam, lParam); } return 0; } int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { WNDCLASSEX wc; HWND hwnd; MSG Msg; //Step 1: Registering the Window Class wc.cbSize = sizeof(WNDCLASSEX); wc.style = 0; wc.lpfnWndProc = WndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); wc.lpszMenuName = NULL; wc.lpszClassName = g_szClassName; wc.hIconSm = LoadIcon(NULL, IDI_APPLICATION); if(!RegisterClassEx(&wc)) { MessageBox(NULL, "Window Registration Failed!", "Error!", MB_ICONEXCLAMATION | MB_OK); return 0; } hwnd = CreateWindowEx( WS_EX_CLIENTEDGE, g_szClassName, "The title of my window", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 240, 120, NULL, NULL, hInstance, NULL); if(hwnd == NULL) { MessageBox(NULL, "Window Creation Failed!", "Error!", MB_ICONEXCLAMATION | MB_OK); return 0; } ShowWindow(hwnd, nCmdShow); UpdateWindow(hwnd); while(GetMessage(&Msg, NULL, 0, 0) > 0) { TranslateMessage(&Msg); DispatchMessage(&Msg); } return Msg.wParam; }
. Last edited by pspwxp fan; Oct 11th, 2009 at 9:36 am.
•
•
Join Date: Mar 2008
Posts: 1,400
Reputation:
Solved Threads: 113
1
#4 Oct 11th, 2009
You have to admit, for an 8 year old that's a pretty well presented post compared to some people on here who are in Uni.
Stick to something easier for a while, believe me you're not ready for C++ yet, maybe in 3/4 years, in the meanwhile stick to VB or Flash, you know... the sort of things a normal 8 year old would do
Stick to something easier for a while, believe me you're not ready for C++ yet, maybe in 3/4 years, in the meanwhile stick to VB or Flash, you know... the sort of things a normal 8 year old would do
I need pageviews! most fun profile ever :)
3
#5 Oct 11th, 2009
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
•
•
Join Date: Feb 2009
Posts: 73
Reputation:
Solved Threads: 6
0
#6 Oct 12th, 2009
Wow, nice where'd you get that from? 
Very useful.

Very useful.
![]() |
Other Threads in the C++ Forum
- Previous Thread: Multimap problem
- Next Thread: Microsoft access permissions in c++ Builder
| Thread Tools | Search this Thread |
api array based binary c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock wordfrequency wxwidgets






