dev-cpp-users Mailing List for Dev-C++ (Page 107)
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: bhadram r. <bha...@ya...> - 2005-09-11 13:29:27
|
Dear friends,
I'd a problem. Please see the code below.
int main()
{
ifstream infile("exclusion_set");
istream_iterator<string> input(infile),eos;
vector<string> vec;
copy(input,eos,inserter(vec,vec.begin()));
sort(vec.begin(),vec.end(),greater<string>());
ostream_iterator<string> output(cout,"\n");
unique_copy(vec.begin(),vec.end(),output);
return 0;
}
if "exclusion_set" file cotents are like this:
the and but that then are been
can can't cannot could did for
had have him his her its into
were which when with would
the output will be each word like
the
and
etc.......
But if i want to read each line in the specified vector instead of each word. How shall i do.Which parameter that i should set so that each line is read in vector element.Please help.
Thanking you,
yours sincerely,
bhadram
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com |
|
From: Noorez K. <lor...@ho...> - 2005-09-11 00:22:31
|
I want to know how to get the 'output' of command line programs such as the c++ compiler. If there is in error in your program it will output the errors. How can I get that 'output' and use it they way that I need? _________________________________________________________________ Take charge with a pop-up guard 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: Onur Ö. <ozk...@ya...> - 2005-09-10 20:33:33
|
Dear Friends, I have spent lots of effort with Forums,Help,ResourceSite... before mailing you about my problem with Dev-C++.I hope,you could help me. Thanks. Problem: I need to debug a simple console program. When click debug after a clean rebuild, Dev-C++ is asking "Your program does not have debugging infomation....,click Yes to generate and rebuild...." When I click Yes,after a while(after rebuild) it is asking the same question again and again. I coulndt remain buttons enabled (Step Over,continue..) Windows XP with Dev-C++ with 4.9.9.2 (I have already updated GND over Dev-C++) ______________________________________________________ Click here to donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/ |
|
From: Alfred P. R. <al...@ya...> - 2005-09-10 20:20:33
|
Hi Noorez, In my understanding, there is no actual standard to these options. IMHO, Major releases are just that, major changes to the application, such as new functionality, i.e. adding a substantially different feature that may change the look and feel of the application. Beta versions are usually Major #0. Minor version numbers are usually reserved for less substantial changes to the application, lets say minor modification of a widget or similar small changes. Release numbers usually pertain to bug fixing, with 0 being the initial release and incrementing therefrom for each subsequent bug fix. However, this may also be covered by Minor release numbers. Build numbers are usually the compile count, which can be ridiculous on Dev-C++ for substantial applications. If you look at Windows XP, their number is at 2160, if I remember correctly. Meaning that they compiled the OS 2160 times! Scary... None of this is written in stone Noorez, and I may stand corrected at any time! Noorez Kassam <lor...@ho...> wrote: In the dev-cpp project, you have the option of using a version number, but I don't understand how it works... What is the Major, Minor, Release, and Build... <snip> Alfred P. Reaud |
|
From: Noorez K. <lor...@ho...> - 2005-09-10 19:23:31
|
In the dev-cpp project, you have the option of using a version number, but I don't understand how it works... What is the Major, Minor, Release, and Build... _________________________________________________________________ Powerful Parental Controls Let your child discover the best the Internet has to offer. 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: bhadram r. <bha...@ya...> - 2005-09-09 05:31:32
|
Dear friends,
I'm using istream_iterator in vc++ after entering the text in the console i dont know how to exit out and get the output. i tried all the ways like cntrl+d etc.. If i'm using cntrl+c it is completely exiting out,with out displaying the output how so solve this problem. The program is
please help in this aspect.
# pragma warning(disable:4786)
# include <iostream>
# include <string>
# include <iterator>
# include <vector>
# include <algorithm>
using namespace std;
bool length_less(string s1,string s2)
{
return s1.size()<s2.size();
}
int main()
{
istream_iterator<string> input(cin),eos;
vector<string> text;
copy(input,eos,back_inserter(text));
string* max=max_element(text.begin(),text.end(),length_less);
cout<<endl<<*max<<endl;
return 0;
}
---------------------------------
Click here to donate to the Hurricane Katrina relief effort. |
|
From: Masthan R. <mas...@gm...> - 2005-09-09 03:58:58
|
Jarren, Thanks a lot for your kind help.=20 Microsoft provides Installer package with Microsoft Visual Studio. But this= =20 can be used only for Installing VB 6.0 Projects. If we are developing=20 projects in VC++ 6.0 then how we should make packages to install it in othe= r=20 computers. Please let me know if you have any idea. Thanks Masthan On 9/8/05, Jarren Long <vb...@gm...> wrote: >=20 > Hi Masthan, > As of now, I don't have much done. The installer is for a game that I'm= =20 > working on (that probably won't be done for about a year). It's not reall= y a=20 > installer for public use, but I'll be happy to send you a copy of the sou= rce=20 > once I'm done. As for the registry problem, I found the answers I was=20 > looking for. I'm not really sure if there's installers for vc+, because I= =20 > don't use it. Have you tried Google?=20 > Anyway, Good Luck! > Jarren > On 9/8/05, Masthan Rao <mas...@gm...> wrote:=20 > >=20 > > Hi Jaren, > > I cant answer your question because I dont have sufficient knowlege in= =20 > > using Windows registry. > > Can you help me in knowing how to prepare our own installer. Are there= =20 > > any installers for vc++ workspaces? Can you send me th source code of y= our=20 > > installer package so that I can also share your knowlege? > > Best reagards > > Masthan > >=20 > > On 9/7/05, Jarren Long <vb...@gm...> wrote:=20 > > >=20 > > > Hi all, > > > I'm trying to make my own installer, but I have a problem. I need to= =20 > > > be able to register my own file types and extensions. Can anyone show= me a=20 > > > small example of how to create my own registry keys with values in c+= +? I=20 > > > tried reading the MSDN documentation, but it wasn't all that helpful.= =20 > > > Here's what I need to make (roughly): > > > HKEY_CLASSES_ROOT > > > ----(info) > > > --------(more info) > > > Thanks in advance to anyone who can help! > > >=20 > > > --=20 > > > Jarren L.=20 > > >=20 > >=20 > >=20 > >=20 > > --=20 > > Regards > > Masthan=20 >=20 >=20 >=20 >=20 > --=20 > Jarren L.=20 --=20 Regards Masthan |
|
From: Masthan R. <mas...@gm...> - 2005-09-09 03:55:36
|
Hi, These API functions will help us to play with registry for adding and=20 deleting keys from the Regsitry. But I dont understand what are the pre=20 requisites for coding an installer package. Out of the requirements one is setting the registry keys. What are the keys= =20 to be created. Please let me know the source where to read for this documentation. Thanks in advance. Masthan On 9/8/05, Setrio <se...@gm...> wrote: >=20 > Search for this functions > RegOpenKeyEx > RegCreateKeyEx > RegSetValueEx > To get information use > RegQueryValueEx > To delete > RegDeleteKey > RegDeleteValue > I hope this help >=20 > On 9/7/05, Jarren Long <vb...@gm...> wrote:=20 > >=20 > > Hi all, > > I'm trying to make my own installer, but I have a problem. I need to b= e=20 > > able to register my own file types and extensions. Can anyone show me a= =20 > > small example of how to create my own registry keys with values in c++?= I=20 > > tried reading the MSDN documentation, but it wasn't all that helpful.= =20 > > Here's what I need to make (roughly): > > HKEY_CLASSES_ROOT > > ----(info) > > --------(more info) > > Thanks in advance to anyone who can help! > >=20 > > --=20 > > Jarren L.=20 > >=20 >=20 >=20 --=20 Regards Masthan |
|
From: Dane E. <dg...@wo...> - 2005-09-09 01:42:05
|
Hi,
I found this snippet and it seems to work well.
while ((cout << "\nYour selection: ")&& (!(cin >> userSelection)
|| userSelection < 0 || userSelection > employeeQuantity)) {
cout << "That's not a number between 1 and " <<
employeeQuantity << endl;
cin.clear();
cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
}
I suppose there are dangers to this?
Dane
da...@de...
|
|
From: Dane E. <dg...@wo...> - 2005-09-09 01:24:45
|
Hi, For my small terminal app, I need the user to enter an integer between 1 and N. Then I need a way to check their input. If their input is within range then I proceed, otherwise I need to prompt them to resubmit their number. I can not find a safe way to do this reasonably. Please can someone help me along? Thank you in advance for any help you can offer. Best regards, Dane |
|
From: <Cla...@ao...> - 2005-09-08 21:50:14
|
I obtained my second copy a of a Dev-C platform. When I try to run a program on Dev-C it runs the a previous program instead of the most recent file I had compiled. I have obtained a second copy of the Dev-C platform but it does the same thing. I was wondering is there a file that I need to include or to remove so that it runs the currently file? Sincerely C. Lowery |
|
From: Omar B. <oba...@gm...> - 2005-09-08 14:30:38
|
Hi, just wanted to tell you I resolved my issue =3DoS. It was indeed a newb= ie=20 thing... I had not selected the "Generate Debbuging info" in the=20 Project/Project Options/Compiler/Linker screen... anyway thank you. On 9/8/05, Omar Baqueiro <oba...@gm...> wrote: >=20 > Hello, I think this is a newbie question and it may not be anything but I= =20 > cant find information on the web about this (the most I found was that it= =20 > may be a bug on gdb). >=20 > So, I have a simple main.c program on a console application project.=20 > It compiles and builds OK,=20 >=20 > After that I add a breakpoint at some line in the program and run the=20 > program, but to my surprise the program runs and do not break on the=20 > specified breakpoint... >=20 > I looked for the debug information and this is what I got (btw I can not= =20 > COPY from the debug window, why? [using Dev 5 beta 4.9.9.2<http://4.9.9.2= > > ]): >=20 > pre-prompt > (gdb) > prompt > no source file named main.cpp > pre-prompt >=20 > error-begin > No source file named main.cpp > post-prompt > error > pre-prompt > (gdb) > ... >=20 > So I guess the debbuger is not finding my source file for some reason. FY= I=20 > I am using GDB 5.2.1. > And my source files are in a directory called "H:\My=20 > Documents\Programs\MyFirstSDL"=20 >=20 > Any clue?? > Thank you! >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 > --=20 > Omar Baqueiro Espinosa > Computer Systems Engineer > Home: www.csc.liv.ac.uk/~omar/ <http://www.csc.liv.ac.uk/%7Eomar/> > Calendar: calendar.yahoo.com/obaqueiro=20 > <http://calendar.yahoo.com/obaqueiro> > PGP Key available at: www.csc.liv.ac.uk/~omar/pgp.html<http://www.csc.liv= .ac.uk/%7Eomar/pgp.html> > _____ >=20 --=20 Omar Baqueiro Espinosa Computer Systems Engineer Home: www.csc.liv.ac.uk/~omar/ <http://www.csc.liv.ac.uk/~omar/> Calendar: calendar.yahoo.com/obaqueiro <http://calendar.yahoo.com/obaqueiro= > PGP Key available at: www.csc.liv.ac.uk/~omar/pgp.html<http://www.csc.liv.ac.uk/~omar/pgp.html> _____ |
|
From: Setrio <se...@gm...> - 2005-09-08 14:03:12
|
Search for this functions RegOpenKeyEx RegCreateKeyEx RegSetValueEx To get information use RegQueryValueEx To delete RegDeleteKey RegDeleteValue I hope this help On 9/7/05, Jarren Long <vb...@gm...> wrote:=20 >=20 > Hi all, > I'm trying to make my own installer, but I have a problem. I need to be= =20 > able to register my own file types and extensions. Can anyone show me a= =20 > small example of how to create my own registry keys with values in c++? I= =20 > tried reading the MSDN documentation, but it wasn't all that helpful.=20 > Here's what I need to make (roughly): > HKEY_CLASSES_ROOT > ----(info) > --------(more info) > Thanks in advance to anyone who can help! >=20 > --=20 > Jarren L.=20 > |
|
From: Masthan R. <mas...@gm...> - 2005-09-08 12:26:10
|
Hi Dane, Probably you might have not included=20 using namespace std;=20 in starting of your project after including the header files. I tried and it worked for me. Regards Masthan On 9/6/05, Dane Ensign <dg...@wo...> wrote:=20 >=20 > Hi all, >=20 > I want to place 2 string members in my class .h file. Currently I > have put '#include <string>' at the top and as a private member > I put: >=20 > string firstName; >=20 > When I try to compile I get this error: 'string' does not name a type. >=20 > Please can someone show me how to do this properly? >=20 > Best regards, >=20 > Dane > da...@de... >=20 >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & Q= A > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > 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 >=20 --=20 Regards Masthan |
|
From: Omar B. <oba...@gm...> - 2005-09-08 11:42:14
|
Hello, I think this is a newbie question and it may not be anything but I= =20 cant find information on the web about this (the most I found was that it= =20 may be a bug on gdb). So, I have a simple main.c program on a console application project.=20 It compiles and builds OK,=20 After that I add a breakpoint at some line in the program and run the=20 program, but to my surprise the program runs and do not break on the=20 specified breakpoint... I looked for the debug information and this is what I got (btw I can not=20 COPY from the debug window, why? [using Dev 5 beta 4.9.9.2 <http://4.9.9.2> ]): pre-prompt (gdb) prompt no source file named main.cpp pre-prompt error-begin No source file named main.cpp post-prompt error pre-prompt (gdb) ... So I guess the debbuger is not finding my source file for some reason. FYI = I=20 am using GDB 5.2.1. And my source files are in a directory called "H:\My=20 Documents\Programs\MyFirstSDL"=20 Any clue?? Thank you! --=20 Omar Baqueiro Espinosa Computer Systems Engineer Home: www.csc.liv.ac.uk/~omar/ <http://www.csc.liv.ac.uk/~omar/> Calendar: calendar.yahoo.com/obaqueiro <http://calendar.yahoo.com/obaqueiro= > PGP Key available at: www.csc.liv.ac.uk/~omar/pgp.html<http://www.csc.liv.ac.uk/~omar/pgp.html> _____ |
|
From: Jarren L. <vb...@gm...> - 2005-09-08 00:42:27
|
Hi all, I'm trying to make my own installer, but I have a problem. I need to be=20 able to register my own file types and extensions. Can anyone show me a=20 small example of how to create my own registry keys with values in c++? I= =20 tried reading the MSDN documentation, but it wasn't all that helpful. Here's what I need to make (roughly): HKEY_CLASSES_ROOT ----(info) --------(more info) Thanks in advance to anyone who can help! --=20 Jarren L. |
|
From: Onur Ö. <ozk...@ya...> - 2005-09-07 13:47:48
|
Dear Friends, I have spent lots of effort with Forums,Help,ResourceSite... before mailing you about my problem with Dev-C++.I hope,you could help me. Thanks. Problem: I need to debug a simple console program. When click debug after a clean rebuild, Dev-C++ is asking "Your program does not have debugging infomation....,click Yes to generate and rebuild...." When I click Yes,after a while(after rebuild) it is asking the same question again and again. I coulndt remain buttons enabled (Step Over,continue..) Windows XP with Dev-C++ with 4.9.9.2 (I have already updated GND over Dev-C++) ______________________________________________________ Click here to donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/ |
|
From: Daniel p. <dan...@st...> - 2005-09-07 09:17:13
|
Hi. you should use std::string instead for just string, or declarate "using std::string". if you use the second one then you will be able to use only string. using "using namespace std" is not to be recommended because it can cause a lot of problems in bigger programs. it should look like this: #include <string> using std::string string firstName; /Daniel Pettersson At 06:05 2005-09-07, Alfred P. Reaud wrote: >Hi Dane, > >Could be that you haven't included "using namespace std;" above your include. > >Dane Ensign <dg...@wo...> wrote: >Hi all, > >I want to place 2 string members in my class .h file. Currently I >have put '#include ' at the top and as a private member >I put: > >string firstName; > >When I try to compile I get this error: 'string' does not name a type. > >Please can someone show me how to do this properly? > >Best regards, > >Dane >da...@de... > > > ><mailto:al...@ya...>Alfred P. Reaud ><http://www.geocities.com/alreaud/> >[] > |
|
From: Alfred P. R. <al...@ya...> - 2005-09-07 04:05:21
|
Hi Dane, Could be that you haven't included "using namespace std;" above your include. Dane Ensign <dg...@wo...> wrote: Hi all, I want to place 2 string members in my class .h file. Currently I have put '#include ' at the top and as a private member I put: string firstName; When I try to compile I get this error: 'string' does not name a type. Please can someone show me how to do this properly? Best regards, Dane da...@de... Alfred P. Reaud |
|
From: Dane E. <dg...@wo...> - 2005-09-07 03:41:58
|
Hi all, I want to place 2 string members in my class .h file. Currently I have put '#include <string>' at the top and as a private member I put: string firstName; When I try to compile I get this error: 'string' does not name a type. Please can someone show me how to do this properly? Best regards, Dane da...@de... |
|
From: <dic...@tt...> - 2005-09-07 00:04:14
|
confirm 553567
|
|
From: tichy <ti...@po...> - 2005-09-06 20:16:37
|
Deepu d napisa=C5=82(a):
>Dear sir,
>
>I am a newbie in Dev-C++.
>Can anybody please tell me how to configure I/O
>ports,especially serial ports using Dev-C++.
>
>
> =20
>
you can do it so for example:
lpFileName =3D "COM1";
hCommDev =3D CreateFile(lpFileName, GENERIC_READ | GENERIC_WRITE,
0, NULL, OPEN_EXISTING, 0, NULL);
if (hCommDev !=3D INVALID_HANDLE_VALUE) //check if port is correctly open=
ed
{ dcb.DCBlength =3D sizeof(dcb);
GetCommState(hCommDev, &dcb);
if (CheckBox3->Checked =3D=3D TRUE)
dcb.BaudRate=3DCBR_19200;
dcb.Parity =3D ODDPARITY; ///set parrity/
dcb.StopBits =3D ONESTOPBIT; // /stop bits/
dcb.ByteSize =3D 7; // /data bits/
dcb.fParity =3D TRUE; // /set parity checking/
dcb.fDtrControl =3D DTR_CONTROL_DISABLE;
dcb.fRtsControl =3D RTS_CONTROL_DISABLE;
dcb.fOutxCtsFlow =3D FALSE;
dcb.fOutxDsrFlow =3D FALSE;
dcb.fDsrSensitivity =3D FALSE;
dcb.fAbortOnError =3D FALSE;
dcb.fOutX =3D FALSE;
dcb.fInX =3D FALSE;
dcb.fErrorChar =3D FALSE;
dcb.fNull =3D FALSE;
SetCommState(hCommDev, &dcb);
}
else
{
switch ((int)hCommDev)
{
case IE_BADID:
MessageBox(NULL, "Incorrect port name or port is"
" active.", "Error!", MB_OK);
break;
};
};
----------------------------------------------------------------------
Jedyny taki czat... >>> http://link.interia.pl/f18b0
|
|
From: Alf S. <al...@st...> - 2005-09-06 15:15:46
|
Am I still subscribed as I have heard nothing from his site for ages. -- Regards, Alf Stockton www.stockton.co.za Your society will be sought by people of taste and refinement. My email disclaimer is available at www.stockton.co.za/disclaimer.html |
|
From: Vale G. <val...@at...> - 2005-09-05 21:03:03
|
JeffS wrote: > ...are there any instructions available as to how to > configure Insight for use with Dev-C++... I have been successful using Insight with Dev-C++ by configuring a Tool as follows: Program: C:\cygwin\bin\insight.exe [I happen to be using the Cygwin distribution of Insight.] Working Directory: C:\cygwin\bin\ Parameters: "<EXENAME>" Note: Enclose the bracketed EXENAME in quotation marks so that program names with embedded spaces will be called correctly. I'm currently running version GDB 6.3.50-20041228-3 of Insight without too much trouble but note that the Source Display Status Bar may be hidden upon invocation. Adjust the window size to reveal it. Also note that recent changes to gcc have affected the -g3 debugging flag. I switched to -ggdb3 and now I can see the source code in the Insight debugger again. -- Chuck |
|
From: JeffS <jef...@ve...> - 2005-09-05 19:23:45
|
I came across a website, http://www.geocities.com/uniqueness_template/ = , that offers a download of the Insight debugger that is customized for = Dev-C++. The websites maintainer, Mike Serrano, states that: "You can, however, use Insight with Dev-C++ if you know where to put = the files. Fortunately, the hard work of figuring out what files go = where has already been done for you. I have put together a = self-extracting ZIP file that should put everything where it needs to = go." Unfortunately, the link provided for the download,=20 ftp://161.97.203.92/pub/insight5_win32_exe.zip is broken. I tried to contact Mr. Serrano at the email address = provided at the bottom of the page, but it also is broken. Can anyone tell me if this download is available anywhere else, and, = if not, are there any instructions available as to how to configure Insight for use with = Dev-C++ with the download available from http://sourceware.org/insight/ . Regards, JeffS |