dev-cpp-users Mailing List for Dev-C++ (Page 119)
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: Thomas S. <ml...@hp...> - 2005-07-13 22:02:30
|
Hi all, I'm new to C programming. I spent a great deal of time looking into IDEs that would help me learn C and help speed up the development process. I was also looking for an IDE that would provide some cross-platform capabilities--Dev-C++ seems to fit this profile. Being new to C I'm not sure what the best way would be to use Dev-C++ to ensure my programs remain compatible with multiple platforms (in particular, Windows and *nix). The program I plan to write will primarily be console-based with (possibly) a GUI as a frontend. Does Dev-C++ fit this use well? And where might I find more information about using Dev-C++ for this purpose as well as general guidelines for programming with multiple platforms in mind? Thanks in advance for your help. Tom |
|
From: Leeman S. <me...@mo...> - 2005-07-13 16:10:28
|
I'd like to change the editor font to one that does not show in the list of available fonts. Is there a way for me to do this? Leeman |
|
From: Rafael R. <raf...@ju...> - 2005-07-13 06:31:05
|
> > >Message: 5 >From: "yakir arbib" <ya...@za...> >To: <dev...@li...> >Date: Tue, 12 Jul 2005 03:45:11 -0700 >Subject: [Dev-C++] Hi rafa rios > >Hi >To answer your first question,I use a screen reader called jaws for >windos >But the exakt name is >Jaws 5.0 > > I will look for it, and give it a try >And I tried typeing what you sed and this is what happened : >It sayd: > The system cannot find the path specified. >'mingw32-c++' is not recognized as an internal or external command, >operable program or batch file. > > Perhaps I use a diferent version and the name of the files changes, I use dev-cpp 4.9.9.2 and have it installed in c:\dev-cpp . So, (only to make me sure): Do you have installed dev-cpp in c:\dev-cpp or in another directory ? If not, could you type: dir (after step 4) and paste the result here ? (dir command prints the files and directories that you have in your actual working directory). To make you the things a bit easier, type: dir > dir.lst with this you will have a file called dir.lst with the output of dir command. Try using g++ instead of mingw32-c++ in step 6 >And I did what you sed,I rote the code in notepad, saved it in >dev-c++\bin >And pressed windos+r and typed cmd >Then I typed what you sed,and this is what happened >If someone in this list has skype,it'll be very helpful for me to have >it and maby rezolv the problem >My skype nic is: >Pmyakir >Thanks >yakir > -- /-------------8<--------------------------------------\ | | | Rafael Ríos Saavedra | | | | Servicio de Informática | | Consejería de Innovación, Ciencia y Empresa | | | | raf...@ju... | | Tlf. (348 956) 955 048 956 | \-------------------------------------->8-------------/ |
|
From: Alfred P. R. <al...@ya...> - 2005-07-13 03:51:15
|
Hi Noorez, Usually that comes from using a null pointer. Address 0 is mostly verboten. An access violation during execution will probably cause the kernel error. Possibly currentFileName isn't initialized? Or possibly the pointer is dangling? Noorez Kassam <lor...@ho...> wrote: What does this error message mean? 'An Access Violation (Segmentation Fault) Raised in you program'. The debugger sometimes throws the error when I try to access a text file, eg. openTextFile.open(currentFileName). I also get this error when I'm executing normally: 'Sml has caused an error in KERNEL32.DLL. Sml will now close. If you continue to experience problems, try restarting your computer.' I think that the problem is occurring in the same place. <snip> Alfred P. Reaud |
|
From: Noorez K. <lor...@ho...> - 2005-07-13 03:34:01
|
What does this error message mean? 'An Access Violation (Segmentation Fault) Raised in you program'. The debugger sometimes throws the error when I try to access a text file, eg. openTextFile.open(currentFileName). I also get this error when I'm executing normally: 'Sml has caused an error in KERNEL32.DLL. Sml will now close. If you continue to experience problems, try restarting your computer.' I think that the problem is occurring in the same place. _________________________________________________________________ Take advantage of powerful junk e-mail filters built on patented Microsoft® SmartScreen Technology. 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: Per W. <pw...@ia...> - 2005-07-13 01:10:07
|
Why? Are you thinking about your file read? Search for and concatenation of '\r' and '\n' can be done directly on std::string objects. /Per W On Tue, 12 Jul 2005, Noorez Kassam wrote: > Does the vector<char> have a maximum size? > |
|
From: <Mat...@Ve...> - 2005-07-12 23:50:33
|
Er, yes, you're right, I don't know what I must have been thinking when I wrote that part of the answer. Sorry, all. --Matt -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Daniel K. O=2E Sent: Tuesday, July 12, 2005 4:45 PM To: Mat...@Ve... Cc: dev...@li... Subject: Re: [Dev-C++] size of vectors Mat...@Ve... wrote: >To check for sure, try cout << vector<char>::size_type. > =20 > I think you meant (v being a vector<whatever> object) cout << v.max_size(); --- Daniel K. O. =09 =09 =09 _______________________________________________________=20 Yahoo! Acesso Gr=E1tis - Internet r=E1pida e gr=E1tis.=20 Instale o discador agora! http://br.acesso.yahoo.com/ ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ 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 ___________________________________________________________________ The information contained in this message and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it and all copies and backups thereof. Thank you. |
|
From: Daniel K. O. <dan...@ya...> - 2005-07-12 23:45:15
|
Mat...@Ve... wrote: >To check for sure, try cout << vector<char>::size_type. > > I think you meant (v being a vector<whatever> object) cout << v.max_size(); --- Daniel K. O. _______________________________________________________ Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/ |
|
From: <Mat...@Ve...> - 2005-07-12 23:37:02
|
Probably 32-bits of length on a 32-bit system, so 4.2 billion elements. And probably 64-bits of length on a 64-bit system, so 1.84467441e19 elements. To check for sure, try cout << vector<char>::size_type. You can download the STL manual at http://ftp.debian.org/debian/pool/main/s/stl-manual/stl-manual_3.30.orig.tar .gz . This explains these things best of all. --Matt -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Noorez Kassam Sent: Tuesday, July 12, 2005 4:28 PM To: dev...@li... Subject: [Dev-C++] size of vectors Does the vector<char> have a maximum size? ___________________________________________________________________ The information contained in this message and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it and all copies and backups thereof. Thank you. |
|
From: Noorez K. <lor...@ho...> - 2005-07-12 23:28:34
|
Does the vector<char> have a maximum size? _________________________________________________________________ MSN® Calendar keeps you organized and takes the effort out of scheduling get-togethers. 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: yakir a. <ya...@za...> - 2005-07-12 21:33:18
|
Dear jorj, This is a moment I'll have to remember ! Today,thanks to your grate help,I created my first c+=+ program! "king.exe" I whent to king.cpp and selected open with,and choosed dev-c++,and the file opened,I compiled it and ran it! Yes,I'm very very happy,at list I know how to compile things now,I think that now it is just a matter of learning and reading books in order to know all the other complikated things in order to program,aint I right? Thanks again man,you rock! Best regards yakir |
|
From: Per W. <pw...@ia...> - 2005-07-12 07:57:02
|
I don't know what line you marked.
However, PLEASE try and use std::string and not immediately change over to
C arrays. C character arrays are perfectly fine to use WHEN YOU KNOW HOW
TO USE THEM.
Now you read a line of text from the edit control into a std::string
object.
Then you immediately ask for a pointer to a zero-terminated string using
the method c_str() and type cast into a writeable pointer:
Finally, you try to concatenate more chanracters to the c string...
Exactly HOW do you think string:c_str() should now about your intentions
to concatenate more characters and reserve room for these extra
characters? You should do ALL manipulation on the std::string.
You typecast c_str() to (char*) just to be able to play with the c string.
However, the c string is NOT meant to be played with. It is a read-only
string!
/Per W
On Mon, 11 Jul 2005, Noorez Kassam wrote:
> The open file function of my program appears to be crashing at the line I
> marked, when I run the debugger. There might be some other problem causing
> it. The function is below:
>
> #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";
>
> std::string inLine;
> char* toEditControl;
>
> 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 contro
>
> int cntr = 1;
>
> // Loop unitl the end of file is reached
> while( !openTextFile.eof() && !openTextFile.fail() )
> {
> nLength = GetWindowTextLength(GetDlgItem(main, IDC_MAIN_EDIT));
> getline(openTextFile,inLine);
> toEditControl = (char*)inLine.c_str();
>
> //A new line must have a "\r\n" so test for both
> if( toEditControl[ strlen(toEditControl) -1 ] != '\r' )
> {
> strcat(toEditControl,"\r");
> }
> if( inLine[ strlen(toEditControl) -1] != '\n' )
> {
> strcat(toEditControl,"\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)toEditControl );
> }
>
> untitled = false;
> edited = false;
> openTextFile.close();
> return;
> }
|
|
From: Rafael R. <raf...@ju...> - 2005-07-12 06:51:28
|
Hi, I haven't used a screen reader, but I think it could mess with graphicals interfaces. Perhaps if you could tell us with screen reader are you using we can install it a see which dificulties are involved when using it, and may be dev-cpp could be improve for blind people. By the way, to use g++ from the command line you have to (I assume that you have done the default installation, this means that you have installed devcpp in c:\dev-cpp\bin): 1- Edit the program with notepad (or another text editor, it dosen't matter wich one while it save the file in plain text), for a first try, save it in c:\dev-cpp\bin, and named it first.cpp . 2- Open a console, this could be achived by pressin windows + R, this open a windows where you must write cmd, and then press enter, or go to Start -> Accesories -> System Simbol. I use windows XP in spanish, so I not sure if this is totally correct. 3- Well, now you have a console windows, some times called msdos window. This come from the golden days of msdos, if you are 16 perhaps you haven't used this operating system. 4- now type: cd c:\dev-cpp\bin and press enter 5- cd comes from change directory, so know you are in c:\dev-cpp\bin . 6- to compile type: mingw32-c++ first.cpp -o first.exe and press enter 7- after some seconds you should have the program compiled 8- to run it type: first and press enter 9- the Hello world messages appears on the screen. I must say that I really don't know if screen readers works with console windows, I hope yes. Rafa Rios |
|
From: Noorez K. <lor...@ho...> - 2005-07-12 04:39:33
|
The open file function of my program appears to be crashing at the line I
marked, when I run the debugger. There might be some other problem causing
it. The function is below:
#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";
std::string inLine;
char* toEditControl;
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 contro
int cntr = 1;
// Loop unitl the end of file is reached
while( !openTextFile.eof() && !openTextFile.fail() )
{
nLength = GetWindowTextLength(GetDlgItem(main, IDC_MAIN_EDIT));
getline(openTextFile,inLine);
toEditControl = (char*)inLine.c_str();
//A new line must have a "\r\n" so test for both
if( toEditControl[ strlen(toEditControl) -1 ] != '\r' )
{
strcat(toEditControl,"\r");
}
if( inLine[ strlen(toEditControl) -1] != '\n' )
{
strcat(toEditControl,"\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)toEditControl );
}
untitled = false;
edited = false;
openTextFile.close();
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: Russell S. <rsc...@ya...> - 2005-07-12 03:32:49
|
Easy does it. just select "build all, build, or execute. clicking execute will cause the program to be assembled and then executed. __________________________________ Discover Yahoo! Get on-the-go sports scores, stock quotes, news and more. Check it out! http://discover.yahoo.com/mobile.html |
|
From: Zeng <ab...@xy...> - 2005-07-12 02:04:09
|
<html>
<head>
<title>每日文章</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body leftmargin=0 topmargin=0>
<br><br>
<table cellSpacing=0 cellPadding=0 width="90%" border=0 align=center>
<tr>
<td align=center><STRONG>您了解电磁辐射危害吗?</STRONG><br><br></td>
</tr>
<tr>
<td vAlign=top align=center>
<a href="http://www.gz-toward.com" target=_blank><img src="http://www.gz-toward.com/images/maxmail.jpg" border=1></a><br><br>
<a href="http://www.gz-toward.com" target=_blank>更多=》</a>
</td>
</tr>
</table>
</body>
</html>
|
|
From: <Mat...@Ve...> - 2005-07-11 22:29:08
|
The STL string class has a c_str() method that will give you such an object.
With vector<char> you would probably use &v[0].
-----Original Message-----
From: Noorez Kassam [mailto:lor...@ho...]
Sent: Monday, July 11, 2005 3:27 PM
To: Mat...@Ve...
Subject: RE: [Dev-C++] Reading from text file
I was using these two functions to put text into 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 );
inLine was of type char*, the argument that the function will accept but how
can I do it with the vector<char> or string type?
>From: Mat...@Ve...
>To: lor...@ho...
>Subject: RE: [Dev-C++] Reading from text file
>Date: Mon, 11 Jul 2005 10:02:08 -0700
>
>Do not used fixed size buffers such as inLine is in your program or your
>code will have a buffer overflow.
>
>This is why C++ gives you vector<char> and string classes. Use these
>instead.
>
>-----Original Message-----
>From: dev...@li...
>[mailto:dev...@li...]On Behalf Of Noorez
>Kassam
>Sent: Friday, July 08, 2005 1:38 PM
>To: dev...@li...
>Subject: [Dev-C++] Reading from text file
>
>
>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=ht
t
>p://hotmail.com/enca&HL=Market_MSNIS_Taglines
> Start enjoying all the benefits of MSN(r) Premium right now and get the
>first two months FREE*.
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by the 'Do More With Dual!' webinar
>happening
>July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
>core and dual graphics technology at this free one hour event hosted by HP,
>AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
>_______________________________________________
>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
>___________________________________________________________________
>The information contained in this message and any attachment may be
>proprietary, confidential, and privileged or subject to the work
>product doctrine and thus protected from disclosure. If the reader
>of this message is not the intended recipient, or an employee or
>agent responsible for delivering this message to the intended
>recipient, you are hereby notified that any dissemination,
>distribution or copying of this communication is strictly prohibited.
>If you have received this communication in error, please notify me
>immediately by replying to this message and deleting it and all
>copies and backups thereof. Thank you.
>
_________________________________________________________________
Scan and help eliminate destructive viruses from your inbound and outbound
e-mail and attachments.
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=htt
p://hotmail.com/enca&HL=Market_MSNIS_Taglines
Start enjoying all the benefits of MSN(r) Premium right now and get the
first two months FREE*.
|
|
From: yakir a. <ya...@za...> - 2005-07-11 22:05:33
|
Hi jorj It's not a solution to rely on other people to do your things even if you are vi or blind! Don't wory,you didn't offend me or something,I'm just trying to say there are other ways to acomplish it And with my screen reader I can easyly see if there is a mistake in the code Even if it's just a ; or > or what ever And that's how I'm reading the "teach your self c++ in 21 days",with my screen reader! And I can brouz eatch letter of a code ritten on the book,so that's not the problem To per : Hi per,can you read my last email and give me an advise about the skript?... Thanks Regards yakir |
|
From: yakir a. <ya...@za...> - 2005-07-11 21:32:18
|
Hi per, Thanks for that, how ever , now I understand it all! The problem is not me nor the compilers nor the ide's It's just my screen reader's problem,and the problem is: When I open devc.exe I can swich tabs If I want by pressing control+tab But when I create the projekt and in the text editor, I can't switch to the project tab nor select any thing that's on the screen exept for going to the menus like file,help,debug,exequte. So if the thing is that you have to select the project tab,I can't do it with the screen reader for now How ever,I have a friend that programms with c++ [he sujested me learning it and not vb in the first place],and he uses a screen reader two,and he has a screept he rote for bloodshed Maby I should ask him to give it to me But I just nead to understand if that indeed is the problem,I mean,the swiching tabs,is it important? To let ya understand better what I do,I'll say it in steps: I open devc.exe[5.9.9.2], select file ,new and new project Then I select aplication in the combo box and select c++ project,and press on ok butten Then I open file,new ,sors file. paste the code,press control+f9 and the dialog Appeers,but exits 5 seconds after it did ,and then I press f9,and a dialog pops up saying"worning!,not compiled" Maby it's indeed the swich tabs problem? What do you think Regards Thanks yakir |
|
From: Per W. <pw...@ia...> - 2005-07-11 20:47:06
|
I have to go out for an hour or two. If you are still stuck when I get back, I'll see if I can help some more - however see my previous answer during the time. /Per W On Mon, 11 Jul 2005, yakir arbib wrote: > Hi per, > About your questions: > I don't have any programming knoeleje, how ever I am good with other > computer stuf > The problem for me to understand ya is just the thing you use a highly > complikated langwij > Instead of telling me how to get to the command line > Btw,what do you mean by the command line,is it the windo that apeers > when you go to devc.exe? > I mean,where you have all the menus like debug , file,help. and all > that? > Or you have to go to another place to open the command line > And after I write the code in notepad and save it to"hello.cpp".what do > I use,do I use open in the file menu? > Or type the command to make it a hello.exe file with out using open? > Thanks > And try to sound as if you wher talking to a 10 year old kid > please*smiles* > Thanks man! > yakir > |
|
From: Per W. <pw...@ia...> - 2005-07-11 20:44:28
|
Empty lines does not matter at all - C and C++ allows white space
(space, tab, newline, ...) to be
inserted just about anywhere.
The places where you should avoid placing white spacing is:
- Within ''
- Within ""
- Between digits of a number
- Between charactesr (and digits) of a function or variable name.
Anyway, this is what I did:
I opened Dev-C++ - the machine I currently sit at have version 4.9.9.2
installed, but it should work the same with all versions that starts with
4.9.
Selected File/New/Project
Specified 'Empty Project' and pressed 'Ok'.
Created a new directory named 'hello' and moved into it.
Named the project 'hello.dev' and pressed 'Save'.
Made sure that the 'Project' tab was selected on the left side of the IDE
and then right-clicked on the top-most item in the tree.
Selected 'New file'.
Cut the source code from your mail and pasted into the new editor view.
Pressed Ctrl-S to save. Specified the name 'hello.cpp' and pressed the
'Save' button.
Pressed Ctrl-F9 to compile. A popup dialog displays 'Status: Done'
If I close the popup dialog and at the bottom of the Dev-C++ window select
the 'Compile Log' tab, I find the following 8 lines of text:
Compiler: Default compiler
Building Makefile: "C:\usr\src\test\hello\Makefile.win"
Executing make...
make.exe -f "C:\usr\src\test\hello\Makefile.win" all
g++.exe hello.o -o "hello.exe" -L"C:/tools/Dev-Cpp/lib"
Execution terminated
Compilation successful
If I then press F9 a new text window is started with the running program.
The following two lines are output:
Hello World!
Press any key to continue . . .
If you get into troubles when compiling the program, we can help you if
you do two things:
Select every single character in the edit window and paste into your mail
- I assume you have already done this, since the code I cut from your
previous mail did compile and did work.
Select the 'Compile Log' tab in the bottom of the Dev-C++ window. To the
left of the tab, there is two fields:
'Total Errors:' and 'Size of Output:' and to the right is a field 'Compile
Log:'
Copy these three fields (actually, the Compile Log: field to the right is
enough) and paste into your mail.
By looking at both your source code and the output text from building the
application, we should be able to figure out what goes wrong.
/Per W
On Mon, 11 Jul 2005, yakir arbib wrote:
> Hi
> Thanks for that man
> I tried doing what you sed:
> I went to notepad,rote the code you gave me,and pressed control+c to
> coppy it,and then I pasted it to dev
> I created a new projektand deleted what dev rote there,I pasted in the
> code,pressed control+f9 to compile,and this is what went out
> #include <iostream>
> #include <cstdlib>
> using namespace std;
>
> int main()
> {
> cout << "Hello World!\n";
> system("PAUSE");
> return 0;
> }
> But there wher stil errors,I'm starting to get despret
> And I have another question:
> Are the blank lines important?
> I mean, if I write:
> #include <iostream>
>
> #include <cstdlib>
> Or:
> #include <iostream>
> #include <cstdlib>
> I mean,do the blank lines represent something?
> Or I can write how I linke
> And about my main problem that I can't compile anything, perhaps can you
> figur the problem in the code I rote above?
> Or tell me how to use mingw with out the dev ide
> Thanks
> yakir
>
|
|
From: yakir a. <ya...@za...> - 2005-07-11 20:21:06
|
Hi per, About your questions: I don't have any programming knoeleje, how ever I am good with other computer stuf The problem for me to understand ya is just the thing you use a highly complikated langwij Instead of telling me how to get to the command line Btw,what do you mean by the command line,is it the windo that apeers when you go to devc.exe? I mean,where you have all the menus like debug , file,help. and all that? Or you have to go to another place to open the command line And after I write the code in notepad and save it to"hello.cpp".what do I use,do I use open in the file menu? Or type the command to make it a hello.exe file with out using open? Thanks And try to sound as if you wher talking to a 10 year old kid please*smiles* Thanks man! yakir |
|
From: yakir a. <ya...@za...> - 2005-07-11 20:06:19
|
Hi
Thanks for that man
I tried doing what you sed:
I went to notepad,rote the code you gave me,and pressed control+c to
coppy it,and then I pasted it to dev
I created a new projektand deleted what dev rote there,I pasted in the
code,pressed control+f9 to compile,and this is what went out
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
cout << "Hello World!\n";
system("PAUSE");
return 0;
}
But there wher stil errors,I'm starting to get despret
And I have another question:
Are the blank lines important?
I mean, if I write:
#include <iostream>
#include <cstdlib>
Or:
#include <iostream>
#include <cstdlib>
I mean,do the blank lines represent something?
Or I can write how I linke
And about my main problem that I can't compile anything, perhaps can you
figur the problem in the code I rote above?
Or tell me how to use mingw with out the dev ide
Thanks
yakir
|
|
From: Per W. <pw...@ia...> - 2005-07-11 19:12:22
|
It feels a bit strange to mostly read only reading one side of a discussion. It was me who suggested that you should maybe try using notepad or similar to write your code and then compile directly from the command line. I have never tried a screen reader software, but it feels to me that it could easily get confused by a highly graphical development environment with lots of small sub-windows all over. Anyway: if you do write your code in notepad, you don't have to "paste" the code into the compiler. The compiler don't care the slightest what editor you used to write the code, or what visual feedback was available when the code was written. All it wants is for the source to be stored in one or more files. As I wrote before, a single source file "hello.cpp" can be built into a working command-line application with: g++ hello.cpp -o hello.exe g++ is the name of the compiler, and must be in your search path. hello.cpp is the name of your source file, and you should move to the directory where you store the source file before running the command. The name after -o is the name you want for the runnable program. If you don't specify -o and a name, the resulting file will be called a.exe - this works just fine, but after a while it gets a bit hard to remember what a.exe actually does. I must confess two things: I don't know very much about how blind people really uses their machines, so it isn't so easy to put myself into your situation. My next problem is that I don't know exactly how much computer knowledge you have. You could have been using computers your whole life (possibly also programmed in other languages), or you could be quite unexperienced with computers. These two things makes it quite easy for me (and probably most other people on this list too) to think or write "just do it" instead of considering any problems involved. We live in a world of visual feedback and tend to quantify difficulties based on our own experiences. /Per W On Mon, 11 Jul 2005, yakir arbib wrote: > Hi > Hey man!,are you joking with me? > Wow,I can send emails and such?... > That is a bit unnice of you to say sucha thing > There are lots of blind programmers hoo are 16 or 18 years old,so don't > think I'm the first! > And today's technology lets us [blind or vi people] do every thing a > sighted person would do with his comp,including programming! > There are people my age[16] that programm very highly complikated audio > games using not only x and y axess > But the z axes that makes it even more difficult > So that is not the problem, the problem is understanding some basics , > and then from there make it grow and grow! > And that's mainly what I wanna know! > How do you get to the min gw compilet with out using the ide? > Thanks > yakir > |
|
From: Jonathan D. <gri...@ho...> - 2005-07-11 19:10:53
|
Hi Yakir,
Per was saying that you can use any text editor such as Notepad to write the
code for your program. This might be easier for you since Dev-C++ has a lot
going on in it's interface. I wanted to try to help you with what you
posted, though.
Just as Per said, you have some code left in your source file that Dev-C++
put in there automatically for some reason. If you're following the book
that you have, you wont want to start like this. Instead, when you make a
new project, delete everything in it that Dev-C++ automatically puts in.
Then start writing your code. Here's my version of what you should be
trying to do with your source:
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
cout << "Hello World!\n";
system("PAUSE");
return 0;
}
//end of program
If you make a project with a source file (.cpp) that has only this written
in it, then compile and run it, this will create a .exe file that displays:
Hello World!
Press any key to continue...
Keep emailing if you have any more questions, Yakir. If you can get this to
work with Dev-C++, then we can know better how to help you.
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
|