dev-cpp-users Mailing List for Dev-C++
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
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1
(18) |
2
(3) |
3
(5) |
4
(10) |
5
(2) |
6
(15) |
7
(10) |
8
(17) |
9
(28) |
10
(9) |
11
(20) |
12
(27) |
13
(16) |
14
(2) |
15
(5) |
16
(11) |
17
(6) |
18
(10) |
19
(21) |
20
(24) |
21
(15) |
22
(13) |
23
(26) |
24
(8) |
25
(9) |
26
(11) |
27
(13) |
28
(3) |
29
(4) |
30
(26) |
|
|
|
|
|
From: Per W. <pw...@ia...> - 2003-06-10 10:32:55
|
The compiler always zero-terminate strings if you just give it a chance. char mystr[] = "foobar"; will store six characters and a termination. It's whey you try char mystr[6] = "foobar"; that you might get into problems, since the array doesn't allocate space for a termination. A lot of compilers will complain. /Per W On Mon, 9 Jun 2003, CARLSON, JAY MM1 wrote: > Reply to printing - take 2 - This is a good way to print from a console. A > file could be created a console program and then printed with a system() > call. Below is a sample program that demonstrates how it works. It is > longer than it has to be to show several variations at the same time. > > #include <iostream> > #include <stdlib.h> > > using namespace std; > > int main(void) { > > // assuming c:\test.txt exits, this will work. > // c:\test.txt should be a small file because it will print 4 times. > // Notice the double backslash in the first non comment line > // The backslash is a control characher so the first one > // is stripped out before the command is executed. > system("print c:\\test.txt"); > system("PRINT c:\\test.txt"); > system("print C:\\TEST.TXT"); > > // Other ways to do the same thing. > // This line could be dangerous - unterminated string > const char* command01 = "Print C:\\test.txt"; /* do I need \0 ? > */ > const char* command02 = "Print C:\\test.txt\0"; /* \0 ends the string > */ > // This line could be dangerous - unterminated string > const char command03[] = "Print C:\\test.txt"; /* do I need \0 ? > */ > const char command04[] = "Print C:\\test.txt\0"; /* \0 ends the string > */ > > system(command01); > system(command02); > system(command03); > system(command04); > > > // all valid dos commands can by used by system() > // you can get a list of commands by typing > // HELP + [enter key] (if installed) > // > system("PAUSE"); > // notice case is not important to the system() call > return 0; > } > > Jay > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > 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 > |
From: Per W. <pw...@ia...> - 2003-06-10 10:26:02
|
It is possible to open lpt1 or prn as a file also. However, depending on what os, driver, printer you have, you might have to fiddle iin the printer settings to make sure that the printer is avavailable in console windows too. Some combinations of OS and printer drivers might not even support text output from a console. /Per W On Mon, 9 Jun 2003, CARLSON, JAY MM1 wrote: > After doing many hours of web surfing. I found the best option for printing > (from a console) is to write everything to a file, then open the file under > notepad, or wordpad and print from there. I guess the reason is GUI's are > so popular (ie Windows), printers need drivers and most are only supplied > with window drivers now, (and linux if your lucky!) It may be possible to > redirect the entire file output to the printer from dos using something like > "c:\filename.exe >> lpt1" or something like that. If anyone has the exact > details that would be great. I also found some information on using inp > outp or inport outport for communicating through various ports. In this way > the printer might be fed some data. But there are just too many unknowns > for me to take a stab at. > > Jay > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > 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 > |
From: escofet <es...@fa...> - 2003-06-10 06:43:28
|
Hi, I'm new to this list but I've been working in C++ using Dev-Cpp for two months. I'd like somebody to tell me how to truncate a file using fstream. Thanks in advanced, Eduardo Escofet |
From: Ioannis V. <iv...@em...> - 2003-06-10 06:09:52
|
> My Question: > 1) How to clean stdin using new C++ commands? > > Regards > Andre cin.ignore(200, '\n'); Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |
From: Francisco V. <fco...@pr...> - 2003-06-10 06:02:14
|
Can someone help me? I have this piece of code case WM_CREATE: PlaySound (TEXT ("hellowin.wav"), NULL, SND_FILENAME | SND_ASYNC) ; return 0 ; The problem is I recive the follow message from linker C:\WINDOWS\TEMP\ccdJDcgb.o(.text+0x1e0):hellowin.c: undefined reference to `PlaySoundA@12' I get that the PlaySound funtcion is defined in the LIBWINMM.A file, but I can't get the linker use that file. ThankYou: Fracisco Velez |
From: Luigi S. <gi...@li...> - 2003-06-10 04:57:01
|
On Mon, Jun 09, 2003 at 02:18:16PM -0400, JB Maust wrote: > Mark, > > [...] > > My questions are these: > Does the order of files in the project matter? I have not tested it, but it should not matter > Does the extension have to be .hpp (or is .h OK) for header > files? Both are fine, my personal choice is ".hpp" for C++ and ".h" for C as it helps me tell them apart. > If all of the files are included in the project, shouldn't I just be > able to hit Ctrl-F10 and watch the thing link and compile the files, > and then run? > I do not remember the exact shortcut, but the answer should be yes. Also, header files need not be part of the project as far as compiling is concerned, including them is more a matter of opening those files quickly. -- >> gisan >> |
From: CARLSON, J. M. <CA...@st...> - 2003-06-10 04:37:43
|
Reply to printing - take 2 - This is a good way to print from a console. A file could be created a console program and then printed with a system() call. Below is a sample program that demonstrates how it works. It is longer than it has to be to show several variations at the same time. #include <iostream> #include <stdlib.h> using namespace std; int main(void) { // assuming c:\test.txt exits, this will work. // c:\test.txt should be a small file because it will print 4 times. // Notice the double backslash in the first non comment line // The backslash is a control characher so the first one // is stripped out before the command is executed. system("print c:\\test.txt"); system("PRINT c:\\test.txt"); system("print C:\\TEST.TXT"); // Other ways to do the same thing. // This line could be dangerous - unterminated string const char* command01 = "Print C:\\test.txt"; /* do I need \0 ? */ const char* command02 = "Print C:\\test.txt\0"; /* \0 ends the string */ // This line could be dangerous - unterminated string const char command03[] = "Print C:\\test.txt"; /* do I need \0 ? */ const char command04[] = "Print C:\\test.txt\0"; /* \0 ends the string */ system(command01); system(command02); system(command03); system(command04); // all valid dos commands can by used by system() // you can get a list of commands by typing // HELP + [enter key] (if installed) // system("PAUSE"); // notice case is not important to the system() call return 0; } Jay |
From: Abhijit S. <mu...@gm...> - 2003-06-10 04:10:41
|
> It may be possible to > redirect the entire file output to the printer from dos using something like > "c:\filename.exe >> lpt1" or something like that. Actually, that's `prn' in DOS. You can print directly by opening a file using prn as the name. For example: ofstream prn("prn"); if(!prn) { clog << "Printer not found" << endl; } else { // Print prn.close(); } Or in C, use fopen(), fprintf(), etc. HTH. ________________________________________ Abhijit Shylanath http://mudeth.tripod.com/ |
From: CARLSON, J. M. <CA...@st...> - 2003-06-10 03:58:26
|
After doing many hours of web surfing. I found the best option for printing (from a console) is to write everything to a file, then open the file under notepad, or wordpad and print from there. I guess the reason is GUI's are so popular (ie Windows), printers need drivers and most are only supplied with window drivers now, (and linux if your lucky!) It may be possible to redirect the entire file output to the printer from dos using something like "c:\filename.exe >> lpt1" or something like that. If anyone has the exact details that would be great. I also found some information on using inp outp or inport outport for communicating through various ports. In this way the printer might be fed some data. But there are just too many unknowns for me to take a stab at. Jay |