C++ OS

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2009
Posts: 1
Reputation: cwats124 is an unknown quantity at this point 
Solved Threads: 0
cwats124 cwats124 is offline Offline
Banned

C++ OS

 
-1
  #1
Oct 11th, 2009
Even though I am 8 , I WANT to make an OS. Something to be proud of.
I normaly use VB but I am now starting a bit of C++ programming.

Thanks ,
Campbell
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 73
Reputation: pspwxp fan is an unknown quantity at this point 
Solved Threads: 6
pspwxp fan pspwxp fan is offline Offline
Junior Poster in Training
 
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.
  1. #include <windows.h>
  2.  
  3. const char g_szClassName[] = "myWindowClass";
  4.  
  5. LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
  6. {
  7. switch(msg)
  8. {
  9. case WM_CLOSE:
  10. DestroyWindow(hwnd);
  11. break;
  12. case WM_DESTROY:
  13. PostQuitMessage(0);
  14. break;
  15. default:
  16. return DefWindowProc(hwnd, msg, wParam, lParam);
  17. }
  18. return 0;
  19. }
  20.  
  21. int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
  22. LPSTR lpCmdLine, int nCmdShow)
  23. {
  24. WNDCLASSEX wc;
  25. HWND hwnd;
  26. MSG Msg;
  27.  
  28. //Step 1: Registering the Window Class
  29. wc.cbSize = sizeof(WNDCLASSEX);
  30. wc.style = 0;
  31. wc.lpfnWndProc = WndProc;
  32. wc.cbClsExtra = 0;
  33. wc.cbWndExtra = 0;
  34. wc.hInstance = hInstance;
  35. wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);
  36. wc.hCursor = LoadCursor(NULL, IDC_ARROW);
  37. wc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
  38. wc.lpszMenuName = NULL;
  39. wc.lpszClassName = g_szClassName;
  40. wc.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
  41.  
  42. if(!RegisterClassEx(&wc))
  43. {
  44. MessageBox(NULL, "Window Registration Failed!", "Error!",
  45. MB_ICONEXCLAMATION | MB_OK);
  46. return 0;
  47. }
  48.  
  49. hwnd = CreateWindowEx(
  50. WS_EX_CLIENTEDGE,
  51. g_szClassName,
  52. "The title of my window",
  53. WS_OVERLAPPEDWINDOW,
  54. CW_USEDEFAULT, CW_USEDEFAULT, 240, 120,
  55. NULL, NULL, hInstance, NULL);
  56.  
  57. if(hwnd == NULL)
  58. {
  59. MessageBox(NULL, "Window Creation Failed!", "Error!",
  60. MB_ICONEXCLAMATION | MB_OK);
  61. return 0;
  62. }
  63.  
  64. ShowWindow(hwnd, nCmdShow);
  65. UpdateWindow(hwnd);
  66.  
  67. while(GetMessage(&Msg, NULL, 0, 0) > 0)
  68. {
  69. TranslateMessage(&Msg);
  70. DispatchMessage(&Msg);
  71. }
  72. return Msg.wParam;
  73. }
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 .
Last edited by pspwxp fan; Oct 11th, 2009 at 9:36 am.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,603
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 713
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess
 
4
  #3
Oct 11th, 2009
>Even though I am 8
If you're 8 years old then you are in violation of Daniweb's policies (members must be at least 13 years of age). Therefore, I'll report this thread so that you can be properly banned for the next five years.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 1,400
Reputation: William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of 
Solved Threads: 113
Sponsor
William Hemsworth William Hemsworth is offline Offline
Nearly a Posting Virtuoso
 
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
I need pageviews! most fun profile ever :)
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 4,341
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 237
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c
 
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 73
Reputation: pspwxp fan is an unknown quantity at this point 
Solved Threads: 6
pspwxp fan pspwxp fan is offline Offline
Junior Poster in Training
 
0
  #6
Oct 12th, 2009
Originally Posted by Dave Sinkula View Post
http://wiki.osdev.org/Main_Page
Wow, nice where'd you get that from?
Very useful.
Reply With Quote Quick reply to this message  
Reply

Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC