dev-cpp-users Mailing List for Dev-C++ (Page 189)
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: Hielke <hie...@he...> - 2004-08-19 23:23:54
|
Billiam wrote: > Do you have all the libraries linked to it that you should have? That > might be the problem, but Im not sure. That's probably not it cause as mentioned I did use the GetInstance() API call on another place with the very same includes. The (internal)header files included by the source only include self-implemented classheaderfiles besides the <windows.h> header. Those classes do not include any other header not also mentioned in those internal headers. That's why I think it is a linkerproblem. However I don't get it solved no matter what change in the projects filesettings. Regards, Hielke zw...@he... |
|
From: Per W. <pw...@ia...> - 2004-08-19 22:32:13
|
I would recommend wxWidgets. Besides allowing you to run your applications on Linux, Mac, ... it really helps to have a class framework when writing the application. /Per W On Fri, 20 Aug 2004, Gerardo Fernandez wrote: > Hi all, > > which is in your opinion the simplest way to create Windows programs (men= us, labels, > toolbars...) using Dev-C? direct use of Windows API? wxWidgets? any other= library? > > Thanks in advance. > > -- > Gerardo Fern=E1ndez > http://www.AjedrezVasco.com > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > 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 > |
|
From: Gerardo F. <gf...@eu...> - 2004-08-19 22:04:31
|
Hi all, which is in your opinion the simplest way to create Windows programs (menu= s, labels, toolbars...) using Dev-C? direct use of Windows API? wxWidgets? any other = library? Thanks in advance. -- Gerardo Fern=E1ndez http://www.AjedrezVasco.com |
|
From: Billiam <bon...@ya...> - 2004-08-19 22:01:23
|
Do you have all the libraries linked to it that you should have? That might be the problem, but Im not sure.
Hielke <hie...@he...> wrote:Hi all,
During the compilation of the following constructor I get a "'GetInstance' undeclared" error. However I included an headerfile which includes the appropriate header (windows.h) to use that function.
// topwindow1.cc
#include "windowwrappers.ih"
TopWindow::TopWindow(WindowClass &winClass, int resId)
:
Window(winClass)
{
d_style = WS_OVERLAPPEDWINDOW;
HINSTANCE hInst = GetInstance();
d_windowName = ResourceString(hInst, resId);
}
// windowwrappers.ih
#include "window.h"
#include "topwindow.h"
#include "../winexception.h"
#include "../resourcestring.h"
#include <windows.h>
I don't get why it won't compile. Especially because I use the very same function in a classmember of another class:
// setdefaults.cc
#include "classwrappers.ih"
void WindowClass::SetDefaults()
{
/* <some code> */
d_class.lpszClassName = GetName();
d_class.hInstance = GetInstance();
/* <some more code> */
}
// classwrappers.ih
#include "simplewindowclass.h"
#include "windowclass.h"
#include "topwindowclass.h"
#include "../resourcestring.h"
#include "../winexception.h"
#include <windows.h>
#include <string>
Note that I use a nonstandard extension for the headerfiles (following the "internal header" approach where classmembers include a common headerfile (which in turn includes the header containing classdeclaration)). This might be the cause of linker problems when using Dev-C++ but I already tried projectfile options. Currently the *.ih files are neither included during compilation nor during linkingprocess.
Thanks in advance. Hope somebody sees what I'm doing wrong.
Regards,
Hielke
zw...@he...
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers! |
|
From: Markku P. <mar...@ko...> - 2004-08-19 20:54:38
|
It seems that 'count' is all ready defined inside template in stl_algo.h
E:/Dev-Cpp/include/c++/3.3.1/bits/stl_algo.h:390: error: also declared =
as `
typename std::iterator_traits<_Iterator>::difference_type
std::count(_InputIter, _InputIter, const _Tp&)' here
So... you can't use 'count' as global variable (rename 'count')
or
you can't use 'using namespace std;' (replace cout to std::cout)
-Mp
----- Original Message -----
From: "Scott Simontis" <age...@co...>
To: "Bob Tentinger" <rte...@am...>; "Dev-C++ User Group" <dev=
-cpp...@li...>
Sent: Thursday, August 19, 2004 2:49 PM
Subject: Re: [Dev-C++] use of `count' is ambiguous
> It's probably fussing that it has been declared twice, but I have no
> idea how you can fix it. I reccomend just using different names rather
> using global and local variations of a variable.
> Bob Tentinger wrote:
>
> > Line 14 C:\Developer\DEV-C++\C++ Dev\Program8.cpp use of `count' is
> > ambiguous
> >
> > I am working through a beginners book on C++ and below is code that
> > will not compile in DEV C++ 4.9 it gives me the error above. What=92s
> > wrong here?
> >
> > It will compile in Visual Studio 7.0.
> >
> > #include <iostream>
> >
> > using namespace std;
> >
> > void func1();
> >
> > void func2();
> >
> > int count; // this is a global variable
> >
> > int main()
> >
> > {
> >
> > int i; // this is a local variable
> >
> > for(i=3D0; i<10; i++) {
> >
> > count =3D i * 2;
> >
> > func1();
> >
> > }
> >
> > return 0;
> >
> > }
> >
> > void func1()
> >
> > {
> >
> > cout << "count: " << count; // access global count
> >
> > cout << '\n'; // output a newline
> >
> > func2();
> >
> > }
> >
> > void func2()
> >
> > {
> >
> > int count; // this is a local variable
> >
> > for(count=3D0; count<3; count++) cout << '.';
> >
> > }
> >
|
|
From: Per W. <pw...@ia...> - 2004-08-19 20:41:26
|
I have written compilers, XML editors and a number of other string-manipulating things, but 99% of the time when I use C-strings, I work with static buffers or make one-time assignments with strdup(). A lot of the manipulation doesn't even need any new buffers but may use direct pointer substrings. The only realloc code I have are 3 or 4 small functions, about 5 lines each, that I wrote about 15 years ago to insert and remove text in a dynamically allocated buffer. Hardly any bother to write. Hardly any bother to use. For doing reg-exp it doesn't matter if I use my code, or if I use a third-part library, such as the wxRegEx class from wxWidgets. The point is, I don't spend any time fighting any strxx() functions, since they are not enemies. They are one of several useful (good) tools to use, not something to ignore because god has created std::string. There are a number of reasons to keep all options open. Some of them are: - C++ not available for a specific embedded environment. - The application may not include libstd++ because of code size (may cost huge amounts of money if application is updated through mobile phone) - Application must dynamically link with modules written using other compiler. - Application must interact with existing C libraries. - Preformance. std::string can not do anything that C/C++ can't do directly. Direct manipulation can do things that requires extra book-keeping (reference counting etc.) for a std::string solution. For most problems, there are a number of available solutions. Even if we go to the extreme and compare C with C++, most problems can be solved in a good way with or without objects or templates. The C implementation does not automatically need twice as much code or gets twice as many bugs. That is why - if people ask about a "C-type" problem - I don't say they have to use streams, strings etc. I mention that they are available, but at the same time discuss what to think about if the C functions are used. In this case, that scanf() shouldn't be used without specifying maximum sizes for the strings, that it doesn't allocate the strings (except in a gnu extension) and that fgets()/strchr()/strtok() are the other common C-library solution to the problem. People becomes better programmers if they learn multiple solutions to the same problem. /Per W On Thu, 19 Aug 2004, OROSZI Bal=E1zs wrote: > Per Westermark wrote: > > Of course I use the string type in my C++ applications, but I normally > > don't limit myself to _only_ the string type. > > That's the point. A year ago, when I only knew C, I didn't even want to h= ear about C++, > because I was satisfied with my knowledge of "pointer hacking". But I got= myself troubled > whenever I wanted to do string stuff: passing "strings" to functions, usi= ng malloc, > realloc, free, writing my own (rather awkward) string handler library too= k a lot of > productive time away from me. That's why I'm so against using strxxx, bec= ause I used them > extensively, and I only see how stupid I was, that I wasted so much time = on already > existant and well-written things. > > -- > Greetings, > Bal=E1zs > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > 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 > |
|
From: <or...@vp...> - 2004-08-19 17:51:21
|
Moln=E1r Tam=E1s wrote: > Hi! >=20 > My name is Tamas from Hungary. I've just finished to download the=20 > program Dev-C++ 4.9.9.0 because I've been looking for a greet and=20 > efficient C++ developer. > I've just only a big problem for the application: > when I'm working width the editor cannot use ";" characters all of the=20 > editor window so it is unconfortable to use the application. If my=20 > character set is EN not problem but my default character set is HU=20 > (hungarian) and the character ";" I can use ALTGR+"," all aplication of= =20 > my windows. >=20 > It is my question: > How can I configure or set my IDE for using above character? I need it= . > Many thanks for Your help. Szia! Go to: "Tools" -> "Configure Shortcuts" then select the line "Edit:Uncomment" and press escape. -- Greetings, Bal=E1zs (from Hungary as well :) |
|
From: <or...@vp...> - 2004-08-19 17:47:18
|
Per Westermark wrote: > Of course I use the string type in my C++ applications, but I normally > don't limit myself to _only_ the string type. That's the point. A year ago, when I only knew C, I didn't even want to h= ear about C++,=20 because I was satisfied with my knowledge of "pointer hacking". But I got= myself troubled=20 whenever I wanted to do string stuff: passing "strings" to functions, usi= ng malloc,=20 realloc, free, writing my own (rather awkward) string handler library too= k a lot of=20 productive time away from me. That's why I'm so against using strxxx, bec= ause I used them=20 extensively, and I only see how stupid I was, that I wasted so much time = on already=20 existant and well-written things. -- Greetings, Bal=E1zs |
|
From: Hielke <hie...@he...> - 2004-08-19 17:28:37
|
Hi all,
During the compilation of the following constructor I get a =
"'GetInstance' undeclared" error. However I included an headerfile which =
includes the appropriate header (windows.h) to use that function.
// topwindow1.cc
#include "windowwrappers.ih"
TopWindow::TopWindow(WindowClass &winClass, int resId)
:
Window(winClass)
{
d_style =3D WS_OVERLAPPEDWINDOW;
HINSTANCE hInst =3D GetInstance();
d_windowName =3D ResourceString(hInst, resId);
}
// windowwrappers.ih
#include "window.h"
#include "topwindow.h"
#include "../winexception.h"
#include "../resourcestring.h"
#include <windows.h>
I don't get why it won't compile. Especially because I use the very same =
function in a classmember of another class:
// setdefaults.cc
#include "classwrappers.ih"
void WindowClass::SetDefaults()
{
/* <some code> */
d_class.lpszClassName =3D GetName();=20
d_class.hInstance =3D GetInstance();=20
/* <some more code> */
}
// classwrappers.ih
#include "simplewindowclass.h"
#include "windowclass.h"
#include "topwindowclass.h"
#include "../resourcestring.h"
#include "../winexception.h"
#include <windows.h>
#include <string>
Note that I use a nonstandard extension for the headerfiles (following =
the "internal header" approach where classmembers include a common =
headerfile (which in turn includes the header containing =
classdeclaration)). This might be the cause of linker problems when =
using Dev-C++ but I already tried projectfile options. Currently the =
*.ih files are neither included during compilation nor during =
linkingprocess.
Thanks in advance. Hope somebody sees what I'm doing wrong.=20
Regards,
Hielke
zw...@he... |
|
From: Scott S. <age...@co...> - 2004-08-19 11:49:40
|
It's probably fussing that it has been declared twice, but I have no
idea how you can fix it. I reccomend just using different names rather
using global and local variations of a variable.
Bob Tentinger wrote:
> Line 14 C:\Developer\DEV-C++\C++ Dev\Program8.cpp use of `count' is
> ambiguous
>
> I am working through a beginners book on C++ and below is code that
> will not compile in DEV C++ 4.9 it gives me the error above. What’s
> wrong here?
>
> It will compile in Visual Studio 7.0.
>
> #include <iostream>
>
> using namespace std;
>
> void func1();
>
> void func2();
>
> int count; // this is a global variable
>
> int main()
>
> {
>
> int i; // this is a local variable
>
> for(i=0; i<10; i++) {
>
> count = i * 2;
>
> func1();
>
> }
>
> return 0;
>
> }
>
> void func1()
>
> {
>
> cout << "count: " << count; // access global count
>
> cout << '\n'; // output a newline
>
> func2();
>
> }
>
> void func2()
>
> {
>
> int count; // this is a local variable
>
> for(count=0; count<3; count++) cout << '.';
>
> }
>
|
|
From: Per W. <pw...@ia...> - 2004-08-19 11:08:43
|
Where have you found that function? It isn't a standard function netier for C/C++ nor Win32. Google gave only 3 hits - all three spelled "convertArgListToArgString". /Per W On Thu, 19 Aug 2004, Xavier wrote: > hi, > > would like to use the "ConvertArgListToArgString" > but seems to be missing into mingw > > any idea please. > > -- > Xavier > mailto: x.p...@fr... > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > 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 > |
|
From: Per W. <pw...@ia...> - 2004-08-19 11:01:28
|
Is getting a buffer overflow better, you ask. You see, I don't have any problem with buffer overflow and I don't worry about having counted the terminating zero. Last time I had a problem with zero termination was when using a broken strncmp() function written by InterNiche Technologies and used in an embedded project. When you have used the functions and know what they do you don't worry about it, just as you don't worry about NULL pointers or division-by-zero. All of them are easy to avoid. If we should talk about limitations in the strxx() functions it is substring and regexp manipulation or internationalization. Since substring manipulation normally requires string copying I can understand why the c library didn't supply so much support. Anyway, where I have found weeknesses in the standard library, I have added my own functions, so I don't think much about that either. Just doing cin >> name assumes that the input file is nice. You don't get buffer overflow in the string but you can still get memory overflow, i.e. failed memory allocation - or a very slow and swapping machine. If an attacker may supply his own file he can do a DOS-attack on the machine. Of course I use the string type in my C++ applications, but I normally don't limit myself to _only_ the string type. The power of the pointer types in C/C++ is one of the reasons why C/C++ have been such large languages. /Per W On Thu, 19 Aug 2004, OROSZI Bal=E1zs wrote: > Per Westermark wrote: > > Using C for string manipulation isn't dangerous unless you don't know w= hat > > to do. Same thing with using a hammer. Don't forget that the majority o= f > > all operating systems in existence uses C with great success. > > > > file >> first_name > > > > still gives you the possibility of loading a multi-megabyte text string= , > > possibly exhausting the available memory. > > Is getting a buffer overflow better? > > IMO C string manipulation is very awkward, and hard to use. You always ha= ve to worry about > things like: > "Now have I counted that \0 terminating character or not?" > and others. > > Why bother with low-level, error prone functions, when C++ introduced the= string class to > address these problems? > > -- > Greetings, > Bal=E1zs > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > 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 > |
|
From: <tm...@za...> - 2004-08-19 10:54:47
|
Hi! My name is Tamas from Hungary. I've just finished to download the program Dev-C++ 4.9.9.0 because I've been looking for a greet and efficient C++ developer. I've just only a big problem for the application: when I'm working width the editor cannot use ";" characters all of the editor window so it is unconfortable to use the application. If my character set is EN not problem but my default character set is HU (hungarian) and the character ";" I can use ALTGR+"," all aplication of my windows. It is my question: How can I configure or set my IDE for using above character? I need it. Many thanks for Your help. Best regards Tamas Molnar |
|
From: Xavier <x.p...@fr...> - 2004-08-19 07:31:32
|
hi, would like to use the "ConvertArgListToArgString" but seems to be missing into mingw any idea please. -- Xavier mailto: x.p...@fr... |
|
From: Daniel K. O. <dan...@ya...> - 2004-08-19 01:49:15
|
wor...@so... wrote:
>I have looked into the getline(string, max, delimiter) function but it needs char[]'s.
>Since I don't know the length of the string that I need can someone recommend
>an existing different class function or something?
>
>
You can use the getline() template, like this:
ifstream the_file(...);
string the_line;
...
while (getline(the_file, the_line))
do something;
Daniel K. O.
|
|
From: <or...@vp...> - 2004-08-19 00:51:10
|
Per Westermark wrote: > Using C for string manipulation isn't dangerous unless you don't know w= hat > to do. Same thing with using a hammer. Don't forget that the majority o= f > all operating systems in existence uses C with great success. >=20 > file >> first_name >=20 > still gives you the possibility of loading a multi-megabyte text string= , > possibly exhausting the available memory. Is getting a buffer overflow better? IMO C string manipulation is very awkward, and hard to use. You always ha= ve to worry about=20 things like: "Now have I counted that \0 terminating character or not?" and others. Why bother with low-level, error prone functions, when C++ introduced the= string class to=20 address these problems? -- Greetings, Bal=E1zs |
|
From: Noorez K. <coo...@ho...> - 2004-08-18 23:26:26
|
I book that I read gave me information on sending information to a printer, but it only gave me the file names for parallel and serial ports. My printer uses a USB connection. What are the file names for those? _________________________________________________________________ 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: Bob T. <rte...@am...> - 2004-08-18 23:03:42
|
Line 14 C:\Developer\DEV-C++\C++ Dev\Program8.cpp use of `count' is
ambiguous
I am working through a beginners book on C++ and below is code that will =
not
compile in DEV C++ 4.9 it gives me the error above. What's wrong here?
It will compile in Visual Studio 7.0.
=20
#include <iostream>
using namespace std;
=20
void func1();
void func2();
=20
int count; // this is a global variable
=20
int main()
=20
{
int i; // this is a local variable
for(i=3D0; i<10; i++) {
count =3D i * 2;
func1();
}
return 0;
}
=20
void func1()
{
cout << "count: " << count; // access global count
cout << '\n'; // output a newline
func2();
}
=20
void func2()
{
int count; // this is a local variable
for(count=3D0; count<3; count++) cout << '.';
}
|
|
From: Alexsandro M. <ale...@ho...> - 2004-08-18 20:31:34
|
Hi, people? How do I use a .dll created in Delphi in a command line in C??? Please!!!!! Thanks, Alex. _________________________________________________________________ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com |
|
From: Per W. <pw...@ia...> - 2004-08-18 19:50:30
|
int c = 'A';
if (c == 65) {
printf("Yes, it was an 'A'\n");
}
Characters and integers are intermixable in C. Just note that you must use
== to compare, since = is an assignment.
/Per W
On Wed, 18 Aug 2004, Alexsandro Meireles wrote:
> Hi, people!
>
> I need to use something like this:
>
> if(ascii = 62)
> {
> printf("esta funcionando");
> }
>
> Is there a function for that???
>
> Thanks!!!
>
> _________________________________________________________________
> MSN Messenger: converse com os seus amigos online.
> http://messenger.msn.com.br
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> 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
>
|
|
From: Alexsandro M. <ale...@ho...> - 2004-08-18 19:29:35
|
Hi, people!
I need to use something like this:
if(ascii = 62)
{
printf("esta funcionando");
}
Is there a function for that???
Thanks!!!
_________________________________________________________________
MSN Messenger: converse com os seus amigos online.
http://messenger.msn.com.br
|
|
From: xavier <x.p...@fr...> - 2004-08-18 18:24:59
|
good Per !
The dev-cpp community will appreciate your example, sure ..
=20
I know it could be a stupid question.
But those like me are used to use the usual "main(argc, argv)" to pass=20
arguments.
And with WinMain (almost it is a windows implementation) it is not so=20
evident for using arguments.
1- LPWSTR* Args; (in case of winmain)
and
2- char *argv[]; (in usual way)
How do you convert "Args" to "char *argv[]" next ?
for doing a MessageBox() for example.
Xavier
Per Westermark a =E9crit :
>Why do you assume that an old mail from 2002 should get more answers? If=
a
>mail isn't answered within a couple of days it is forgotten!
>
>KOWSTR CommandLine =3D L"A command line to process 1 2 3 4";
>LPWSTR* Args;
>int NumArgs;
>
>Args =3D CommandLineToArgW(CommandLine,&NumArgs);
>if (p) {
> for (int i =3D 0; i < NumArgs; i++)
> std::cout << Args[i];
>}
>
>There is nothing magic with the function. It just handles a wide-charact=
er
>text line and split it into individual parameters identical to the input
>to wmain of a unicode application.
>
>/Per W
>
>On Wed, 18 Aug 2004, Xavier wrote:
>
> =20
>
>>Email Archive: dev-cpp-users (read-only)
>>
>>From: <abresan@gm...>
>>how do I use the "CommandLineToArgvW()" Funktion
>>2002-04-20 13:41
>>
>>
>>
>>
>> can anyone give an example
>>
>> thanks
>>
>>still no examples !!! ??? (since 2002)
>>
>>
>>
>>
>>-------------------------------------------------------
>>SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
>>100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
>>Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
>>http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
>>_______________________________________________
>>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
>
|
|
From: <wor...@so...> - 2004-08-18 18:12:26
|
Hi all,
Thank you in advance for any help you can offer.
If I have a class named employees, and each employee has a:
string first_name, last_name;
int age;
then I make a vector of employees objects:
vector <employees> workers(10)
What is the syntax for displaying the 3rd workers objects last_name?
//This didn't work for me:
cout << workers[3].last_name << endl;
// I tried an iterator like this, but it didn't work either:
vector <employees> ::iterator ptr;
for(ptr = workers.begin(); ptr != workers.end(); ptr++)
{
cout << ptr.last_name << endl;
}
/end
Best regards,
Dane
|
|
From: Per W. <pw...@ia...> - 2004-08-18 16:25:42
|
Why do you assume that an old mail from 2002 should get more answers? If a
mail isn't answered within a couple of days it is forgotten!
KOWSTR CommandLine = L"A command line to process 1 2 3 4";
LPWSTR* Args;
int NumArgs;
Args = CommandLineToArgW(CommandLine,&NumArgs);
if (p) {
for (int i = 0; i < NumArgs; i++)
std::cout << Args[i];
}
There is nothing magic with the function. It just handles a wide-character
text line and split it into individual parameters identical to the input
to wmain of a unicode application.
/Per W
On Wed, 18 Aug 2004, Xavier wrote:
> Email Archive: dev-cpp-users (read-only)
>
> From: <abresan@gm...>
> how do I use the "CommandLineToArgvW()" Funktion
> 2002-04-20 13:41
>
>
>
>
> can anyone give an example
>
> thanks
>
> still no examples !!! ??? (since 2002)
>
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> 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
>
|
|
From: Xavier <x.p...@fr...> - 2004-08-18 14:52:46
|
Email Archive: dev-cpp-users (read-only) From: <abresan@gm...> how do I use the "CommandLineToArgvW()" Funktion 2002-04-20 13:41 can anyone give an example thanks still no examples !!! ??? (since 2002) |