dev-cpp-users Mailing List for Dev-C++ (Page 460)
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: Ioannis V. <no...@ho...> - 2003-01-08 16:34:46
|
-------Original Message-------=0D
=0D
From: Matthews=0D
Date: =D4=E5=F4=DC=F1=F4=E7, 8 =C9=E1=ED=EF=F5=DC=F1=E9=EF=F2 2003 3:12:2=
2 =EC=EC=0D
To: dev...@li...=0D
Subject: [Dev-C++] C++ compiling problems=0D
=0D
I've been trying to teach myself c++ recently, so I started out with this=
=0D
basic program.=0D
=0D
#include <iostream>=0D
#include <cstdlib>=0D
=0D
// for getchar()=0D
#include <cstdio>=0D
=0D
=0D
=0D
int main()=0D
{=0D
using namespace std;=0D
cout << "Hello.\n";=0D
cout << "Press ENTER to continue.";=0D
getchar();=0D
return 0;=0D
}=0D
=0D
=0D
=0D
Ioannis Vranos=0D
=0D
* Programming pages: http://www.noicys.freeurl.com=0D
* Alternative URL: http://run.to/noicys=20
|
|
From: <or...@vp...> - 2003-01-08 15:33:12
|
Hello va13ak!
> I have a little problem with compiling project using Windows95 Shell
> and COM. Does anybody know how to compile, for example, next example ?
First, I want to tell you, that I have absolutely NO C++ experience, and I don't
know ANYTHING about C++ (yet :), although I have been programming in C for quite
a while now, and I know a lot in it.
I hope you want to compile it with gcc (from Dev-Cpp) not from MSVC. So first
you need to import the treesize.dsp. It was done correctly with Dev 4.9.6.8.
Warning:
You should know, that your program is obsolete. It uses deprecated C++ headers
(iomanip.h, etc.). You should update your files, although it still works.
Here are the corrections that I have made, regarding the errors, that gcc 3.2
reported to me:
1. In file main.cpp:
At line 9 write this:
void NewHandler ()
{
throw WinException ( "Out of memory" );
}
// Instead of:
// int NewHandler (size_t size)
// {
// throw WinException ( "Out of memory" );
// return 0;
// }
At line 58 write this:
set_new_handler (&NewHandler);
// Instead of:
// _set_new_handler (&NewHandler);
2. In file controller.h:
At line 8 write this:
#include <strstream.h>
// Instead of:
//#include <strstrea.h>
//Note: THIS header is also deprecated
After these corrections click compile in Dev :)
I hope I could help.
--
Greetings,
Balázs
|
|
From: <or...@vp...> - 2003-01-08 14:59:36
|
Hello Matthews!
> I've been trying to teach myself c++ recently, so I started out with this
> basic program.
>
> #include <iostream>
> #include <cstdlib>
>
> int main()
> {
> using namespace std;
> cout << "Hello.\n";
> cout << "Press ENTER to continue.";
> getchar();
> return 0;
> }
The above program compiles perfectly from Dev-C++ (4.9.6.8), and even from a
command prompt. I have MinGW (gcc 3.2) separately installed. The command is:
g++.exe code.cpp -o code.exe
I think there may some installation/corruption problem with your gcc. If you
could post the errors, I would be able to help you more.
--
Greetings,
Balázs
U.I.: Üdv Czinege Tamás :)
|
|
From: Ken B. <ke...@al...> - 2003-01-08 13:59:53
|
-----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Rem...@ao... Sent: Tuesday, January 07, 2003 11:23 PM To: dev...@li... Subject: [Dev-C++] New to C++ Hey everyone, my name is Remy and I am new to C++. I am trying to learn as much as I can on my own but I know I will have a lot of questions so I hope everyone will bear with me and be patient with me. Thanks ahead of time for you patience. Peace , Remy Welcome. A couple of links you might find helpful: http://www.cplusplus.com/doc/tutorial/ and for cross platform GUI programming check out http://www.codelearn.com/cpp/icpp_wx1.html. BTW, please post in plain text. Ken Bradford Alpha II Service, Inc. (614)868-5033 |
|
From: Matthews <dem...@uw...> - 2003-01-08 13:11:07
|
I've been trying to teach myself c++ recently, so I started out with this
basic program.
#include <iostream>
#include <cstdlib>
int main()
{
using namespace std;
cout << "Hello.\n";
cout << "Press ENTER to continue.";
getchar();
return 0;
}
I attempted to compile this in Dev-C++ 4.9.7.0, which I downloaded with
gcc3.2 packaged along with it. 172 errors are given, which all seem to be
based off of a missing "c++config.h" which is included from iostream. So,
I try to find the header file. The one I get is faulty, so I abandon it.
Reinstalling doesn't put it in, I tried twice. In a last-ditch effort, I
reinstall Dev-C++ 4.9.5.0 which I downloaded packaged with gcc2.89 (or
whatever the one before 3.2 was.) Compiling the same program (except with
changing the <iostream> to <iostream.h> and also including <stdio.h>) works
perfectly. It appears as though I'll be doing my c++ coding in 4.9.5.0 for
now, but can anyone help me figure out the reason for this?
|
|
From: Marc H. <ma...@e-...> - 2003-01-08 13:03:56
|
Hi, There is a OleDB datasource provider for Excel. The trick is in the connection string which should be something like: "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\agasp\samp\excel.xls;Extended Properties=Excel 8.0;" where the Extended properties give the version of Excel to use. You can use ADO as well (as ADO simply wraps OleDB). You'll probably want to find some kind of class library to do this. I know you can also use ODBC to connect to Excel spreadsheets, but I'm not sure how. Some information here: Using ASP to connect to Excel: http://www.aspalliance.com/wisemonk/view.aspx?id=AD062502 A ADO wrapper for use with VC: http://www.codeproject.com/database/adowraps.asp#xx356392xx Some stuff on using ADO from VC: http://www.mindcracker.com/mindcracker/c_cafe/ado/ado3.asp http://www.mindcracker.com/mindcracker/c_cafe/ado/ado4.asp http://www.mindcracker.com/mindcracker/c_cafe/ado/ado7.asp Another ADO wrapper class: This one looks like it might be the easiest to adapt. http://www.codeproject.com/database/aadoclass.asp#xx344668xx I hope this helps, _____________________________ Marc Heiligers -----Original Message----- From: Louis Godio [mailto:lg...@ya...] Sent: 08 January 2003 12:13 AM To: DEVCppUsers Subject: [Dev-C++] EXCEL files as a datasource I trying to use DEV C++ (and the built-in compiler of course) to access MS EXCEL files. The basic idea is to use an EXCEL file as a data source for my C++ code. Any one have any ideas or experience on this matter ? Is it an easy or complex thing to do ? Any help would be appreciated __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
|
From: Per W. <pw...@ia...> - 2003-01-08 11:54:14
|
Select Tools/Code Generation Uncheck checkbox 'Use fast but imperfect dependancy generation' If this doesn't solve your problem, are you running on a mounted file system, i.e. are the source files stored on a file server. In that case, you might get synchronization problems between the clock on the computer and the clock on the file server. /Per W On Wed, 8 Jan 2003, Aimee Smith wrote: > Greetings; > I was working with my students last night on Dev-C++. We encountered a > few problems -- the most perplexing one being that when they altered the > code and then rebuilt the prog. then executed it, the previous program was > run and had not rebuilt/complied the altered code. > If we copied and pasted the program into a new environment then it worked > just fine. > This was not a consitent error, just an infrequent one but I wouldn't have > thought that it would have happened at all. > Is there something that I can do to sort this out or did I not tell them > something that I needed to? > thanks, > aimee > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.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: Aimee S. <Ai...@ca...> - 2003-01-08 11:11:06
|
Greetings; I was working with my students last night on Dev-C++. We encountered a few problems -- the most perplexing one being that when they altered the code and then rebuilt the prog. then executed it, the previous program was run and had not rebuilt/complied the altered code. If we copied and pasted the program into a new environment then it worked just fine. This was not a consitent error, just an infrequent one but I wouldn't have thought that it would have happened at all. Is there something that I can do to sort this out or did I not tell them something that I needed to? thanks, aimee |
|
From: Teodorescu C. <te...@xt...> - 2003-01-08 10:58:39
|
Louis Godio wrote:
>I trying to use DEV C++ (and the built-in compiler of course) to access
>MS EXCEL files. The basic idea is to use an EXCEL file as a data source
>for my C++ code.
>
>Any one have any ideas or experience on this matter ? Is it an easy or
>complex thing to do ?
>
>
Ok 2 options :
1 : fun with exel com
2:(sugested) ODBC Driver for excel (simple and easy to use) ; also
you can access it via ado,oledb ...
Here is a link for VB but you'll find some tips forconnection string for
ado and a Q from microsoft ..
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20240822.html
Hope i helped you.
teo.
|
|
From: Jaap de W. <wo...@Ne...> - 2003-01-08 09:53:28
|
c++ is not c.
By defining CServer, you define a new object type.
Your compiler has to know from both implementation files how the class =
is
defined.
The usual way to do this is putting the class definition in a header =
file,
and include it in both implementation files eg:
MyClass.h:
class MyClass{
MyClass();
void anyFn();
...
};
MyClass.cpp:
#include "MyClass.h"
MyClass::MyClass()
{}
void MyClass::anyFn()
{}
main.cpp
#include "MyClass.h"
main()
{
MyClass myclass;
myclass.anyFn();
}
> -----Original Message-----
> From: Wobien [mailto:wo...@pl...]
> Sent: Tuesday, January 07, 2003 11:38 PM
> To: dev-cpp-users-list
> Subject: Re: [Dev-C++] using 2 .c files
>=20
>=20
>=20
> ----- Original Message -----
> From: "Steve Bertrand" <iac...@no...>
> To: <dev...@li...>
> Sent: Tuesday, January 07, 2003 7:55 PM
> Subject: [Dev-C++] using 2 .c files
>=20
>=20
> > Hi there, this is my first post, so please forgive me if my=20
> message is
> > out of context for this list.
> >
> > I am building an application in c++ on freebsd, and can't=20
> get 2 .c files
> > to merge properly. When I compile, I get 'undefined CServer' when =
I
> > compile. I tried defining the 'server' variable with=20
> extern, but I don't
> > know if I was using extern in the proper context. For=20
> instance, here are
> > snippets of the 2 files:
> >
> Each file you make must have the definitions of all the=20
> objects you use in
> it.
> Your file main.cc uses the class CServer, but it does not=20
> have a definition
> of it.
> You can put the declaration of class CServer in a header=20
> file and include
> that header file in server.cc and in main.cc
>=20
> > -----snip server.cc--------
> >
> > #include "myheader.h"
> >
> > class CServer {
> > int var1;
> > int var2;
> > string var3;
> > string var4;
> >
> > void addServer(int, string, string);
> > }
> >
> > void CServer::addServer(int a, string b, string c) {
> >
> > var3 =3D c;
> > var4 =3D b;
> > var3 =3D a;
> > }
> >
> > --------end snip server.c-----------
> >
> > ------snip main.cc-----------
> >
> > void main() {
> >
> > CServer *server; // The problem is here.
> > server =3D new CServer;
> >
> > server.addServer(feedvar, feedvar, feedvar);
> >
> > /* Do some other stuff */
> >
> > ----------end snip main.cc---------
> >
> I do=B4nt understand exactly what your second problem is, but I=20
> think it might
> be that
> server.cc does not have the object db_connection you define in =
main.cc
> You can try to add in server.cc:
>=20
> extern Connection db_connection;
>=20
> before you work with the connection.
>=20
> Wobien
>=20
> > Another problem: In this same program, I would like main.cc=20
> to connect
> > to a mysql database early in main(), then allow the=20
> server.cc file (more
> > specifically, the member functions of CServer) to=20
> read/write to the db.
> > I know the mysql syntax is correct, as when I put all of=20
> the code in
> > one file, everything works ok. Is this another extern=20
> problem? What
> > part of the mysql code to I have to initialize with extern=20
> and where?
> > Example:
> >
> > main.c------
> >
> > // all of the mysql db stuff defined and included in 'myheader.h'
> > #include "myheader.h"
> >
> > main() {
> >
> > Connection db_connection;
> > db_connection.connect(//send db info here)
> >
> > end snip main.c----------
> >
> > Eventually, the server.c file opens up a table, then does=20
> it's thing,
> > but when compiling, it seems as though the database=20
> connection doesn't
> > even exist (from the point of view of server.c).
> >
> > What is the easiest way to link these 2 files so they merge=20
> and appear
> > as one? Or is that the purpose of extern? I simply want=20
> to divide up
> > my code so I can have 'modules' written in each .c file to make it
> > easier to maintain.
> >
> > Thanks for any help in advance.
> >
> > Steve Bertrand
> >
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.NET email is sponsored by:
> > SourceForge Enterprise Edition + IBM + LinuxWorld =3D Something 2 =
See!
> > http://www.vasoftware.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
>=20
>=20
>=20
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld =3D Something 2 =
See!
> http://www.vasoftware.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
>=20
|
|
From: Per W. <pw...@ia...> - 2003-01-08 08:04:39
|
That's the 'talk with a running Excel application' alternative below, but it's still a lot of work. /Per W On Tue, 7 Jan 2003, Charles Kerr wrote: > Why wouldnt' one talk to excel using COM ? > > > ----- Original Message ----- > From: "Per Westermark" <pw...@ia...> > To: "Louis Godio" <lg...@ya...> > Cc: "DEVCppUsers" <dev...@li...> > Sent: Tuesday, January 07, 2003 6:50 PM > Subject: Re: [Dev-C++] EXCEL files as a datasource > > > > Bad idea. Definitely complex. > > > > If you really, really, really have to, you can communicate with a running > > Excel application and send/receive data, but it isn't easy. And trying to > > read and/or write *.xls files are not something you want. > > > > If you need to share data between Excel and your program, it's easier to > > let Excel access the data from an alternative source. > > > > Export/import of comma-separated text files, storing data in an Access > > database etc. > > > > /Per W > > > > On Tue, 7 Jan 2003, Louis Godio wrote: > > > > > > > > I trying to use DEV C++ (and the built-in compiler of course) to access > > > MS EXCEL files. The basic idea is to use an EXCEL file as a data > source > > > for my C++ code. > > > > > > Any one have any ideas or experience on this matter ? Is it an easy or > > > complex thing to do ? > > > > > > Any help would be appreciated > > > > > > > > > __________________________________________________ > > > Do you Yahoo!? > > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > > > http://mailplus.yahoo.com > > > > > > > > > ------------------------------------------------------- > > > This SF.NET email is sponsored by: > > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > > http://www.vasoftware.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 > > > > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.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: <Rem...@ao...> - 2003-01-08 04:23:09
|
Hey everyone, my name is Remy and I am new to C++. I am trying to learn as much as I can on my own but I know I will have a lot of questions so I hope everyone will bear with me and be patient with me. Thanks ahead of time for you patience. Peace , Remy |
|
From: Charles K. <ch...@ke...> - 2003-01-08 02:16:55
|
Why wouldnt' one talk to excel using COM ? ----- Original Message ----- From: "Per Westermark" <pw...@ia...> To: "Louis Godio" <lg...@ya...> Cc: "DEVCppUsers" <dev...@li...> Sent: Tuesday, January 07, 2003 6:50 PM Subject: Re: [Dev-C++] EXCEL files as a datasource > Bad idea. Definitely complex. > > If you really, really, really have to, you can communicate with a running > Excel application and send/receive data, but it isn't easy. And trying to > read and/or write *.xls files are not something you want. > > If you need to share data between Excel and your program, it's easier to > let Excel access the data from an alternative source. > > Export/import of comma-separated text files, storing data in an Access > database etc. > > /Per W > > On Tue, 7 Jan 2003, Louis Godio wrote: > > > > > I trying to use DEV C++ (and the built-in compiler of course) to access > > MS EXCEL files. The basic idea is to use an EXCEL file as a data source > > for my C++ code. > > > > Any one have any ideas or experience on this matter ? Is it an easy or > > complex thing to do ? > > > > Any help would be appreciated > > > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > > http://mailplus.yahoo.com > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.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 > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.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: Goran K. <go...@vo...> - 2003-01-08 00:20:42
|
this one missed the list,
sorry
----- Original Message -----
From: Goran Kavrecic <go...@vo...>
To: Steve Bertrand <iac...@no...>
Sent: Tuesday, January 07, 2003 9:41 PM
Subject: Re: [Dev-C++] using 2 .c files
> Maybe I made a fast judgement, but I think:
> the problem is "there" because the main.c hasn't "seen" the decalaration
of
> CServer
>
> So, I would:
> - move the class definition to myheader.h
> > class CServer {
> > int var1;
> > int var2;
> > string var3;
> > string var4;
> >
> > void addServer(int, string, string);
> > }
>
> - define the extern in server.c or even in .h
> > extern CServer *server; // The problem should be gone
>
> Regards,
> Goran
>
> ----- Original Message -----
> From: Steve Bertrand <iac...@no...>
> To: <dev...@li...>
> Sent: Tuesday, January 07, 2003 7:55 PM
> Subject: [Dev-C++] using 2 .c files
>
>
> > Hi there, this is my first post, so please forgive me if my message is
> > out of context for this list.
> >
> > I am building an application in c++ on freebsd, and can't get 2 .c files
> > to merge properly. When I compile, I get 'undefined CServer' when I
> > compile. I tried defining the 'server' variable with extern, but I don't
> > know if I was using extern in the proper context. For instance, here are
> > snippets of the 2 files:
> >
> > -----snip server.cc--------
> >
> > #include "myheader.h"
> >
> > class CServer {
> > int var1;
> > int var2;
> > string var3;
> > string var4;
> >
> > void addServer(int, string, string);
> > }
> >
> > void CServer::addServer(int a, string b, string c) {
> >
> > var3 = c;
> > var4 = b;
> > var3 = a;
> > }
> >
> > --------end snip server.c-----------
> >
> > ------snip main.cc-----------
> >
> > void main() {
> >
> > CServer *server; // The problem is here.
> > server = new CServer;
> >
> > server.addServer(feedvar, feedvar, feedvar);
> >
> > /* Do some other stuff */
> >
> > ----------end snip main.cc---------
> >
> > Another problem: In this same program, I would like main.cc to connect
> > to a mysql database early in main(), then allow the server.cc file (more
> > specifically, the member functions of CServer) to read/write to the db.
> > I know the mysql syntax is correct, as when I put all of the code in
> > one file, everything works ok. Is this another extern problem? What
> > part of the mysql code to I have to initialize with extern and where?
> > Example:
> >
> > main.c------
> >
> > // all of the mysql db stuff defined and included in 'myheader.h'
> > #include "myheader.h"
> >
> > main() {
> >
> > Connection db_connection;
> > db_connection.connect(//send db info here)
> >
> > end snip main.c----------
> >
> > Eventually, the server.c file opens up a table, then does it's thing,
> > but when compiling, it seems as though the database connection doesn't
> > even exist (from the point of view of server.c).
> >
> > What is the easiest way to link these 2 files so they merge and appear
> > as one? Or is that the purpose of extern? I simply want to divide up
> > my code so I can have 'modules' written in each .c file to make it
> > easier to maintain.
> >
> > Thanks for any help in advance.
> >
> > Steve Bertrand
> >
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.NET email is sponsored by:
> > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> > http://www.vasoftware.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-01-07 23:51:22
|
Bad idea. Definitely complex. If you really, really, really have to, you can communicate with a running Excel application and send/receive data, but it isn't easy. And trying to read and/or write *.xls files are not something you want. If you need to share data between Excel and your program, it's easier to let Excel access the data from an alternative source. Export/import of comma-separated text files, storing data in an Access database etc. /Per W On Tue, 7 Jan 2003, Louis Godio wrote: > > I trying to use DEV C++ (and the built-in compiler of course) to access > MS EXCEL files. The basic idea is to use an EXCEL file as a data source > for my C++ code. > > Any one have any ideas or experience on this matter ? Is it an easy or > complex thing to do ? > > Any help would be appreciated > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.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: va13ak <va...@uk...> - 2003-01-07 23:15:47
|
Hi, all !
I have a little problem with compiling project using Windows95 Shell
and COM. Does anybody know how to compile, for example, next example ?
(see attachment)
________________________________________ mailto:va...@uk... _______ |
|
From: Matthews <dem...@uw...> - 2003-01-07 23:01:39
|
Whenever I try to run vUpdate it always crashes while downloading a package. I've only had one package get through, which was Akrip.devpak. I'm not asking for help with vUpdate, unless you want to try to figure out my problem. Is there another place I can download the packages from, without vUpdate? (eg. through Internet Explorer) |
|
From: Wobien <wo...@pl...> - 2003-01-07 22:46:42
|
----- Original Message -----
From: "Steve Bertrand" <iac...@no...>
To: <dev...@li...>
Sent: Tuesday, January 07, 2003 7:55 PM
Subject: [Dev-C++] using 2 .c files
> Hi there, this is my first post, so please forgive me if my message is
> out of context for this list.
>
> I am building an application in c++ on freebsd, and can't get 2 .c files
> to merge properly. When I compile, I get 'undefined CServer' when I
> compile. I tried defining the 'server' variable with extern, but I don't
> know if I was using extern in the proper context. For instance, here are
> snippets of the 2 files:
>
Each file you make must have the definitions of all the objects you use in
it.
Your file main.cc uses the class CServer, but it does not have a definition
of it.
You can put the declaration of class CServer in a header file and include
that header file in server.cc and in main.cc
> -----snip server.cc--------
>
> #include "myheader.h"
>
> class CServer {
> int var1;
> int var2;
> string var3;
> string var4;
>
> void addServer(int, string, string);
> }
>
> void CServer::addServer(int a, string b, string c) {
>
> var3 = c;
> var4 = b;
> var3 = a;
> }
>
> --------end snip server.c-----------
>
> ------snip main.cc-----------
>
> void main() {
>
> CServer *server; // The problem is here.
> server = new CServer;
>
> server.addServer(feedvar, feedvar, feedvar);
>
> /* Do some other stuff */
>
> ----------end snip main.cc---------
>
I do´nt understand exactly what your second problem is, but I think it might
be that
server.cc does not have the object db_connection you define in main.cc
You can try to add in server.cc:
extern Connection db_connection;
before you work with the connection.
Wobien
> Another problem: In this same program, I would like main.cc to connect
> to a mysql database early in main(), then allow the server.cc file (more
> specifically, the member functions of CServer) to read/write to the db.
> I know the mysql syntax is correct, as when I put all of the code in
> one file, everything works ok. Is this another extern problem? What
> part of the mysql code to I have to initialize with extern and where?
> Example:
>
> main.c------
>
> // all of the mysql db stuff defined and included in 'myheader.h'
> #include "myheader.h"
>
> main() {
>
> Connection db_connection;
> db_connection.connect(//send db info here)
>
> end snip main.c----------
>
> Eventually, the server.c file opens up a table, then does it's thing,
> but when compiling, it seems as though the database connection doesn't
> even exist (from the point of view of server.c).
>
> What is the easiest way to link these 2 files so they merge and appear
> as one? Or is that the purpose of extern? I simply want to divide up
> my code so I can have 'modules' written in each .c file to make it
> easier to maintain.
>
> Thanks for any help in advance.
>
> Steve Bertrand
>
>
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.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: Louis G. <lg...@ya...> - 2003-01-07 22:12:33
|
I trying to use DEV C++ (and the built-in compiler of course) to access MS EXCEL files. The basic idea is to use an EXCEL file as a data source for my C++ code. Any one have any ideas or experience on this matter ? Is it an easy or complex thing to do ? Any help would be appreciated __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
|
From: Steve B. <iac...@no...> - 2003-01-07 18:56:50
|
Hi there, this is my first post, so please forgive me if my message is
out of context for this list.
I am building an application in c++ on freebsd, and can't get 2 .c files
to merge properly. When I compile, I get 'undefined CServer' when I
compile. I tried defining the 'server' variable with extern, but I don't
know if I was using extern in the proper context. For instance, here are
snippets of the 2 files:
-----snip server.cc--------
#include "myheader.h"
class CServer {
int var1;
int var2;
string var3;
string var4;
void addServer(int, string, string);
}
void CServer::addServer(int a, string b, string c) {
var3 = c;
var4 = b;
var3 = a;
}
--------end snip server.c-----------
------snip main.cc-----------
void main() {
CServer *server; // The problem is here.
server = new CServer;
server.addServer(feedvar, feedvar, feedvar);
/* Do some other stuff */
----------end snip main.cc---------
Another problem: In this same program, I would like main.cc to connect
to a mysql database early in main(), then allow the server.cc file (more
specifically, the member functions of CServer) to read/write to the db.
I know the mysql syntax is correct, as when I put all of the code in
one file, everything works ok. Is this another extern problem? What
part of the mysql code to I have to initialize with extern and where?
Example:
main.c------
// all of the mysql db stuff defined and included in 'myheader.h'
#include "myheader.h"
main() {
Connection db_connection;
db_connection.connect(//send db info here)
end snip main.c----------
Eventually, the server.c file opens up a table, then does it's thing,
but when compiling, it seems as though the database connection doesn't
even exist (from the point of view of server.c).
What is the easiest way to link these 2 files so they merge and appear
as one? Or is that the purpose of extern? I simply want to divide up
my code so I can have 'modules' written in each .c file to make it
easier to maintain.
Thanks for any help in advance.
Steve Bertrand
|
|
From: Ricardo R. <ri...@po...> - 2003-01-07 18:50:06
|
if I want to write a text line in a file I can do that in the way: ********************* FILE *pf ; ...... fprintf(pf, "hello baby"); .............. ********************** but if I want to include the text file 'hello.txt' in the file pointed by 'pf', how can I do that ?. thanks in advance, Ricardo. |
|
From: Tamas C. <ma...@ma...> - 2003-01-07 15:05:29
|
John Hall wrote: > ive tried compling opengl code in dev c++ and you just get loads of > syntax errors and linker errors. the code is garunteed to be correct. do > i need to set up gl library files in the compiler options? > you should add to the linker settings in the project options dialog -lglu32 -lopengl32 (and if you use glut:) -lglut32 if you use glut try to compile it as win32 console, else as a win32 GUI application check the header #includes at the top of program because it is possible that there are missing the "gl/" pathes : #include <gl/gl.h> correctly, not <gl.h> (this applies for glu.h and glut.h too) Tamas Czinege |
|
From: Per W. <pw...@ia...> - 2003-01-07 14:21:39
|
No problems, since sharing is the actual goal of mailing lists :-) /Per W On Tue, 7 Jan 2003, Marc Heiligers wrote: > Hi Per, > > Once again you have helped me immensely. DebugView has been successfully > integrated into my programming arsenal, and it is exactly what I needed. > It's a pity that Dev-C++ does not have a DebugView like feature built in, > but such is life. Perhaps in the future. > > _____________________________ > Marc Heiligers > > > -----Original Message----- > From: Per Westermark [mailto:pw...@ia...] > Sent: 07 January 2003 03:23 PM > To: Marc Heiligers > Cc: dev-cpp-users-list > Subject: Re: [Dev-C++] debugging macros > > > Create your own TRACE #define that calls an own-made function using > sprintf() to a buffer, and then emitting the buffer to the windows function > OutputDebugString(). > > That way, you may use any windows debugger or debug tracer program and view > the debug output while running your program. > > If you go to www.sysinternals.com, you can download a nice program > DebugView, that will connect to the windows debug stream. > > /Per W > > On Tue, 7 Jan 2003, Marc Heiligers wrote: > > > Hi All, > > > > I'm having a little trouble debugging. What I'd like, is something > > like the > > VC++ TRACE macros (and maybe TRACE0, TRACE1, ...) to write to stderr, > > VC++ and > > then to be able to view that during execution. Unfortunately, although > > I've been programming for a long long time, I've never had a need for > > these goodies before, so I don't even know where to start. Perhaps > > someone could give me a bit of a pointer in the right direction, or a > > web tutorial, or something. > > > > Thanks, > > > > _____________________________ > > Marc Heiligers > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.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: Marc H. <ma...@e-...> - 2003-01-07 13:54:38
|
Hi Per, Once again you have helped me immensely. DebugView has been successfully integrated into my programming arsenal, and it is exactly what I needed. It's a pity that Dev-C++ does not have a DebugView like feature built in, but such is life. Perhaps in the future. _____________________________ Marc Heiligers -----Original Message----- From: Per Westermark [mailto:pw...@ia...] Sent: 07 January 2003 03:23 PM To: Marc Heiligers Cc: dev-cpp-users-list Subject: Re: [Dev-C++] debugging macros Create your own TRACE #define that calls an own-made function using sprintf() to a buffer, and then emitting the buffer to the windows function OutputDebugString(). That way, you may use any windows debugger or debug tracer program and view the debug output while running your program. If you go to www.sysinternals.com, you can download a nice program DebugView, that will connect to the windows debug stream. /Per W On Tue, 7 Jan 2003, Marc Heiligers wrote: > Hi All, > > I'm having a little trouble debugging. What I'd like, is something > like the > VC++ TRACE macros (and maybe TRACE0, TRACE1, ...) to write to stderr, > VC++ and > then to be able to view that during execution. Unfortunately, although > I've been programming for a long long time, I've never had a need for > these goodies before, so I don't even know where to start. Perhaps > someone could give me a bit of a pointer in the right direction, or a > web tutorial, or something. > > Thanks, > > _____________________________ > Marc Heiligers > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.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-01-07 13:24:00
|
Create your own TRACE #define that calls an own-made function using sprintf() to a buffer, and then emitting the buffer to the windows function OutputDebugString(). That way, you may use any windows debugger or debug tracer program and view the debug output while running your program. If you go to www.sysinternals.com, you can download a nice program DebugView, that will connect to the windows debug stream. /Per W On Tue, 7 Jan 2003, Marc Heiligers wrote: > Hi All, > > I'm having a little trouble debugging. What I'd like, is something like the > VC++ TRACE macros (and maybe TRACE0, TRACE1, ...) to write to stderr, and > then to be able to view that during execution. Unfortunately, although I've > been programming for a long long time, I've never had a need for these > goodies before, so I don't even know where to start. Perhaps someone could > give me a bit of a pointer in the right direction, or a web tutorial, or > something. > > Thanks, > > _____________________________ > Marc Heiligers > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.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 > |