Re: [Dev-C++] Re: Dev-cpp-users digest, Vol 1 #1071 - 9 msgs
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2002-10-24 23:12:36
|
Not completely sure :-) You should ave __WXMSW__ defined too. For one of my wxWindows projects, I have the following settings: The General/Compiler options: -fno-rtti -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall -fvtable-thunks -D_X86_=1 -DWIN32 -D_WIN32 -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -DSTRICT -D__WXMSW__ -D__WINDOWS__ -D__WXDEBUG__ -Wno-multichar The General/Linker options: -Wl --subsystem,windows -mwindows -lwxmswd -lregex -ljpeg -lpng -lzlib -ltiff -lstdc++ -lgcc -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lodbc32 -ladvapi32 -lodbc32 -lwsock32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid General/Type: Win32 GUI The project is using wxWindows 2.3.3 build from the source distribution on sourceforge, i.e. not the wxWindows package available for Dev-C++. Compilation with MinGW. gcc 2.95.3-6. /Per W On Thu, 24 Oct 2002 XI...@pr... wrote: > And that will fix the unsupported toolkit error in fonts.h? > > Cool. > (PS-I did not see your response amongst the digests from that > period...) > > --- Original Message --- > From: dev...@li... > To: dev...@li... > Subject: Dev-cpp-users digest, Vol 1 #1071 - 9 msgs > > >Send Dev-cpp-users mailing list submissions to > > > dev...@li... > > > >To subscribe or unsubscribe via the World Wide Web, visit > > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > >or, via email, send a message with subject or body 'help' to > > > dev...@li... > > > >You can reach the person managing the list at > > > dev...@li... > > > >When replying, please edit your Subject line so it is more specific > >than "Re: Contents of Dev-cpp-users digest..." > > > > > >Today's Topics: > > > > 1. RE: WxWINDOWS and Dev-C++ (Per Westermark) > > 2. 4.9.6.5 bug (Carlos =3D?iso-8859-1?Q?Garc=3DEDa?=3D del Monte) > > 3. Re: Input one file output another. (Daniel Glenfield) > > 4. Re: drawing in Windows (Daniel Glenfield) > > 5. Re: Whoops - drawing in Windows (Daniel Glenfield) > > 6. RE : [Dev-C++] How to keep the DOS console open? (Pierre > Lepage) > > 7. Re: RE : [Dev-C++] How to keep the DOS console open? > (Daniel Glenfi= > >eld) > > 8. Strange phenomenon (Christian Wallukat) > > 9. Re: Whoops - drawing in Windows (Vlada Djurovic) > > > >--__--__-- > > > >Message: 1 > >Date: Thu, 24 Oct 2002 11:36:49 +0200 (CEST) > >From: Per Westermark <pw...@ia...> > >Reply-To: Per Westermark <pw...@ia...> > >To: David Scott Williams <xi...@pr...> > >cc: dev...@li... > >Subject: RE: [Dev-C++] WxWINDOWS and Dev-C++ > > > >Hello David! > > > >As a regular user of sourceforge, you should know that > sourceforge keeps > >the archive of this mailing list. You only have to scan two days > back to > >find your specific question, and an answer. > > > >/Per W > > > >On Mon, 21 Oct 2002, Per Westermark wrote: > > > >> The problem is that you have forgotten do define which compiler > >> environment you are using. > >>=3D20 > >> Deefine __GNUWIN32__ and wxWindows will select a suitable > string compar= > >e > >> function. > >>=3D20 > >> A good trick when playing along with the wxWindows kit is to > run the > >> makefiles in the samples directory. When they compile the > code, you wil= > >l > >> see a number of parameters sent to gcc. If you make sure that > your own > >> projects uses the same parameters, you will be home-free. > >>=3D20 > >> You will get all needed libraries, same settings for run-time type > >> information, debug settings etc. > >>=3D20 > >> /Per W > >>=3D20 > >> On Mon, 21 Oct 2002, Santiago Palmier Campos wrote: > >>=3D20 > >> > Hi Mark, > >> >=3D20 > >> > This error may appear due to... > >> >=3D20 > >> > ...uncomplete/wrong build of wxWindows libraries; so you > have to rebu= > >il=3D > >d the > >> > libraries correctly. > >> >=3D20 > >> > ...wrong order for include directories, please check them > and take a = > >lo=3D > >ok > >> > at: > >> > > http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Directory-Options.html#Dire= > >ct=3D > >ory%2 > >> > 0Options > >> > I think it is really useful sometimes ;o) > >> >=3D20 > >> > Hope this helps! > >> > Regards > >> >=3D20 > >> > Santy > >> > PS: wxWindows is not so hard/difficult to use, just be a > little bit p= > >at=3D > >ient > >> > at the beginning, follow the README instructions and take a > look at s= > >om=3D > >e > >> > tutorials, they are great!!! Just my 2 cents! > >> >=3D20 > >> > -----Original Message----- > >> > From: Mark L. Wise [mailto:ma...@al...]=3D20 > >> > Sent: s=3DE1bado, 19 de octubre de 2002 0:03 > >> > To: dev...@li... > >> > Subject: [Dev-C++] WxWINDOWS and Dev-C++ > >> >=3D20 > >> >=3D20 > >> > Hello all! > >> >=3D20 > >> > Sorry to be such a pain regarding WxWINDOWS and Dev-C++, but.... > >> >=3D20 > >> > I have been trying to compile some of the sample code > included with t= > >he > >> > WxWINDOWS package. When I try compiling I get the following > message = > >(a=3D > >long > >> > with other things...) > >> >=3D20 > >> > 4 C:\PROGRAM FILES\DEV-C++\include\wx\string.h:170 > >> > #error "Please define string case-insensitive compare for > your OS/com= > >pi=3D > >ler" > >> >=3D20 > >> > So... How do I define string case-insensitive compare in > Dev-C++??? > >> >=3D20 > >> > Thanks in advance... > >> >=3D20 > >> > Mark > >> >=3D20 > >> > Alpha II Service, Inc. > >> > 1312 Epworth Avenue > >> > Reynoldsburg, Ohio 43068 > >> > 614 868-5033 (Voice) > >> > 617 812-5838 (Fax) > >> >=3D20 > >> >=3D20 > >> >=3D20 > >> >=3D20 > >> > ------------------------------------------------------- > >> > This sf.net email is sponsored by:ThinkGeek > >> > Welcome to geek heaven. > >> > http://thinkgeek.com/sf > _____________________________________________= > >__ > >> > Dev-cpp-users mailing list > >> > Dev...@li... > >> > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > >> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > >> > > ---------------------------------------------------------------------= > >--=3D > >--------------- > >> > This message and any files transmitted with it are > confidential and i= > >nt=3D > >ended solely=3D20 > >> > for the use of the individual or entity to whom they are > addressed. N= > >o =3D > >confidentiality=3D20 > >> > or privilege is waived or lost by any wrong transmission.=3D20 > >> > If you have received this message in error, please > immediately destro= > >y =3D > >it and kindly=3D20 > >> > notify the sender by reply email. > >> > You must not, directly or indirectly, use, disclose, > distribute, prin= > >t,=3D > > or copy any=3D20 > >> > part of this message if you are not the intended recipient. > Opinions,= > > c=3D > >onclusions and=3D20 > >> > other information in this message that do not relate to the > official = > >bu=3D > >siness of=3D20 > >> > Ydilo Advanced Voice Solutions, S.A. shall be understood as > neither g= > >iv=3D > >en nor endorsed by it.=3D20 > >> > > ---------------------------------------------------------------------= > >--=3D > >--------------- > >> >=3D20 > >> >=3D20 > >> > ------------------------------------------------------- > >> > This sf.net email is sponsored by:ThinkGeek > >> > Welcome to geek heaven. > >> > http://thinkgeek.com/sf > >> > _______________________________________________ > >> > Dev-cpp-users mailing list > >> > Dev...@li... > >> > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > >> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > >> >=3D20 > >>=3D20 > >>=3D20 > > > > > > > > > >--__--__-- > > > >Message: 2 > >Date: Thu, 24 Oct 2002 11:17:18 +0200 > >From: Carlos =3D?iso-8859-1?Q?Garc=3DEDa?=3D del Monte <cg...@wo...> > >To: dev-cpp-users-list <dev...@li...> > >Subject: [Dev-C++] 4.9.6.5 bug > > > >I updated Dev to the 4.9.6.5 version, now the import MSVisual > project > >does not work, I select the dsp file and when I click on import > button > >it does nothing. > > > > > > > >--__--__-- > > > >Message: 3 > >From: "Daniel Glenfield" <sp...@ho...> > >To: Tam...@dl..., > dev...@li... > >Subject: Re: [Dev-C++] Input one file output another. > >Date: Thu, 24 Oct 2002 10:43:30 +0100 > > > > > >This constructor may help > >fstream( const char* szName, int nMode, int nProt =3D > filebuf::openprot )= > >; > > > >szName is the name of the file, > >nMode is ios::in, ios::out etc. > >then use > >filebuf::sh_read (Read sharing allowed.) > >and > >filebuf::sh_write (Write sharing allowed.) > >with the || operator. > > > > > >Try closing the file as well once you are done with it. > > > > > >>From: "Mitchell, Tamra (DLM)" <Tam...@dl...> > >>To: "'dev...@li...'"=20 > >><dev...@li...> > >>Subject: [Dev-C++] Input one file output another. > >>Date: Wed, 23 Oct 2002 14:54:20 -0400 > >> > >> > >>Rephrase question. > >> > >>I am trying read test from one file and output to another file > and am no= > >t > >>sure how to complete correctly. > >> > >>#include<fstream> > >>#include<iostream> > >>using namespace std; > >> > >>void main(){ > >> ifstream fin; > >> ofstream fout; > >> fin.open("Eb.txt"); > >> /*if(fin=3D=3D0){ > >> > cout << " input file xx.txt not found "<< endl; > >> }*/ > >> fout.open("y.txt"); > >> int a[10],i; > >> for(i=3D0;i<10;i++) > >> > fin >> a[i]; > >> for(i=3D0;i<10;i++) > >> > fout << a[i] << endl; > >> > >>} > >> > >> > >>Can anyone offer any suggestions. > >> > >>Tamra Y. Mitchell > >>Database & Operating Systems Analyst > >>412-222-8203 - Work > >>412-996-9078 - Cell > >> > > > > > >_________________________________________________________________ > >Surf the Web without missing calls!=A0Get MSN Broadband. =20 > >http://resourcecenter.msn.com/access/plans/freeactivation.asp > > > > > > > >--__--__-- > > > >Message: 4 > >From: "Daniel Glenfield" <sp...@ho...> > >To: dj...@im..., dev...@li... > >Subject: Re: [Dev-C++] drawing in Windows > >Date: Thu, 24 Oct 2002 10:45:02 +0100 > > > >Yes you need to serialise the information to a file. I'll see if > I can di= > >g=20 > >up some information on this, but that's what you need to do. > > > > > > > > > > > > > >>From: "Vlada Djurovic" <dj...@im...> > >>To: "'DevC++ help'" <dev...@li...> > >>Subject: [Dev-C++] drawing in Windows > >>Date: Thu, 24 Oct 2002 10:32:16 +0200 > >> > >>Hi, everybody > >>Here's my problem: I'm trying to write a simple drawing app > (just for=20 > >>exercise) and so far its been going OK. I can draw lines in > client area = > >in=20 > >>different colors, but when ever I minimize or maximize the > window, or=20 > >>something similar happenes, all the content of the window is > gone. I tri= > >ed=20 > >>to use a memory DC an bitmap to save the contents in, and > BitBlt it back= > > in=20 > >>response to WM_PAINT message, but the program just "froze". Can > anybody=20 > >>give me a hint how to do it? Here's the code used for drawing > lines with= > >out=20 > >>any restoring parts: > >> > >> case WM_MOUSEMOVE: > >> { > >> switch(iTool) /* iTool is used for > dtetrmining wh= > >ich=20 > >>drawing tool is selected(line, rect etc.)*/ > >> { > >> case 0: > >> { > >> if(wParam=3D=3DMK_LBUTTON) /*if line is > selected=20 > >>(itool=3D0) and left button presed*/ > >> { > >> HDC hDC=3DGetDC(hwnd); > >> > >> HPEN > hPen=3DCreatePen(PS_SOLID,iCurWidth,crCurCo= > >lor); > >> HPEN > hOldPen=3D(HPEN)SelectObject(hDC,hPen); > >> CLine* pLine=3Dnew=20 > >>CLine(ptPrevPos,MAKEPOINTS(lParam),iCurWidth,crCurColor); > /*create new l= > >ine=20 > >>object*/ > >> pLine->DrawLine(hDC); > >> ptPrevPos=3DMAKEPOINTS(lParam); > >> SelectObject(hDC,hOldPen); > >> DeleteDC(hDC); > >> } > >> } > >> break; > >> case 1: /* nothing here yet*/ > >> break; > >> } > >> } > > > > > >_________________________________________________________________ > >Protect your PC - get McAfee.com VirusScan Online=20 > >http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3D3963 > > > > > > > >--__--__-- > > > >Message: 5 > >From: "Daniel Glenfield" <sp...@ho...> > >To: dj...@im..., dev...@li... > >Subject: Re: [Dev-C++] Whoops - drawing in Windows > >Date: Thu, 24 Oct 2002 10:59:19 +0100 > > > >Nope maybe not, serialising is for saving and restoring. > > > >I think you have to store the info in to an array, but looking > at this ol= > >d=20 > >code I cannot remember what exactly you have to do. I worked on > the Scrib= > >ble=20 > >tutorial that comes with VC++ - have a look on MSDN for it. > > > > > > > >>From: "Vlada Djurovic" <dj...@im...> > >>To: "'DevC++ help'" <dev...@li...> > >>Subject: [Dev-C++] drawing in Windows > >>Date: Thu, 24 Oct 2002 10:32:16 +0200 > >> > >>Hi, everybody > >>Here's my problem: I'm trying to write a simple drawing app > (just for=20 > >>exercise) and so far its been going OK. I can draw lines in > client area = > >in=20 > >>different colors, but when ever I minimize or maximize the > window, or=20 > >>something similar happenes, all the content of the window is > gone. I tri= > >ed=20 > >>to use a memory DC an bitmap to save the contents in, and > BitBlt it back= > > in=20 > >>response to WM_PAINT message, but the program just "froze". Can > anybody=20 > >>give me a hint how to do it? Here's the code used for drawing > lines with= > >out=20 > >>any restoring parts: > >> > >> case WM_MOUSEMOVE: > >> { > >> switch(iTool) /* iTool is used for > dtetrmining wh= > >ich=20 > >>drawing tool is selected(line, rect etc.)*/ > >> { > >> case 0: > >> { > >> if(wParam=3D=3DMK_LBUTTON) /*if line is > selected=20 > >>(itool=3D0) and left button presed*/ > >> { > >> HDC hDC=3DGetDC(hwnd); > >> > >> HPEN > hPen=3DCreatePen(PS_SOLID,iCurWidth,crCurCo= > >lor); > >> HPEN > hOldPen=3D(HPEN)SelectObject(hDC,hPen); > >> CLine* pLine=3Dnew=20 > >>CLine(ptPrevPos,MAKEPOINTS(lParam),iCurWidth,crCurColor); > /*create new l= > >ine=20 > >>object*/ > >> pLine->DrawLine(hDC); > >> ptPrevPos=3DMAKEPOINTS(lParam); > >> SelectObject(hDC,hOldPen); > >> DeleteDC(hDC); > >> } > >> } > >> break; > >> case 1: /* nothing here yet*/ > >> break; > >> } > >> } > > > > > >_________________________________________________________________ > >Get a speedy connection with MSN Broadband.=A0 Join now!=20 > >http://resourcecenter.msn.com/access/plans/freeactivation.asp > > > > > > > >--__--__-- > > > >Message: 6 > >Date: Thu, 24 Oct 2002 06:45:59 -0400 > >From: Pierre Lepage <fam...@gl...> > >Subject: RE : [Dev-C++] How to keep the DOS console open? > >To: da...@ir... > >Cc: dev...@li... > > > >C'est un message de format MIME en plusieurs parties. > > > >--Boundary_(ID_67V4hQiqD3A0FRmuYaAghQ) > >Content-type: text/plain; charset=3Diso-8859-1 > >Content-transfer-encoding: QUOTED-PRINTABLE > > > >You must send a command to DOS to pause for sometime. > > > >The solution look like this : > > > > > >#include <cstdlib> // function system > > > > > >=3D85 > > > >void main { > > > >=3D85 your programm > > > > system(=3D93PAUSE=3D94); > > > >} // end of main. > > > > > >--Boundary_(ID_67V4hQiqD3A0FRmuYaAghQ) > >Content-type: text/html; charset=3Diso-8859-1 > >Content-transfer-encoding: QUOTED-PRINTABLE > > > ><html xmlns:o=3D3D"urn:schemas-microsoft-com:office:office" > xmlns:w=3D > >=3D3D"urn:schemas-microsoft-com:office:word" > xmlns=3D3D"http://www.w3.org= > >=3D > >/TR/REC-html40"> > > > ><head> > ><meta http-equiv=3D3DContent-Type content=3D3D"text/html; > charset=3D3Diso= > >-8=3D > >859-1"> > ><meta name=3D3DProgId content=3D3DWord.Document> > ><meta name=3D3DGenerator content=3D3D"Microsoft Word 9"> > ><meta name=3D3DOriginator content=3D3D"Microsoft Word 9"> > ><link rel=3D3DFile-List > href=3D3D"cid:filelist.xml@01C27B28.FCB62920"> > ><!--[if gte mso 9]><xml> > > <o:OfficeDocumentSettings> > > <o:DoNotRelyOnCSS/> > > </o:OfficeDocumentSettings> > ></xml><![endif]--><!--[if gte mso 9]><xml> > > <w:WordDocument> > > <w:View>Normal</w:View> > > <w:Zoom>0</w:Zoom> > > <w:DocumentKind>DocumentEmail</w:DocumentKind> > > <w:HyphenationZone>21</w:HyphenationZone> > > <w:EnvelopeVis/> > > <w:DrawingGridHorizontalSpacing>5 > pt</w:DrawingGridHorizontalSpacin=3D > >g> > > <w:DrawingGridVerticalSpacing>8.15 > pt</w:DrawingGridVerticalSpacing=3D > >> > > > <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingG=3D > >ridEvery> > > > <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridE=3D > >very> > > <w:Compatibility> > > <w:FootnoteLayoutLikeWW8/> > > <w:ShapeLayoutLikeWW8/> > > <w:AlignTablesRowByRow/> > > <w:ForgetLastTabAlignment/> > > <w:DoNotUseHTMLParagraphAutoSpacing/> > > <w:LayoutRawTableWidth/> > > <w:LayoutTableRowsApart/> > > </w:Compatibility> > > </w:WordDocument> > ></xml><![endif]--> > ><style> > ><!-- > > /* Style Definitions */ > >p.MsoNormal, li.MsoNormal, div.MsoNormal > >=3D09{mso-style-parent:""; > >=3D09margin:0in; > >=3D09margin-bottom:.0001pt; > >=3D09mso-pagination:widow-orphan; > >=3D09font-size:10.0pt; > >=3D09font-family:"Times New Roman"; > >=3D09mso-fareast-font-family:"Times New Roman";} > >p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig > >=3D09{margin:0in; > >=3D09margin-bottom:.0001pt; > >=3D09mso-pagination:widow-orphan; > >=3D09font-size:10.0pt; > >=3D09font-family:"Times New Roman"; > >=3D09mso-fareast-font-family:"Times New Roman";} > >span.StyleCourrierlectronique15 > >=3D09{mso-style-type:personal-compose; > >=3D09mso-ansi-font-size:10.0pt; > >=3D09mso-ascii-font-family:Arial; > >=3D09mso-hansi-font-family:Arial; > >=3D09mso-bidi-font-family:Arial; > >=3D09color:black;} > >@page Section1 > >=3D09{size:595.25pt 841.85pt; > >=3D09margin:56.7pt 56.7pt 56.7pt 56.7pt; > >=3D09mso-header-margin:.5in; > >=3D09mso-footer-margin:.5in; > >=3D09mso-paper-source:0;} > >div.Section1 > >=3D09{page:Section1;} > >--> > ></style> > ></head> > > > ><body lang=3D3DFR-CA style=3D3D'tab-interval:35.4pt'> > > > ><div class=3D3DSection1> > > > ><p class=3D3DMsoNormal><span > class=3D3DStyleCourrierlectronique15><font s= > >=3D > >ize=3D3D2 > >color=3D3Dblack face=3D3DArial><span lang=3D3DEN-CA > style=3D3D'font-size:= > >10.0=3D > >pt;font-family: > >Arial;mso-ansi-language:EN-CA'>You must send a command to DOS to > paus=3D > >e for > >sometime.<o:p></o:p></span></font></span></p> > > > ><p class=3D3DMsoNormal><span > class=3D3DStyleCourrierlectronique15><font s= > >=3D > >ize=3D3D2 > >color=3D3Dblack face=3D3DArial><span lang=3D3DEN-CA > style=3D3D'font-size:= > >10.0=3D > >pt;font-family: > >Arial;mso-ansi-language:EN-CA'><![if > !supportEmptyParas]> <![end=3D > >if]><o:p></o:p></span></font></span></p> > > > ><p class=3D3DMsoNormal><span > class=3D3DStyleCourrierlectronique15><font s= > >=3D > >ize=3D3D2 > >color=3D3Dblack face=3D3DArial><span lang=3D3DEN-CA > style=3D3D'font-size:= > >10.0=3D > >pt;font-family: > >Arial;mso-ansi-language:EN-CA'>The solution look like this > :<o:p></o:=3D > >p></span></font></span></p> > > > ><p class=3D3DMsoNormal><span > class=3D3DStyleCourrierlectronique15><font s= > >=3D > >ize=3D3D2 > >color=3D3Dblack face=3D3DArial><span lang=3D3DEN-CA > style=3D3D'font-size:= > >10.0=3D > >pt;font-family: > >Arial;mso-ansi-language:EN-CA'><![if > !supportEmptyParas]> <![end=3D > >if]><o:p></o:p></span></font></span></p> > > > ><p class=3D3DMsoNormal><span > class=3D3DStyleCourrierlectronique15><font s= > >=3D > >ize=3D3D2 > >color=3D3Dblack face=3D3DArial><span lang=3D3DEN-CA > style=3D3D'font-size:= > >10.0=3D > >pt;font-family: > >Arial;mso-ansi-language:EN-CA'><![if > !supportEmptyParas]> <![end=3D > >if]><o:p></o:p></span></font></span></p> > > > ><p class=3D3DMsoNormal><span > class=3D3DStyleCourrierlectronique15><font s= > >=3D > >ize=3D3D2 > >color=3D3Dblack face=3D3DArial><span lang=3D3DEN-CA > style=3D3D'font-size:= > >10.0=3D > >pt;font-family: > >Arial;mso-ansi-language:EN-CA'>#include <cstdlib><span > >style=3D3D"mso-spacerun: yes"> </span>// function > system<o:p></o:=3D > >p></span></font></span></p> > > > ><p class=3D3DMsoNormal><span > class=3D3DStyleCourrierlectronique15><font s= > >=3D > >ize=3D3D2 > >color=3D3Dblack face=3D3DArial><span lang=3D3DEN-CA > style=3D3D'font-size:= > >10.0=3D > >pt;font-family: > >Arial;mso-ansi-language:EN-CA'><![if > !supportEmptyParas]> <![end=3D > >if]><o:p></o:p></span></font></span></p> > > > ><p class=3D3DMsoNormal><span > class=3D3DStyleCourrierlectronique15><font s= > >=3D > >ize=3D3D2 > >color=3D3Dblack face=3D3DArial><span lang=3D3DEN-CA > style=3D3D'font-size:= > >10.0=3D > >pt;font-family: > >Arial;mso-ansi-language:EN-CA'><![if > !supportEmptyParas]> <![end=3D > >if]><o:p></o:p></span></font></span></p> > > > ><p class=3D3DMsoNormal><span > class=3D3DStyleCourrierlectronique15><font s= > >=3D > >ize=3D3D2 > >color=3D3Dblack face=3D3DArial><span lang=3D3DEN-CA > style=3D3D'font-size:= > >10.0=3D > >pt;font-family: > >Arial;mso-ansi-language:EN-CA'>…<o:p></o:p></span></font></span=3D > >></p> > > > ><p class=3D3DMsoNormal><span > class=3D3DStyleCourrierlectronique15><font s= > >=3D > >ize=3D3D2 > >color=3D3Dblack face=3D3DArial><span lang=3D3DEN-CA > style=3D3D'font-size:= > >10.0=3D > >pt;font-family: > >Arial;mso-ansi-language:EN-CA'><![if > !supportEmptyParas]> <![end=3D > >if]><o:p></o:p></span></font></span></p> > > > ><p class=3D3DMsoNormal><span > class=3D3DStyleCourrierlectronique15><font s= > >=3D > >ize=3D3D2 > >color=3D3Dblack face=3D3DArial><span lang=3D3DEN-CA > style=3D3D'font-size:= > >10.0=3D > >pt;font-family: > >Arial;mso-ansi-language:EN-CA'>void main > {<o:p></o:p></span></font></=3D > >span></p> > > > ><p class=3D3DMsoNormal><span > class=3D3DStyleCourrierlectronique15><font s= > >=3D > >ize=3D3D2 > >color=3D3Dblack face=3D3DArial><span lang=3D3DEN-CA > style=3D3D'font-size:= > >10.0=3D > >pt;font-family: > >Arial;mso-ansi-language:EN-CA'><![if > !supportEmptyParas]> <![end=3D > >if]><o:p></o:p></span></font></span></p> > > > ><p class=3D3DMsoNormal><span > class=3D3DStyleCourrierlectronique15><font s= > >=3D > >ize=3D3D2 > >color=3D3Dblack face=3D3DArial><span lang=3D3DEN-CA > style=3D3D'font-size:= > >10.0=3D > >pt;font-family: > >Arial;mso-ansi-language:EN-CA'>… your > programm<o:p></o:p></span=3D > >></font></span></p> > > > ><p class=3D3DMsoNormal><span > class=3D3DStyleCourrierlectronique15><font s= > >=3D > >ize=3D3D2 > >color=3D3Dblack face=3D3DArial><span lang=3D3DEN-CA > style=3D3D'font-size:= > >10.0=3D > >pt;font-family: > >Arial;mso-ansi-language:EN-CA'><![if > !supportEmptyParas]> <![end=3D > >if]><o:p></o:p></span></font></span></p> > > > ><p class=3D3DMsoNormal><span > class=3D3DStyleCourrierlectronique15><font s= > >=3D > >ize=3D3D2 > >color=3D3Dblack face=3D3DArial><span lang=3D3DEN-CA > style=3D3D'font-size:= > >10.0=3D > >pt;font-family: > >Arial;mso-ansi-language:EN-CA'><span style=3D3D"mso-spacerun: > >yes"> </span>system(“PAUSE”);<o:p></o:p></span></fon=3D > >t></span></p> > > > ><p class=3D3DMsoNormal><span > class=3D3DStyleCourrierlectronique15><font s= > >=3D > >ize=3D3D2 > >color=3D3Dblack face=3D3DArial><span lang=3D3DEN-CA > style=3D3D'font-size:= > >10.0=3D > >pt;font-family: > >Arial;mso-ansi-language:EN-CA'><![if > !supportEmptyParas]> <![end=3D > >if]><o:p></o:p></span></font></span></p> > > > ><p class=3D3DMsoNormal><span > class=3D3DStyleCourrierlectronique15><font s= > >=3D > >ize=3D3D2 > >color=3D3Dblack face=3D3DArial><span lang=3D3DEN-CA > style=3D3D'font-size:= > >10.0=3D > >pt;font-family: > >Arial;mso-ansi-language:EN-CA'>} // end of > main.<o:p></o:p></span></f=3D > >ont></span></p> > > > ></div> > > > ></body> > > > ></html> > > > > > >--Boundary_(ID_67V4hQiqD3A0FRmuYaAghQ)-- > > > > > >--__--__-- > > > >Message: 7 > >From: "Daniel Glenfield" <sp...@ho...> > >To: dev...@li... > >Subject: Re: RE : [Dev-C++] How to keep the DOS console open? > >Date: Thu, 24 Oct 2002 12:19:45 +0100 > > > >lol hasn't this been asked almost as much as the "how do I > unsubscribe"=20 > >question? Maybe Ioannis can put a page on his website to detail > the=20 > >different methods? > > > > > > > >>From: Pierre Lepage <fam...@gl...> > >>To: da...@ir... > >>CC: dev...@li... > >>Subject: RE : [Dev-C++] How to keep the DOS console open? > >>Date: Thu, 24 Oct 2002 06:45:59 -0400 > >> > >>You must send a command to DOS to pause for sometime. > >> > >>The solution look like this : > >> > >> > >>#include <cstdlib> // function system > >> > >> > >>=85 > >> > >>void main { > >> > >>=85 your programm > >> > >> system(=93PAUSE=94); > >> > >>} // end of main. > >> > > > > > >_________________________________________________________________ > >Protect your PC - get McAfee.com VirusScan Online=20 > >http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3D3963 > > > > > > > >--__--__-- > > > >Message: 8 > >From: Christian Wallukat <Chr...@vo...> > >To: "Dev-Cpp-Users@Lists. Sourceforge. Net (E-Mail)" > > > <dev...@li...> > >Date: Thu, 24 Oct 2002 13:51:23 +0200 > >Subject: [Dev-C++] Strange phenomenon > > > >Hi List, > > > > > >i have a strange phenomenon in my project: > > > >I call a function: Test(char szTest[1024]) with Test("test"); > > > >In that function another Function (like the first) will be called: > >Test2(szTest); > > > >the adress of szZest is 0x000000000.... > > > >and the content is empty .... > > > > > >Anyone an Idea ???? > > > >Kind r > > > >Chris > > > > > >--__--__-- > > > >Message: 9 > >From: "Vlada Djurovic" <dj...@im...> > >To: "Daniel Glenfield" <sp...@ho...>, > > > <dev...@li...> > >Subject: Re: [Dev-C++] Whoops - drawing in Windows > >Date: Thu, 24 Oct 2002 14:02:32 +0200 > > > > > >----- Original Message ----- > >From: "Daniel Glenfield" <sp...@ho...> > >To: <dj...@im...>; <dev...@li...> > >Sent: Thursday, October 24, 2002 11:59 AM > >Subject: Re: [Dev-C++] Whoops - drawing in Windows > > > > > >> Nope maybe not, serialising is for saving and restoring. > >> > >> I think you have to store the info in to an array, but looking > at this = > >old > >> code I cannot remember what exactly you have to do. I worked > on the > >Scribble > >> tutorial that comes with VC++ - have a look on MSDN for it. > >> > >> > >I tried to store all the info in a linked list, but I think I > did somethi= > >ng > >wrong because the program just froze when I tried to draw > something. Then= > > I > >thought it would be easier to store the drawing in a compatible > memory > >bitmap and then just copy it back in the client area when it > needs to be > >redrawn, but this also didn't work because the program froze > again. That'= > >s > >why I was asking if anyone can give me some guidelines about how > to do th= > >is > >(the bitmap way). > >As for the tutorials, I read the book "Teach yourself VC++ in 21 > days" wh= > >ich > >also has some stuff about this, but although I think I did > everything the > >way it's done in VC++- it doesn't work. > > > >Regards, Vlada > >> > >> >From: "Vlada Djurovic" <dj...@im...> > >> >To: "'DevC++ help'" <dev...@li...> > >> >Subject: [Dev-C++] drawing in Windows > >> >Date: Thu, 24 Oct 2002 10:32:16 +0200 > >> > > >> >Hi, everybody > >> >Here's my problem: I'm trying to write a simple drawing app > (just for > >> >exercise) and so far its been going OK. I can draw lines in > client are= > >a > >in > >> >different colors, but when ever I minimize or maximize the > window, or > >> >something similar happenes, all the content of the window is > gone. I > >tried > >> >to use a memory DC an bitmap to save the contents in, and > BitBlt it ba= > >ck > >in > >> >response to WM_PAINT message, but the program just "froze". > Can anybod= > >y > >> >give me a hint how to do it? Here's the code used for drawing > lines > >without > >> >any restoring parts: > >> > > >> > case WM_MOUSEMOVE: > >> > { > >> > switch(iTool) /* iTool is used for > dtetrmining > >which > >> >drawing tool is selected(line, rect etc.)*/ > >> > { > >> > case 0: > >> > { > >> > if(wParam=3D=3DMK_LBUTTON) /*if line > is selecte= > >d > >> >(itool=3D0) and left button presed*/ > >> > { > >> > HDC hDC=3DGetDC(hwnd); > >> > > >> > HPEN > >hPen=3DCreatePen(PS_SOLID,iCurWidth,crCurColor); > >> > HPEN > hOldPen=3D(HPEN)SelectObject(hDC,hPen); > >> > CLine* pLine=3Dnew > >> >CLine(ptPrevPos,MAKEPOINTS(lParam),iCurWidth,crCurColor); > /*create new > >line > >> >object*/ > >> > pLine->DrawLine(hDC); > >> > ptPrevPos=3DMAKEPOINTS(lParam); > >> > SelectObject(hDC,hOldPen); > >> > DeleteDC(hDC); > >> > } > >> > } > >> > break; > >> > case 1: /* nothing here yet*/ > >> > break; > >> > } > >> > } > >> > >> > >> _________________________________________________________________ > >> Get a speedy connection with MSN Broadband. Join now! > >> http://resourcecenter.msn.com/access/plans/freeactivation.asp > >> > > > > > > > > > >--__--__-- > > > >_______________________________________________ > >Dev-cpp-users mailing list > >Dev...@li... > >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > >End of Dev-cpp-users Digest > > ~Dave > ||* Projects, active *|| > Dustyscript (children programming): > >http://dustyscript.sourceforge.net/< > xTable: http://cxtable.sourceforge.net/ > Grapevine: http://grapevineproject.org/ > > > > ------------------------------------------------------- > This sf.net email is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |