dev-cpp-users Mailing List for Dev-C++ (Page 121)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Noorez K. <lor...@ho...> - 2005-07-08 20:37:39
|
I am having trouble with reading from a text file in my program. For
testing, I used notepad and typed and let word-wrap put text on the next
line. I typed a lot into this file. I then used my program to try and open
it but it froze. If I use the enter key to put in the newline then my
program works. Whats wrong with it?
#include "SML.h"
// Function called from WindowProcedure to open text
void OpenText(HWND main, HWND hEdit)
{
ifstream openTextFile; // Handle to file
// Filter files visible in the open dialog box
char* filter = "Text Files (*.txt)\0*.txt\0All Files (*.*)\0*.*\0\0";
char* inLine = new char[900];
int nLength;
// Init the properties of the open dialog box
getOFNproperties(main, &dialogProperties, currentFileName, filter);
// Show the dialog and get the information
if( !GetOpenFileName(&dialogProperties) )
{
return; // Return if user cancels
}
openTextFile.open(currentFileName);
SetDlgItemText(main, IDC_MAIN_EDIT, ""); // Clear the edit control
int cntr = 1;
// Loop unitl the end of file is reached
while( !openTextFile.eof() )
{
nLength = GetWindowTextLength(GetDlgItem(main, IDC_MAIN_EDIT));
openTextFile.getline(inLine,9000);
// A new line must have a "\r\n" so test for both
if( inLine[ strlen(inLine) -1 ] != '\r' )
{
strcat(inLine,"\r");
}
if( inLine[ strlen(inLine) -1] != '\n' )
{
strcat(inLine,"\n");
}
// And the message onto the edit control
SendMessage( GetDlgItem(main, IDC_MAIN_EDIT), EM_SETSEL,
(WPARAM)nLength,
(LPARAM)nLength );
SendMessage( GetDlgItem(main, IDC_MAIN_EDIT), EM_REPLACESEL,
(WPARAM)FALSE,
(LPARAM)inLine );
delete inLine;
inLine = new char[900];
}
untitled = false;
edited = false;
return;
}
_________________________________________________________________
Designer Mail isn't just fun to send, it's fun to receive. Use special
stationery, fonts and colors.
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.
|
|
From: Gerson L. <ja...@ya...> - 2005-07-07 23:09:05
|
I do not remember the details right now, bur remember some "obscure" thing called name mangling... it is like sufixes and/or prefixes thata the compiler attaches to the original function names. This means, that it is very possible if you worte a function like int funcioncita(int, int)int he DLL code, you may have to call it like funcioncitai_ii(...). Name mangling is compiler-specific,so it depends on what compiler was used creating the DLL. In My experience, I have usd Dev-c++ built DLL in VisualBasic 6.0 and in Dev itself. To use my functions in Visual, I had to consider name mangling. In Dev, I didn't (since it was the same compiler that created the DLL) If You are building the DLL, look for a file that apears along with the new DLL, its calld export or sometrhing like that, open using notepar or similar. You'll see the effects of name mangling. something else: I use Dev 4.0 and/or 4.01.In the new project dialog, I selected DLL project. and some kind of template code apeared... There were something dealing with a _stdcall, a #define DLLIMPORT if I remember correctly. Maybe that "define" helps you out. Sorry for not being more specific... my code is in another machine... --- Setrio <se...@gm...> escribió: > Hi, > > How can i call external dll functions from Dev-C++? > > I have a VC++ dll with some functions that i want to use from a > Dev-C++ proyect. I have de .lib and .dll. I put the .lib in the linker > options but without results. Any idea or quick tutorial on how import > a dll in Dev-C++? > > Tks > > (sorry for my english) > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > ______________________________________________ Renovamos el Correo Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es |
|
From: William Mc C. <wil...@ms...> - 2005-07-07 20:47:45
|
Hi Guys & Girls:
Does anyone know of a good Tutorial (examples) for using TAPI.
When I google it, all the tutorials/examples are for Visual Basic.
Thanks in advance,
William McCoy
P.S. If you write in REXX it's really quite simple to use. |
|
From: Gerson L. <ja...@ya...> - 2005-07-07 19:21:50
|
If you are using windows.h and all the stuff... USE the style ES_MULTILINE when creating the editcontrol and procces a message EN_CHANGE I'm not really sure bout the last one, but go to your include directory and find the winuser.h and then use the FIND dialog to find the first [ EN_] (space, E, N, _), You'll see a few define EN_........ these are the notifications that a EDTI can send, so, these are messages you can proccess in the edit-control's parent window's winproc hope this helps --- Per Westermark <pw...@ia...> escribió: > Question: Ever thought about looking at MSDN? > > It probably takes longer to ask the questions than to get the answers. > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/editcontrols/editcontrolreference/editcontrolmessages/en_change.asp > > /Per W > > On Mon, 20 Jun 2005, Noorez Kassam wrote: > > > 1. How do you set an EDIT control to detect changes in it so that you know > > when to prompt the user to save it? > > > > 2. How do you set an EDIT control to automatically word wrap? > > > > > > Most of the tutorials that I found showing how to use Win32 controls are not > > in C++. I think there in Visual Basic? > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > ______________________________________________ Renovamos el Correo Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es |
|
From: Strocchi F. <fst...@lo...> - 2005-07-07 14:09:37
|
Hello, I am trying to configure Dev-C++ for ARM7 target. I have some troubles during LD.exe phase, because (I don't know why) it is called LD.exe instead of arm-elf-ld.exe. But if I try externally from Dev-C++ with a makefile, the compilation is OK. Best Regards Fabrizio |
|
From: Javier M. <jm...@ug...> - 2005-07-07 11:10:56
|
Hi Fernando, I am the mantainer of http://www-etsi2.ugr.es/depar/ccia/mp1 As far as I know there is no good offline help for C/C++ in Spanish.=20 However there are a few online places were you can find some information: http://www.elrincondelphp.com/wiki/index.php/Librer=EDa_est=E1ndar_-_Refe= rencia is a reference for libc in Spanish You can find some links to courses in Spanish and links to the (English)=20 official help files at http://www-etsi2.ugr.es/depar/ccia/mp1/enlaces.ht= ml We also have the slides of the course on the C++ we are teaching at=20 http://www-etsi2.ugr.es/depar/ccia/mp1/teoria.html and a short DevC++ instalation manual at=20 http://www-etsi2.ugr.es/depar/ccia/mp1/software.html I am pretty sure there must be a Spanish reference manual for libc=20 somewhere since the GNU/Linux manual pages for glibc are available in=20 Spanish but I couldn't find the sources. All the best, Javier > Asunto: > Re: [Dev-C++] Online Help > De: > Adrie Stolk <adr...@ya...> > Fecha: > Wed, 6 Jul 2005 13:07:07 -0700 (PDT) > Para: > Fernando Lichtschein <li...@fi...>,=20 > dev...@li... > > Para: > Fernando Lichtschein <li...@fi...>,=20 > dev...@li... > > >Hello Fernando, > >perhaps you could have a look at (where I once stumbled upon): >http://www-etsi2.ugr.es/depar/ccia/mp1/practicas.html > >and there is a Spanish helpfile for Dev-C++ available through webupdate >but you would have found that one I guess. > >regards >Adrie > > >--- Fernando Lichtschein <li...@fi...> wrote: > > =20 > >>Hello, >> >>I am teaching an introductory course on C (not C++) programming and I >>have started using Dev-C++ two semesters ago. >> >>We have been previously using Turbo C++ which is an excellent >>compiler but the user interface is outdated, and it is a licensed >>product, >>so the students can not take it home like Dev-C++. The same thing >>happens with VisualC++. >> >>The only problem is the lack of online help, or good documentation. >>Turbo C has an online help. The glibc documentation is too much for a >>student (and translating and condensing it is too much for a >>teacher). >> >>I followed some links in this list but one was C++ >>(www.cplusplus.com) >>which is not too bad since there is a good reference to the Standard >>Library, and the Borland link is broken. >> >>=BFIs anybody using Dev-C++ for teaching? =BFAnyone in Spanish? We >>could join forces. >> >>Best regards, >> >> =20 >> |
|
From: Peter B. <pb...@hg...> - 2005-07-07 07:50:04
|
Jonathan Dearborn wrote: (...) > this is how it's done. I didn't want Dev-C++ to be the odd one out if > more compilers ignored it (since I only use Dev-C++). I now doubt that (...) BTW, not Dev-C++ is the compiler it's gcc which is called by Dev-C++ to do the compilation. So the problem should not be addressed to the Dev-C++ but to the gcc developers. Peter |
|
From: <xjt...@si...> - 2005-07-07 04:45:41
|
非常抱歉打扰您宝贵的时间来阅读本信件,如果没兴趣请您
永久删除!谢谢。
新疆特产网(www.xjtaobao.com)是目前全国最大产品最全
的新疆特色产品购物网站!本站是由“乌鲁木齐云泽网络科技有
限责任公司”全力投资运营,所有销售产品均由当地合法销售商
独家代理提供销售。本站本着“信誉至上,服务到家”的原则为
您服务!
主要产品:新疆特产干果、英吉沙手工刀、民间工艺、新疆
挂毯、服饰及新疆土药材(天山雪莲、天山马鹿鞭等)
实物数码拍摄!价格优惠!欢迎您的关注!
http://www.xjtaobao.com
新疆特产网
|
|
From: Adrie S. <adr...@ya...> - 2005-07-06 20:07:16
|
Hello Fernando, perhaps you could have a look at (where I once stumbled upon): http://www-etsi2.ugr.es/depar/ccia/mp1/practicas.html and there is a Spanish helpfile for Dev-C++ available through webupdate but you would have found that one I guess. regards Adrie --- Fernando Lichtschein <li...@fi...> wrote: > Hello, > > I am teaching an introductory course on C (not C++) programming and I > have started using Dev-C++ two semesters ago. > > We have been previously using Turbo C++ which is an excellent > compiler but the user interface is outdated, and it is a licensed > product, > so the students can not take it home like Dev-C++. The same thing > happens with VisualC++. > > The only problem is the lack of online help, or good documentation. > Turbo C has an online help. The glibc documentation is too much for a > student (and translating and condensing it is too much for a > teacher). > > I followed some links in this list but one was C++ > (www.cplusplus.com) > which is not too bad since there is a good reference to the Standard > Library, and the Borland link is broken. > > ¿Is anybody using Dev-C++ for teaching? ¿Anyone in Spanish? We > could join forces. > > Best regards, > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration > Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > ____________________________________________________ Sell on Yahoo! Auctions no fees. Bid on great items. http://auctions.yahoo.com/ |
|
From: Reid T. <Rei...@at...> - 2005-07-06 19:21:59
|
Jonathan Dearborn wrote: > Well, Reid, that sounds like good enough evidence. I'm not positive > on what the "other" compiler is, but I think it is Visual C++. At > any rate, thanks for clearing that up. =20 > In my opinion, it shouldn't > be read by the compiler because the preprocessor should take out all > commented text.=20 That is what is happening, the line following the 'intended' comment line with the terminating '\' is considered as part of the 'intended' comment and is being handled as such ( i.e. it is not converted to executable form by the compiler -- whether that means that it is not passed to the compiler, or is passed but is ignored by the compiler 'because it's a comment' I don't know.) >Maybe I've just never heard of extending a one-line > comment and this is how it's done. I didn't want Dev-C++ to be the > odd one out if more compilers ignored it (since I only use Dev-C++).=20 > I now doubt that it'll ever be a big enough problem unless this > rarely-used feature to overlook backslashes at the end of comments in > a (most likely) single compiler is used in popular free source. I > don't see that happening more than where I got it from. Thanks for > your help, Reid.=20 >=20 > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today - it's > FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ reid |
|
From: Jonathan D. <gri...@ho...> - 2005-07-06 18:56:48
|
Well, Reid, that sounds like good enough evidence. I'm not positive on what the "other" compiler is, but I think it is Visual C++. At any rate, thanks for clearing that up. In my opinion, it shouldn't be read by the compiler because the preprocessor should take out all commented text. Maybe I've just never heard of extending a one-line comment and this is how it's done. I didn't want Dev-C++ to be the odd one out if more compilers ignored it (since I only use Dev-C++). I now doubt that it'll ever be a big enough problem unless this rarely-used feature to overlook backslashes at the end of comments in a (most likely) single compiler is used in popular free source. I don't see that happening more than where I got it from. Thanks for your help, Reid. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ |
|
From: Reid T. <Rei...@at...> - 2005-07-06 18:16:06
|
Reid Thompson wrote: one more that I remembered that I had... also ignores it... C:\>cl /? Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86 Copyright (C) Microsoft Corporation 1984-2002. All rights reserved. ... c:\test.cpp(11) : warning C4700: local variable 'y' used without having been ini tialized Microsoft (R) Incremental Linker Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. /out:test.exe test.obj C:\>test.exe 29721173 Press any key to continue . . . 11000 Press any key to continue . . . reid |
|
From: Reid T. <Rei...@at...> - 2005-07-06 17:38:41
|
Reid Thompson wrote: > Jonathan Dearborn wrote: a question, what are the 'other' compiler you mention? reid |
|
From: Reid T. <Rei...@at...> - 2005-07-06 17:30:06
|
Jonathan Dearborn wrote: > Reid, you're definitely right about escaping the line-break. That's > the problem, but is that a feature of the compiler (as Peter said) or > is it a little mistake in the compiler source? As I said before, > other compilers ignore the backslash if it's in a comment (as I > believe they should). Also, if it's a feature, shouldn't it be > useful? There is a separate comment style (the old style /*text*/) > in case you want to comment multiple lines. Escape characters > shouldn't affect comments. I think this is just a bug. A small bug, > but how should it be handled?=20 >=20 > Verne, are you saying your compiler gave a warning because there's > code after the main() return? That's fine, it's just a comment. I > would expect that. I use Dev-C++ exclusively for editing and > compiling, by the way.=20 >=20 > _________________________________________________________________ > Don't just search. Find. Check out the new MSN Search! > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ SOLARIS SUN compiler $ CC -V CC: Sun C++ 5.5 2003/03/12 $ CC test.C does not ignore it "test.C", line 11: Warning: The variable y has not yet been assigned a value. 1 Warning(s) detected. NOTE: The other compilers may very well output a similar warning IF you pass the proper flags. EXAMPLE: cygwin compiler called 'g++ -Wall' declares=20 $ g++ -Wall test.cpp test.cpp:9:5: warning: multi-line comment SOLARIS gcc $ g++ -v Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs gcc version 2.95.2 19991024 (release) does not ignore it AIX $ cc -v exec: /usr/bin/pg(/usr/bin/pg,/usr/lib/nls/msg/en_US/vacpp.help,NULL)=20 VisualAge C++ Professional / C for AIX Compiler, Version 6 does not ignore it CYGWIN $ g++ -v Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs Configured with: /gcc/gcc-3.4.4/gcc-3.4.4-1/configure --verbose --prefix=3D/usr --exec-prefix=3D/usr --sysconfdir=3D/etc = --libdir=3D/usr/lib --libexecdir=3D/usr/lib --mandir=3D/usr/share/man = --infodir=3D/usr/share/info --enable-languages=3Dc,ada,c++,d,f77,java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-threads=3Dposix --enable-java-gc=3Dboehm --disable-win32-registry = --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug : (reconfigured)=20 Thread model: posix gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125) does not ignore it So, based on empirical evidence, no, prob not a bug. reid |
|
From: Lord S. <lor...@gm...> - 2005-07-06 17:29:23
|
How to use assembly with Dev-C++ ?
The "GNU as" assembler uses AT&T syntax (not Intel).
Here's an example of such a syntax :
// 2 global variables
int AdrIO;
static char ValIO;
void MyFunction(..........)
{
__asm("mov _AdrIO, %dx") ; // loading 16 bits register
__asm("mov _ValIO, %al") ; // loading 8 bits register
/*
Don't forget the underscore _ before each global variable names !
*/
__asm("mov %ax,%dx") ; // AX --> DX
}
That is quoted directly from the DevC++ help files.
I think that's what you're talking about, but just for clairity in our
archives, I'd like to post that (since I refer back to this stuff quite
often)
Sorry if someone already said that - I'm a bit bleary-eyed right now at 2300
at night ;) (my laptop's not connected right now, so I'm using the "send
later" button in Outlook Express - so if the message is postmarked
differently, I'm not off my rocker - yet)
Happy coding and may the Force be with you!
|
|
From: Jonathan D. <gri...@ho...> - 2005-07-06 16:55:58
|
Reid, you're definitely right about escaping the line-break. That's the problem, but is that a feature of the compiler (as Peter said) or is it a little mistake in the compiler source? As I said before, other compilers ignore the backslash if it's in a comment (as I believe they should). Also, if it's a feature, shouldn't it be useful? There is a separate comment style (the old style /*text*/) in case you want to comment multiple lines. Escape characters shouldn't affect comments. I think this is just a bug. A small bug, but how should it be handled? Verne, are you saying your compiler gave a warning because there's code after the main() return? That's fine, it's just a comment. I would expect that. I use Dev-C++ exclusively for editing and compiling, by the way. _________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ |
|
From: Peter B. <pb...@hg...> - 2005-07-06 15:14:02
|
(snip) > // let's cause a problem with backslash \ > y = x*55; (snip) Mmmm, I think it's not a bug it's a feature... This is a backslash at/or before the end of line. This tells the preprocessor that the statement continues on next line. So in your example 'y = x*55;' belongs to the comment. Compile with -Wall and you will get a warning. Peter |
|
From: Reid T. <Rei...@at...> - 2005-07-06 14:36:34
|
Jonathan Dearborn wrote: > Here's an example program, though if you'd like to see the > compiled program > I found it on, check out > http://www.maybe-phil.net/websites/no-skill/jnrdev/en/jnrdev3/ >=20 > That program is based on SDL, so if you're not into that, > just use this one: > ----------------- >=20 > #include <stdio.h> > #include <iostream> >=20 > int main(int argc, char *argv[]) > { > int y; > int x =3D 200; > // let's cause a problem with backslash \ > y =3D x*55; > printf("%d\n",y); > system("PAUSE"); >=20 > printf("\n"); >=20 > // now without it > y =3D x*55; > printf("%d\n",y); > system("PAUSE"); > return 0; >=20 > // shouldn't the compiler ignore everything after these C++ style > comments? } >=20 >=20 > ------------------ > That about shows it. I know it's a little bother and I'm not > surprised it hasn't come up before, but I just wanted to help in case > someone else gets > stuck. Of course, it's only a problem with the C++ style comments. well, you just escaped the line ending character, basically telling the compiler suite that the comment line has not ended. The compiler will end the comment when it sees a valid line end. reid |
|
From: GOOGLE <yon...@ya...> - 2005-07-06 14:32:13
|
最低80/月,就可以轻松登陆全球第一搜索网站google 抢到就是赚到。 位置有限,请尽快申请! 先做后付款,绝对放心! 详情请联系我们 同时做一年还可以获得赠送2个月的优惠 另外搜狐、新浪、网易特价优惠 3亿邮件库加上邮件群发器总共只要188元 抢购电话:025-52634840 13914713446 余先生 QQ:64862960 MSN:yon...@ho... 网址:www.cn-google.cn 如果不希望再收到此邮件,请发邮件到nanjing@you18.cn退定,谢谢!! |
|
From: <ulr...@em...> - 2005-07-06 14:24:36
|
yon...@ya... schrieb am 06.07.05 11:01:21: >=20 > =D7=EE=B5=CD80/=D4=C2=A3=AC=BE=CD=BF=C9=D2=D4=C7=E1=CB=C9=B5=C7=C2=BD=C8=AB=C7=F2=B5=DA=D2=BB=CB=D1=CB=F7=CD=F8=D5=BEgoogle >=20 > =C7=C0=B5=BD=BE=CD=CA=C7=D7=AC=B5=BD=A1=A3 >=20 > =CE=BB=D6=C3=D3=D0=CF=DE=A3=AC=C7=EB=BE=A1=BF=EC=C9=EA=C7=EB=A3=A1 >=20 > =CF=C8=D7=F6=BA=F3=B8=B6=BF=EE=A3=AC=BE=F8=B6=D4=B7=C5=D0=C4=A3=A1 >=20 > =CF=EA=C7=E9=C7=EB=C1=AA=CF=B5=CE=D2=C3=C7 >=20 > =CD=AC=CA=B1=D7=F6=D2=BB=C4=EA=BB=B9=BF=C9=D2=D4=BB=F1=B5=C3=D4=F9=CB=CD2=B8=F6=D4=C2=B5=C4=D3=C5=BB=DD >=20 > =C1=ED=CD=E2=CB=D1=BA=FC=A1=A2=D0=C2=C0=CB=A1=A2=CD=F8=D2=D7=CC=D8=BC=DB=D3=C5=BB=DD >=20 > 3=D2=DA=D3=CA=BC=FE=BF=E2=BC=D3=C9=CF=D3=CA=BC=FE=C8=BA=B7=A2=C6=F7=D7=DC=B9=B2=D6=BB=D2=AA188=D4=AA >=20 > =C7=C0=B9=BA=B5=E7=BB=B0=A3=BA025-52634840 13914713446 =D3=E0=CF=C8=C9=FA >=20 > QQ=A3=BA64862960 >=20 > MSN...@ho... >=20 > =CD=F8=D6=B7=A3=BAwww.cn-google.cn >=20 >=20 > =C8=...@yo...=CD=CB=B6=A8=A3=AC=D0=BB=D0=BB=A3=A1=A3=A1 >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/=3Fad=5Fid=3D7477&alloc=5Fid=3D16492&op=3Dclick > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users =3F=3F=3F What is about all these cryptic messages=3F Is it a formatting problem or all spam=3F=3F=3F |
|
From: Jonathan D. <gri...@ho...> - 2005-07-06 14:19:50
|
Here's an example program, though if you'd like to see the compiled program I found it on, check out http://www.maybe-phil.net/websites/no-skill/jnrdev/en/jnrdev3/ That program is based on SDL, so if you're not into that, just use this one: ----------------- #include <stdio.h> #include <iostream> int main(int argc, char *argv[]) { int y; int x = 200; // let's cause a problem with backslash \ y = x*55; printf("%d\n",y); system("PAUSE"); printf("\n"); // now without it y = x*55; printf("%d\n",y); system("PAUSE"); return 0; // shouldn't the compiler ignore everything after these C++ style comments? } ------------------ That about shows it. I know it's a little bother and I'm not surprised it hasn't come up before, but I just wanted to help in case someone else gets stuck. Of course, it's only a problem with the C++ style comments. _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 |
|
From: <xjt...@si...> - 2005-07-06 10:21:29
|
非常抱歉打扰您宝贵的时间来阅读本信件,如果没兴趣请您
永久删除!谢谢。
新疆特产网(www.xjtaobao.com)是目前全国最大产品最全
的新疆特色产品购物网站!本站是由“乌鲁木齐云泽网络科技有
限责任公司”全力投资运营,所有销售产品均由当地合法销售商
独家代理提供销售。本站本着“信誉至上,服务到家”的原则为
您服务!
主要产品:新疆特产干果、英吉沙手工刀、民间工艺、新疆
挂毯、服饰及新疆土药材(天山雪莲、天山马鹿鞭等)
实物数码拍摄!价格优惠!欢迎您的关注!
http://www.xjtaobao.com
新疆特产网
|
|
From: GOOGLE <yon...@ya...> - 2005-07-06 08:59:22
|
最低80/月,就可以轻松登陆全球第一搜索网站google 抢到就是赚到。 位置有限,请尽快申请! 先做后付款,绝对放心! 详情请联系我们 同时做一年还可以获得赠送2个月的优惠 另外搜狐、新浪、网易特价优惠 3亿邮件库加上邮件群发器总共只要188元 抢购电话:025-52634840 13914713446 余先生 QQ:64862960 MSN:yon...@ho... 网址:www.cn-google.cn 如果不希望再收到此邮件,请发邮件到nanjing@you18.cn退定,谢谢!! |
|
From: Scott S. <ssi...@sp...> - 2005-07-05 20:19:02
|
Per Westermark wrote: >An example please. > >Are you talking about the syntax highlighting in the Dev-C++ editor, or >about a compile problem using the MinGW compiler? > >/Per W > >On Tue, 5 Jul 2005, Jonathan Dearborn wrote: > > > >>Has this problem been addressed before? In Dev-C++ 4.9.9.2, it can mess >>with your program if you use the character '\' within a comment. I haven't >>had formal programming instruction, but I have seen this usage in a program >>compiled by another compiler (probably VC++), so I don't think it's supposed >>to be a no-no. Can this be fixed so nobody else needs to spend wasted time >>finding this problem in their program? >> >> > > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > Can you post the code that isn't working? I just want to see what exactly it is and if any other factors could be producing the error. -- ~~Scott Simontis~~ ssi...@sp... |
|
From: Per W. <pw...@ia...> - 2005-07-05 20:14:53
|
An example please. Are you talking about the syntax highlighting in the Dev-C++ editor, or about a compile problem using the MinGW compiler? /Per W On Tue, 5 Jul 2005, Jonathan Dearborn wrote: > Has this problem been addressed before? In Dev-C++ 4.9.9.2, it can mess > with your program if you use the character '\' within a comment. I haven't > had formal programming instruction, but I have seen this usage in a program > compiled by another compiler (probably VC++), so I don't think it's supposed > to be a no-no. Can this be fixed so nobody else needs to spend wasted time > finding this problem in their program? |