FinalVersion Posted July 2, 2010 Posted July 2, 2010 Yes but these resurces are programs like firefox or notepad 2 and these are too big projects because when i try pick code from there I dont know what i need and what i don't even if i know clearly what my program must do.How are open source programs resources? Your logic has so many flaws.And if you actually want to learn C++, and make an effort You should read this.Directly from the page I linked:C++ language from its basics up to the newest features [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center]
matthieuvb Posted July 2, 2010 Author Posted July 2, 2010 Did you live under a rock?why?Let me introduce you to Google. In fact, I made it easy for you. Click hereI already have a pdf. [font=Helvetica, Arial, sans-serif][background=rgb(252, 252, 250)][/background][/font]
Mat Posted July 2, 2010 Posted July 2, 2010 (edited) If you say that C++ has that much resources then by this logic it should be easy to find example proxy or example notepad. but when you gonna search it google, best you can find is topics about not working C++ programs.heres an example notepad (Depressingly simple btw): http://www.codeproject.com/KB/cpp/texti.aspxAnd a more complex one: http://www.codeproject.com/KB/cpp/TextEdit.aspxboth use MFC I think... May not be what you are looking for, but look for a bit longer on http://www.codeproject.com and you'll find everything.Edit: here's some books for you http://www.google.com/search?hl=en&tbs=bks:1&q=C%2B%2B&btnG=Search&aq=f&aqi=&aql=&oq=&gs_rfai= Edited July 2, 2010 by Mat AutoIt Project Listing
matthieuvb Posted July 2, 2010 Author Posted July 2, 2010 (edited) And a more complex one: http://www.codeproject.com/KB/cpp/TextEdit.aspx If i compile this example in Dev-c++, then get these errors: expandcollapse popupCompiler: Default compiler Building Makefile: "F:\Dev-C++\Projecten\TextEdit\Makefile.win" Bezig met uitvoeren van make... make.exe -f "F:\Dev-C++\Projecten\TextEdit\Makefile.win" all g++.exe -c MainFrm.cpp -o MainFrm.o -I"F:/Dev-C++/App/devcpp/lib/gcc/mingw32/3.4.2/include" -I"F:/Dev-C++/App/devcpp/include/c++/3.4.2/backward" -I"F:/Dev-C++/App/devcpp/include/c++/3.4.2/mingw32" -I"F:/Dev-C++/App/devcpp/include/c++/3.4.2" -I"F:/Dev-C++/App/devcpp/include" -D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_WINDOWS -D_AFXDLL -D_MBCS In file included from MainFrm.cpp:4: stdafx.h:15:64: afxwin.h: No such file or directory stdafx.h:16:46: afxext.h: No such file or directory stdafx.h:17:54: afxdisp.h: No such file or directory stdafx.h:18:78: afxdtctl.h: No such file or directory stdafx.h:20:65: afxcmn.h: No such file or directory In file included from MainFrm.cpp:5: TextEdit.h:12:3: #error include 'stdafx.h' before including this file for PCH In file included from MainFrm.cpp:5: TextEdit.h:23: error: expected class-name before '{' token TextEdit.h:31: error: `BOOL' does not name a type TextEdit.h:38: error: ISO C++ forbids declaration of `afx_msg' with no type TextEdit.h:38: error: expected `;' before "void" TextEdit.h:43: error: ISO C++ forbids declaration of `DECLARE_MESSAGE_MAP' with no type TextEdit.h:43: error: expected `;' before '}' token TextEdit.h:43: error: expected `;' before '}' token In file included from MainFrm.cpp:6: MainFrm.h:12: error: `DWORD' does not name a type MainFrm.h:13: error: `DWORD' does not name a type MainFrm.h:16: error: expected class-name before '{' token MainFrm.h:20: error: `CRichEditCtrl' does not name a type MainFrm.h:28: error: ISO C++ forbids declaration of `DECLARE_DYNAMIC' with no type MainFrm.h:28: error: expected `;' before "public" MainFrm.h:36: error: `BOOL' does not name a type MainFrm.h:48: error: `CStatusBar' does not name a type MainFrm.h:49: error: `CToolBar' does not name a type MainFrm.h:50: error: `CString' does not name a type MainFrm.h:56: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:56: error: expected `;' before "int" MainFrm.h:57: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:57: error: expected `;' before "void" MainFrm.h:58: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:58: error: expected `;' before "void" MainFrm.h:59: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:59: error: expected `;' before "void" MainFrm.h:60: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:60: error: expected `;' before "void" MainFrm.h:61: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:61: error: expected `;' before "void" MainFrm.h:62: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:62: error: expected `;' before "void" MainFrm.h:63: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:63: error: expected `;' before "void" MainFrm.h:64: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:64: error: expected `;' before "void" MainFrm.h:65: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:65: error: expected `;' before "void" MainFrm.h:66: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:66: error: expected `;' before "void" MainFrm.h:67: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:67: error: expected `;' before "void" MainFrm.h:70: error: ISO C++ forbids declaration of `DECLARE_MESSAGE_MAP' with no type MainFrm.h:70: error: expected `;' before '}' token MainFrm.h:70: error: expected `;' before '}' token MainFrm.cpp:15: error: `CFrameWnd' has not been declared MainFrm.cpp:17: error: expected constructor, destructor, or type conversion before "BEGIN_MESSAGE_MAP" MainFrm.cpp:17: error: expected `,' or `;' before "BEGIN_MESSAGE_MAP" MainFrm.cpp: In constructor `CMainFrame::CMainFrame()': MainFrm.cpp:47: error: `m_strPathname' undeclared (first use this function) MainFrm.cpp:47: error: (Each undeclared identifier is reported only once for each function it appears in.) MainFrm.cpp: At global scope: MainFrm.cpp:55: error: `int CMainFrame::OnCreate' is not a static member of `class CMainFrame' MainFrm.cpp:55: error: `LPCREATESTRUCT' was not declared in this scope MainFrm.cpp:56: error: expected `,' or `;' before '{' token MainFrm.cpp:116: error: `BOOL' does not name a type MainFrm.cpp:145: error: variable or field `OnSetFocus' declared void MainFrm.cpp:145: error: `int CMainFrame::OnSetFocus' is not a static member of `class CMainFrame' MainFrm.cpp:145: error: `CWnd' was not declared in this scope MainFrm.cpp:145: error: `pWnd' was not declared in this scope MainFrm.cpp:146: error: expected `,' or `;' before '{' token MainFrm.cpp:151: error: `BOOL' does not name a type MainFrm.cpp:163: error: no `void CMainFrame::OnEditPaste()' member function declared in class `CMainFrame' MainFrm.cpp: In member function `void CMainFrame::OnEditPaste()': MainFrm.cpp:164: error: `m_RichEdit' undeclared (first use this function) MainFrm.cpp:164: error: `CF_TEXT' undeclared (first use this function) MainFrm.cpp: At global scope: MainFrm.cpp:168: error: no `void CMainFrame::OnEditCut()' member function declared in class `CMainFrame' MainFrm.cpp: In member function `void CMainFrame::OnEditCut()': MainFrm.cpp:169: error: `m_RichEdit' undeclared (first use this function) MainFrm.cpp: At global scope: MainFrm.cpp:173: error: no `void CMainFrame::OnEditCopy()' member function declared in class `CMainFrame' MainFrm.cpp: In member function `void CMainFrame::OnEditCopy()': MainFrm.cpp:174: error: `m_RichEdit' undeclared (first use this function) MainFrm.cpp: At global scope: MainFrm.cpp:178: error: no `void CMainFrame::OnEditUndo()' member function declared in class `CMainFrame' MainFrm.cpp: In member function `void CMainFrame::OnEditUndo()': MainFrm.cpp:179: error: `m_RichEdit' undeclared (first use this function) MainFrm.cpp: At global scope: MainFrm.cpp:183: error: no `void CMainFrame::OnFilePrint()' member function declared in class `CMainFrame' MainFrm.cpp: In member function `void CMainFrame::Print(bool)': MainFrm.cpp:189: error: `CPrintDialog' undeclared (first use this function) MainFrm.cpp:189: error: expected `;' before "printDialog" MainFrm.cpp:193: error: `printDialog' undeclared (first use this function) MainFrm.cpp:193: error: `IDCANCEL' undeclared (first use this function) MainFrm.cpp:201: error: `HDC' undeclared (first use this function) MainFrm.cpp:201: error: expected `;' before "hPrinterDC" MainFrm.cpp:205: error: `FORMATRANGE' undeclared (first use this function) MainFrm.cpp:205: error: expected `;' before "fr" MainFrm.cpp:206: error: `hPrinterDC' undeclared (first use this function) MainFrm.cpp:206: error: `HORZRES' undeclared (first use this function) MainFrm.cpp:206: error: `GetDeviceCaps' undeclared (first use this function) MainFrm.cpp:207: error: `VERTRES' undeclared (first use this function) MainFrm.cpp:208: error: `LOGPIXELSX' undeclared (first use this function) MainFrm.cpp:209: error: `LOGPIXELSY' undeclared (first use this function) MainFrm.cpp:210: error: `LONG' undeclared (first use this function) MainFrm.cpp:210: error: expected `;' before "lTextLength" MainFrm.cpp:211: error: expected `;' before "lTextPrinted" MainFrm.cpp:214: error: `MM_TEXT' undeclared (first use this function) MainFrm.cpp:214: error: `SetMapMode' undeclared (first use this function) MainFrm.cpp:217: error: `fr' undeclared (first use this function) MainFrm.cpp:217: error: `ZeroMemory' undeclared (first use this function) MainFrm.cpp:234: error: `m_RichEdit' undeclared (first use this function) MainFrm.cpp:237: error: `DOCINFO' undeclared (first use this function) MainFrm.cpp:237: error: expected `;' before "di" MainFrm.cpp:238: error: `di' undeclared (first use this function) MainFrm.cpp:241: error: `m_strPathname' undeclared (first use this function) MainFrm.cpp:244: error: `NULL' undeclared (first use this function) MainFrm.cpp:248: error: `StartDoc' undeclared (first use this function) MainFrm.cpp:251: error: `lTextLength' undeclared (first use this function) MainFrm.cpp:256: error: `StartPage' undeclared (first use this function) MainFrm.cpp:262: error: `lTextPrinted' undeclared (first use this function) MainFrm.cpp:266: error: `EndPage' undeclared (first use this function) MainFrm.cpp:281: error: `EndDoc' undeclared (first use this function) MainFrm.cpp:283: error: `DeleteDC' undeclared (first use this function) MainFrm.cpp: At global scope: MainFrm.cpp:287: error: variable or field `ondropFiles' declared void MainFrm.cpp:287: error: `int CMainFrame::ondropFiles' is not a static member of `class CMainFrame' MainFrm.cpp:287: error: `HDROP' was not declared in this scope MainFrm.cpp:288: error: expected `,' or `;' before '{' token MainFrm.cpp: In member function `void CMainFrame::ReadFile()': MainFrm.cpp:303: error: `CString' undeclared (first use this function) MainFrm.cpp:303: error: expected `;' before "FileName" MainFrm.cpp:306: error: `FileName' undeclared (first use this function) MainFrm.cpp:306: error: `_T' undeclared (first use this function) MainFrm.cpp:309: error: `CFile' undeclared (first use this function) MainFrm.cpp:309: error: expected `;' before "cFile" MainFrm.cpp:310: error: `EDITSTREAM' undeclared (first use this function) MainFrm.cpp:310: error: expected `;' before "es" MainFrm.cpp:312: error: `es' undeclared (first use this function) MainFrm.cpp:312: error: `DWORD' undeclared (first use this function) MainFrm.cpp:312: error: `cFile' undeclared (first use this function) MainFrm.cpp:313: error: `EDITSTREAMCALLBACK' undeclared (first use this function) MainFrm.cpp:313: error: expected `;' before "MyStreamInCallback" MainFrm.cpp:315: error: `m_RichEdit' undeclared (first use this function) MainFrm.cpp:315: error: `SF_TEXT' undeclared (first use this function) MainFrm.cpp: In member function `void CMainFrame::WriteFile()': MainFrm.cpp:322: error: `CString' undeclared (first use this function) MainFrm.cpp:322: error: expected `;' before "Pathname" MainFrm.cpp:323: error: `Pathname' undeclared (first use this function) MainFrm.cpp:323: error: `_T' undeclared (first use this function) MainFrm.cpp:326: error: `CFile' undeclared (first use this function) MainFrm.cpp:326: error: expected `;' before "cFile" MainFrm.cpp:327: error: `EDITSTREAM' undeclared (first use this function) MainFrm.cpp:327: error: expected `;' before "es" MainFrm.cpp:329: error: `es' undeclared (first use this function) MainFrm.cpp:329: error: `DWORD' undeclared (first use this function) MainFrm.cpp:329: error: `cFile' undeclared (first use this function) MainFrm.cpp:330: error: `EDITSTREAMCALLBACK' undeclared (first use this function) MainFrm.cpp:330: error: expected `;' before "MyStreamOutCallback" MainFrm.cpp:332: error: `m_RichEdit' undeclared (first use this function) MainFrm.cpp:332: error: `SF_TEXT' undeclared (first use this function) MainFrm.cpp: At global scope: MainFrm.cpp:337: error: no `void CMainFrame::OnFileOpen()' member function declared in class `CMainFrame' MainFrm.cpp: In member function `void CMainFrame::OnFileOpen()': MainFrm.cpp:344: error: `CFileDialog' undeclared (first use this function) MainFrm.cpp:344: error: expected `;' before "fileDlg" MainFrm.cpp:349: error: `fileDlg' undeclared (first use this function) MainFrm.cpp:349: error: `IDOK' undeclared (first use this function) MainFrm.cpp:351: error: `m_strPathname' undeclared (first use this function) MainFrm.cpp: At global scope: MainFrm.cpp:360: error: `DWORD' does not name a type MainFrm.cpp:371: error: `DWORD' does not name a type MainFrm.cpp:382: error: no `void CMainFrame::OnFileSave()' member function declared in class `CMainFrame' MainFrm.cpp: In member function `void CMainFrame::OnFileSave()': MainFrm.cpp:383: error: `m_strPathname' undeclared (first use this function) MainFrm.cpp:383: error: `OnFileSaveas' undeclared (first use this function) MainFrm.cpp: At global scope: MainFrm.cpp:388: error: no `void CMainFrame::OnFileNew()' member function declared in class `CMainFrame' MainFrm.cpp: In member function `void CMainFrame::OnFileNew()': MainFrm.cpp:390: error: `m_RichEdit' undeclared (first use this function) MainFrm.cpp:392: error: `m_strPathname' undeclared (first use this function) MainFrm.cpp: At global scope: MainFrm.cpp:398: error: no `void CMainFrame::OnFileSaveas()' member function declared in class `CMainFrame' MainFrm.cpp: In member function `void CMainFrame::OnFileSaveas()': MainFrm.cpp:404: error: `CFileDialog' undeclared (first use this function) MainFrm.cpp:404: error: expected `;' before "fileDlg" MainFrm.cpp:409: error: `fileDlg' undeclared (first use this function) MainFrm.cpp:409: error: `IDOK' undeclared (first use this function) MainFrm.cpp:411: error: `m_strPathname' undeclared (first use this function) MainFrm.cpp: In member function `void CMainFrame::SetWindowTitle()': MainFrm.cpp:422: error: `CString' undeclared (first use this function) MainFrm.cpp:422: error: expected `;' before "Title" MainFrm.cpp:424: error: `m_strPathname' undeclared (first use this function) MainFrm.cpp:424: error: `Title' undeclared (first use this function) MainFrm.cpp:426: error: `SetWindowText' undeclared (first use this function) make.exe: *** [MainFrm.o] Error 1 Uitvoering voltooidand in C++ i get this question: maybe a wrong compiler? Edited July 2, 2010 by Matthieuautoitscripter [font=Helvetica, Arial, sans-serif][background=rgb(252, 252, 250)][/background][/font]
FinalVersion Posted July 2, 2010 Posted July 2, 2010 (edited) You're not serious are you? Most of those errors are simply fixed. We're not your personal Google. And as Mat said, both use MFC, so why even go near they before you can even compile a Hello World program. Edited July 2, 2010 by FinalVersion [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center]
Mat Posted July 2, 2010 Posted July 2, 2010 Did you try and convert? It was written using an earlier version of Visual studio (6.0 it says) AutoIt Project Listing
matthieuvb Posted July 2, 2010 Author Posted July 2, 2010 (edited) We're not your personal Google.oh, I thought so! ok, so I think I know enough.and if not, then I'll place another topic.Thanks all! Edited July 2, 2010 by Matthieuautoitscripter [font=Helvetica, Arial, sans-serif][background=rgb(252, 252, 250)][/background][/font]
Bert Posted July 2, 2010 Posted July 2, 2010 You may want to learn the basics before attempting anything. Find someone at your school who can work with you in person. A teacher or classmate. Obviously you are having a difficult time grasping the basics. You may want to look at YouTube to see if there are any videos on how to do what you want. The Vollatran project  My blog: http://www.vollysinterestingshit.com/
wraithdu Posted July 2, 2010 Posted July 2, 2010 You're problem is this current culture of instant gratification. You want to be able to find whatever you want immediately, copy and paste it somewhere, press a button and giggle like a school girl. You may only be 12, but grow up. You can't even be bothered to type in comprehendible english or full sentences, yet you want someone here to spoon feed you some code you can happily copy and paste, learning nothing. Then you'll be back again when you want to do anything else, with the same attitude and lack of motivation. People like you make teachers weep at the future.
Mat Posted July 2, 2010 Posted July 2, 2010 Kk... Heres the most basic tutorial you will ever get on using visual studio to write a hello world program. Follow it step by step and you shouldn't go wrong - you will instead learn how to make a project, and how to write the the console. http://code.google.com/p/m-a-t/wiki/cpp Mat AutoIt Project Listing
E1M1 Posted July 2, 2010 Posted July 2, 2010 You're problem is this current culture of instant gratification. You want to be able to find whatever you want immediately, copy and paste it somewhere, press a button and giggle like a school girl. You may only be 12, but grow up. You can't even be bothered to type in comprehendible english or full sentences, yet you want someone here to spoon feed you some code you can happily copy and paste, learning nothing. Then you'll be back again when you want to do anything else, with the same attitude and lack of motivation. People like you make teachers weep at the future.I think it's because in autoit you can just copy-paste code. edited
Richard Robertson Posted July 3, 2010 Posted July 3, 2010 I think it's because in autoit you can just copy-paste code.You can copy and paste code in any language.
matthieuvb Posted July 3, 2010 Author Posted July 3, 2010 now i am 13 years old! it's my birthday today [font=Helvetica, Arial, sans-serif][background=rgb(252, 252, 250)][/background][/font]
Developers Jos Posted July 3, 2010 Developers Posted July 3, 2010 now i am 13 years old!it's my birthday today Gefeliciteerd Matthieu.Nu je 13 bent kan je iets meer tijd gaan nemen om eerst zaken zelf uit te zoeken. Neem iedere keer 1 stap en je zal zien dat je snel verder komt.Je kan duidelijk zien in dit "draadje" dat het niet wordt gewaardeerd als je alleen maar vragen stelt zonder daar eerst zelf wat energie in te stoppen en te zoeken naar oplossingen.veel plezier vandaag.Jos SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past.Â
matthieuvb Posted July 3, 2010 Author Posted July 3, 2010 Gefeliciteerd Matthieu.Nu je 13 bent kan je iets meer tijd gaan nemen om eerst zaken zelf uit te zoeken. Neem iedere keer 1 stap en je zal zien dat je snel verder komt.Je kan duidelijk zien in dit "draadje" dat het niet wordt gewaardeerd als je alleen maar vragen stelt zonder daar eerst zelf wat energie in te stoppen en te zoeken naar oplossingen.veel plezier vandaag.JosIk heb er één dag mee zitten klooien zonder resultaat,dus toen dacht ik, laat ik mn tijd niet verknoeien!mare, bedankt! [font=Helvetica, Arial, sans-serif][background=rgb(252, 252, 250)][/background][/font]
Developers Jos Posted July 3, 2010 Developers Posted July 3, 2010 Ik heb er één dag mee zitten klooien zonder resultaat,dus toen dacht ik, laat ik mn tijd niet verknoeien!Dan heb je mij nog niet helemaal begrepen. Het punt is dat je met simpele voorbeelden moet gaan beginnen om de programmeer taal eerst te leren.Jij probeert mee te doen aan het Nederlands dictee zonder eerst goed Nederlands geleerd te hebben.Ik snap best dat het moeilijk is die eerste stappen te maken, maar het is echt de enige manier om een programmeertaal goed onder de knie te krijgen.Gr,Jos SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past.Â
matthieuvb Posted July 3, 2010 Author Posted July 3, 2010 Dan heb je mij nog niet helemaal begrepen. Het punt is dat je met simpele voorbeelden moet gaan beginnen om de programmeer taal eerst te leren.Jij probeert mee te doen aan het Nederlands dictee zonder eerst goed Nederlands geleerd te hebben.Ik snap best dat het moeilijk is die eerste stappen te maken, maar het is echt de enige manier om een programmeertaal goed onder de knie te krijgen.Gr,JosOk, bedankt! [font=Helvetica, Arial, sans-serif][background=rgb(252, 252, 250)][/background][/font]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now