dev-cpp-users Mailing List for Dev-C++ (Page 104)
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: Per W. <pw...@ia...> - 2005-10-12 22:34:13
|
It starts with an identifier. A in this case is a name - somewhere else that name 'A' is probably mapped to a number. It is possible to have resources with text names but it is _very_ seldom used because of all problems with tools etc... MOVEABLE means that on older platforms (Win16) the memory allocated for the icon may move around in the computer if Win3.1 needs to compact available memory. LOADONCALL means that all info in the resource file must not be loaded at the same time. It is enough for the OS to load the icon from the exe file when it is needed. DISCARDABLE means that if the computer have little memory, the memory allocated for the icon may be reclaimed. You may either run the application without an icon if out of resources, or it may be loaded again later. /Per W On Wed, 12 Oct 2005, Blagoja Gjakovski wrote: > Hind Fadel wrote: > > In the ressource file : > > 100 ICON DISCARDABLE "test.ico" > > > > And be sure that the icon file is in the same directory than the source > > file or change the path, for example "res//test.ico" if the icon is in > > the res directory. > > > > In the header file or the source file: > > #define ID_ICON 100 > > > > And in the source file : > > wincl.hIcon = LoadIcon (hThisInstance, MAKEINTRESOURCE(ID_ICON)); > > > > If you need more information about the syntax or the use of the win32 > > functions, use the win32 help, try for example this link to download it : > > dimcom.uqac.ca/~ecoete/ftp/mmedia/MSHelp/WIN32.HLP > > > > Good Luck > > It work, thanks for help. > > I have another question...can you explain syntax of line in > test_private.rc file? > A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "test.ico" > > Why it start with character "A" and in your example is number "100" ? > 100 ICON DISCARDABLE "test.ico" > > What is meaning of "MOVEABLE PURE LOADONCALL" ? > > Thanks again, > > Blagoja > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > 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: Hind F. <the...@ho...> - 2005-10-12 17:18:06
|
Any ressource used in a program need to be identified, so useally we use numbers to be sure that every ressource has a single identifier. I never used letters but its have the same role. Concerning the "MOVEABLE LOADONCALL", this attributes are ignored because they concern 16-bit Windows, for the meaning here u are, but as I told u, you can find this information in the win32 help (I just copy/paste them) LOADONCALL : the resource is loaded when called MOVEABLE : the resource can be moved if necessary in order to compact memory. Concerning the "PURE", I must confess that I don't know, I never use it and search to understand it but this attribute is ignored too :) Have good time :) >Date: Wed, 12 Oct 2005 18:44:55 +0200 > >Hind Fadel wrote: >>In the ressource file : >> 100 ICON DISCARDABLE "test.ico" >> >>And be sure that the icon file is in the same directory than the source >>file or change the path, for example "res//test.ico" if the icon is in the >>res directory. >> >>In the header file or the source file: >> #define ID_ICON 100 >> >>And in the source file : >> wincl.hIcon = LoadIcon (hThisInstance, MAKEINTRESOURCE(ID_ICON)); >> >>If you need more information about the syntax or the use of the win32 >>functions, use the win32 help, try for example this link to download it : >>dimcom.uqac.ca/~ecoete/ftp/mmedia/MSHelp/WIN32.HLP >> >>Good Luck > >It work, thanks for help. > >I have another question...can you explain syntax of line in test_private.rc >file? >A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "test.ico" > >Why it start with character "A" and in your example is number "100" ? >100 ICON DISCARDABLE "test.ico" > >What is meaning of "MOVEABLE PURE LOADONCALL" ? > >Thanks again, > >Blagoja > > _________________________________________________________________ MSN Hotmail : antivirus et antispam intégrés http://www.msn.fr/newhotmail/Default.asp?Ath=f |
|
From: Blagoja G. <bla...@gm...> - 2005-10-12 16:45:59
|
Hind Fadel wrote: > In the ressource file : > 100 ICON DISCARDABLE "test.ico" > > And be sure that the icon file is in the same directory than the source > file or change the path, for example "res//test.ico" if the icon is in > the res directory. > > In the header file or the source file: > #define ID_ICON 100 > > And in the source file : > wincl.hIcon = LoadIcon (hThisInstance, MAKEINTRESOURCE(ID_ICON)); > > If you need more information about the syntax or the use of the win32 > functions, use the win32 help, try for example this link to download it : > dimcom.uqac.ca/~ecoete/ftp/mmedia/MSHelp/WIN32.HLP > > Good Luck It work, thanks for help. I have another question...can you explain syntax of line in test_private.rc file? A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "test.ico" Why it start with character "A" and in your example is number "100" ? 100 ICON DISCARDABLE "test.ico" What is meaning of "MOVEABLE PURE LOADONCALL" ? Thanks again, Blagoja |
|
From: Hind F. <the...@ho...> - 2005-10-12 15:54:29
|
In the ressource file :
100 ICON DISCARDABLE "test.ico"
And be sure that the icon file is in the same directory than the source file
or change the path, for example "res//test.ico" if the icon is in the res
directory.
In the header file or the source file:
#define ID_ICON 100
And in the source file :
wincl.hIcon = LoadIcon (hThisInstance, MAKEINTRESOURCE(ID_ICON));
If you need more information about the syntax or the use of the win32
functions, use the win32 help, try for example this link to download it :
dimcom.uqac.ca/~ecoete/ftp/mmedia/MSHelp/WIN32.HLP
Good Luck
>Date: Wed, 12 Oct 2005 17:08:06 +0200
>
>Hi,
>I write simple aplication from templates and I want to insert icon (my.ico)
>into exe file like resource, and after that when I compile and run
>application see that icon in the list when click Alt+Tab and in the left
>side in the app titlebar.
>
>In test_private.rc file is only this line:
>
>A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "test.ico"
>
>Can somebody explain me syntax of this line or tell me URL on the net where
>can I find explanation of .rc file format, please?
>
>When I compile app only see test.exe with icon (test.ico) in the Windows
>Explorer and when I start exe default Windows icon IDI_APPLICATION is in
>Alt+Tab list.
>
>I know that I must change this lines in the main.c file:
> wincl.hIcon = LoadIcon(NULL, IDI_APPLICATION);
> wincl.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
>but I don't know how to use LoadIcon function. MSDN for LoadIcon have
>little info and don't help me.
>
>Can somebody write simple example for line in .rc file (how to insert
>"my.ico" to exe) and example line in main.c file (wincl.hIcon =
>LoadIcon(???, ???);) please?
>
>Thanks,
>
>Blagoja
_________________________________________________________________
MSN Messenger : discutez en direct avec vos amis !
http://www.msn.fr/msger/default.asp
|
|
From: Blagoja G. <bla...@gm...> - 2005-10-12 15:09:02
|
Hi,
I write simple aplication from templates and I want to insert icon
(my.ico) into exe file like resource, and after that when I compile and
run application see that icon in the list when click Alt+Tab and in the
left side in the app titlebar.
In test_private.rc file is only this line:
A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "test.ico"
Can somebody explain me syntax of this line or tell me URL on the net
where can I find explanation of .rc file format, please?
When I compile app only see test.exe with icon (test.ico) in the Windows
Explorer and when I start exe default Windows icon IDI_APPLICATION is in
Alt+Tab list.
I know that I must change this lines in the main.c file:
wincl.hIcon = LoadIcon(NULL, IDI_APPLICATION);
wincl.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
but I don't know how to use LoadIcon function. MSDN for LoadIcon have
little info and don't help me.
Can somebody write simple example for line in .rc file (how to insert
"my.ico" to exe) and example line in main.c file (wincl.hIcon =
LoadIcon(???, ???);) please?
Thanks,
Blagoja
|
|
From: Hind F. <the...@ho...> - 2005-10-12 11:22:05
|
Did you add the library in the linker (see project options)?
Do it and u will fix the problem.
Date: Wed, 12 Oct 2005 16:33:42 +1000
Hi,
I'm getting 18 errors like the following with DevC++
I use DevC/C++ without problem usually, but i get
these errors, as part of a 3D SDK....
Is it a Opensource OGL library issue, can it be fixed?
[Linker error] undefined reference to `glClearColor@16' [Linker
error] undefined reference to `glClear@4' [Linker error] undefined
reference to `glColor3f@12'
Cheers,
Scott.
_________________________________________________________________
MSN Hotmail : antivirus et antispam intégrés
http://www.msn.fr/newhotmail/Default.asp?Ath=f
|
|
From: Wolf P. <pe...@re...> - 2005-10-12 08:27:24
|
Hi, a have problems building log4cxx. I'm using Dev-C++ 4.9.9.2, apache ant 1.6.5 I think with the STL is something wrong for Windows, nevertheless I detected redefinitions in a ant-generated header private.h that leed to compiler warnings only for gcc. Can anybody help with log4cxx or suggest another logging framework? Thanks, Wolf Peuker |
|
From: Scott <fre...@ve...> - 2005-10-12 06:29:42
|
Hi, I'm getting 18 errors like the following with DevC++ I use DevC/C++ without problem usually, but i get these errors, as part of a 3D SDK.... Is it a Opensource OGL library issue, can it be fixed? [Linker error] undefined reference to `glClearColor@16' [Linker error] undefined reference to `glClear@4' [Linker error] undefined reference to `glColor3f@12' Cheers, Scott. |
|
From: Marcelo D. <mds...@ya...> - 2005-10-10 22:18:17
|
In Linux the link is ok, but in Dev-C++ (Windows) I have the error: cp.cpp: variable 'vtable for Gtk::TreeViewColumn' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details. This error ocorr to with the example of Gtkmm Tutorial book: http://www.gtkmm.org/docs/gtkmm-2.4/examples/book/treeview/list/ I'm using Dev-C++ 4.9.9.2_setup.exe, gtkmm-devel-2.6.2-1.exe, gtk-win32-devel-2.6.8-rc1.exe. I configured the Project Options for Compiler and Linker using pkg-config --cflags gtkmm-2.4, and --libs gtkmm-2.4. I dont know where is the documentation indicated in the message error. thank's (o_o) - mds _______________________________________________________ Promoção Yahoo! Acesso Grátis: a cada hora navegada você acumula cupons e concorre a mais de 500 prêmios! Participe! http://yahoo.fbiz.com.br/ |
|
From: Alfred P. R. <al...@ya...> - 2005-10-07 00:30:20
|
Hi Hind,
I'm working on an imaging application that uses structure arrays of sizes of 22K elements to well over 4M depending on image size. My problem usually occurs when mapping an array of floating point elements to array indicies.
Usually, for algorithmic reasons, an array element is in the form vect[i]={x,y,z}, double precision. However for screen plotting I need an array in the form vect[x][y] = z. It is in this conversion that most of my access violations or segment errors occur.
If I have an array of 3-vectors (x,y,z) and then preform a 3d transform (i.e. rotation on multiple axes), occasionally the resultant x and y coordinates will exceed the declared array size. My correction to this is to scan the resultant array of 3-vectors for maximum transformed x and y values, then generate a new array that has those maximum sizes. A further benefit is that it condenses a 3-vector array element of 24 bytes (3 doubles) to an x and y indexed array element of 8 bytes (1 double). Then I can delete[] the original 3-vector array.
Hind Fadel <the...@ho...> wrote:
U're right, probably arrays because i'm using a lot of arrays (this is a
simulation code) but it seems really bizzare :
for the same problem if i use arrays with [20][20] there's no problem but if
i use [40][40] i had the exception!!
>Date: Thu, 6 Oct 2005 23:33:45 +0200 (CEST)
>
>Bad programming - most probably either references to a NULL pointer,
>access to an uninitialized pointer or access outside the bounds of an
>array.
>
>In this case I think you are sending bad parameters to a Win32 API.
>
>/Per W
>
>On Thu, 6 Oct 2005, Hind Fadel wrote:
>
> > Hi everybody
> >
> > I'm developping a big code, sometimes it works but sometimes I had this
> > error : " Unhandled exception (NTDLL) : 0xC0000005 : Access Violation".
> >
> > Does anybody knows wath's the matter???!!
> >
<snip>
Alfred P. Reaud
|
|
From: Hind F. <the...@ho...> - 2005-10-06 21:49:20
|
U're right, probably arrays because i'm using a lot of arrays (this is a simulation code) but it seems really bizzare : for the same problem if i use arrays with [20][20] there's no problem but if i use [40][40] i had the exception!! >Date: Thu, 6 Oct 2005 23:33:45 +0200 (CEST) > >Bad programming - most probably either references to a NULL pointer, >access to an uninitialized pointer or access outside the bounds of an >array. > >In this case I think you are sending bad parameters to a Win32 API. > >/Per W > >On Thu, 6 Oct 2005, Hind Fadel wrote: > > > Hi everybody > > > > I'm developping a big code, sometimes it works but sometimes I had this > > error : " Unhandled exception (NTDLL) : 0xC0000005 : Access Violation". > > > > Does anybody knows wath's the matter???!! > > _________________________________________________________________ MSN Hotmail : antivirus et antispam intégrés http://www.msn.fr/newhotmail/Default.asp?Ath=f |
|
From: Per W. <pw...@ia...> - 2005-10-06 21:34:10
|
Bad programming - most probably either references to a NULL pointer, access to an uninitialized pointer or access outside the bounds of an array. In this case I think you are sending bad parameters to a Win32 API. /Per W On Thu, 6 Oct 2005, Hind Fadel wrote: > Hi everybody > > I'm developping a big code, sometimes it works but sometimes I had this > error : " Unhandled exception (NTDLL) : 0xC0000005 : Access Violation". > > Does anybody knows wath's the matter???!! > > _________________________________________________________________ > MSN Hotmail : antivirus et antispam int=E9gr=E9s > http://www.msn.fr/newhotmail/Default.asp?Ath=3Df > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > 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: Hind F. <the...@ho...> - 2005-10-06 21:26:44
|
Hi everybody I'm developping a big code, sometimes it works but sometimes I had this error : " Unhandled exception (NTDLL) : 0xC0000005 : Access Violation". Does anybody knows wath's the matter???!! _________________________________________________________________ MSN Hotmail : antivirus et antispam intégrés http://www.msn.fr/newhotmail/Default.asp?Ath=f |
|
From: Wolf P. <pe...@re...> - 2005-10-06 10:23:57
|
Yes, but you should catch the base exception class by (const-) reference.
for example:
class GeneralX {
public:
// properties ...
virtual bool IsSpecial() const { return false; } //
Standard-Implementation
};
class SpecificX: public GeneralX {
public:
// further properties ...
SpecificX(): m_kind( 815 ) {}
virtual bool IsSpecial() const { return m_kind > 0; } // overrides
Standard-Implementation using new Member
int m_kind;
};
void may_emit(bool x_trigger) {
// do something...
if( x_trigger ) {
throw SpecificX();
}
// do something else...
}
bool test_byref( bool x_trigger) {
bool bSpecificCaught = false;
try {
may_emit(x_trigger);
}
catch( const GeneralX& e ) { // catch by reference
// do something with e...
// if you check against SpecialX you would succeed:
bSpecificCaught = e.IsSpecial();
}
return bSpecificCaught;
}
bool test_byvalue(bool x_trigger) {
bool bSpecificCaught = false;
try {
may_emit(x_trigger);
}
catch( GeneralX e ) { // catch by value
// do something with e...
// if you check against SpecialX you would succeed:
bSpecificCaught = e.IsSpecial();
}
return bSpecificCaught;
}
bool test_all_passed() {
bool by_ref_result = test_byref(true);
bool by_value_result = test_byvalue(true);
return
(by_ref_result == true) &&
(by_value_result == false);
}
This compiles with devcpp test_all_passed() returns true for me.
Wolf Peuker
Noorez Kassam schrieb:
> For my program, I have a main exception class to handle general
> exceptions and all the other exceptions are derived from that one. In
> the catch block, can i catch an error of type "general exception" for
> all the exceptions derived from that class?
>
> _________________________________________________________________
> Designer Mail isn't just fun to send, it's fun to receive. Use special
> stationery, fonts and colors.
> http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
> Start enjoying all the benefits of MSN® Premium right now and get the
> first two months FREE*.
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> 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: Gaetano S. <gae...@gm...> - 2005-10-05 15:07:51
|
Hello,
the class browser seems to be confused when encounter throwable
exceptions declarations on methods prototypes. Take as example the
following code piece:
[myexception.h]
#include <string>
#include <stdexcept>
using std::string;
using std::runtime_error;
namespace my
{
class MyException : public runtime_error
{
public:
MyException(const string& msg);
};
}
[myexception.cpp]
#include "myexception.h"
using my::MyException;
MyException::MyException(const string& msg)
:runtime_error(msg)
{
}
[myclass.h]
namespace my
{
class MyClass
{
public:
MyClass();
~MyClass();
void my_method(int something) const throw(MyException);
};
}
[myclass.cpp]
#include "myclass.h"
using my::MyException;
using my::MyClass;
MyClass::MyClass()
{
}
MyClass::~MyClass()
{
}
void
MyClass::my_method(int something) const throw(MyException)
{
int remind_me;
if (something !=3D 0)
throw MyException("Hey! You must pass 0 as argument!");
}
Ok, in the class browser i see:
+MyException
+MyClass
| |- ~MyClass()
| |- MyClass()
|
|- remind_me : int
1 - Below the MyClass node "my_method" does not appear;
2 - The "remind_me" variable declared into "my_method" appear as a global o=
ne;
3 - This happen for all methods with a throwable exception declaration;
4 - The project compile and link as expected, without warnings or errors.
Have someone any ideas about how to fix it?
Thank you,
--
Gaetano Sferra
|
|
From: Dane E. <dg...@wo...> - 2005-10-04 20:28:49
|
Hi all,
Thank you in advance for any help you can offer.
Im trying to write a simple-stupid template class and it keeps
sigaborting. I cant figure out what I am doing wrong, please can someone
have a look to help me solve this?
Here is the error that I get:
ZeroLink: unknown symbol '__ZN7accountIfED1Ev'
ATMapp has exited due to signal 6 (SIGABRT).
Explanation: I had 2 files: main.cpp, and account.h
//main contents:
#include <iostream>
#include "account.h"
int main () {
int test;
account<float> user(3.33);
test = user.getData();
return 0;
}
//account.h contents:
template <class Type>
class account
{
public:
//CONSTRUCTOR
account(Type bal);
~account();
int getData();
private:
int id;
int pin;
Type balance;
};
template <class Type>
account<Type>::account(Type bal)
{
id = 1;
balance = bal;
pin = 522;
}
template <class Type>
int account<Type>::getData()
{
return pin;
}
---------------------------------------------
Best regards,
Dane
da...@de...
|
|
From: Andreas M. <and...@gm...> - 2005-10-04 19:30:15
|
Andreas Moroder schrieb: > Hello, > > is there documentation available on how to setup a working combination > of dev-cpp and qt4. > > Bye > Andreas > > > The answer could be http://translate.google.com/translate?u=http%3A%2F%2Fnicolasj.developpez.com%2Farticles%2Fqt4%2F&langpair=fr%7Cde&hl=de&ie=UTF8 |
|
From: Eric E. <eri...@sb...> - 2005-10-03 21:33:35
|
Thanks! Wasn't sure about that. Eric -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Alfred P. Reaud Sent: Monday, October 03, 2005 4:15 PM To: Dev-Cpp UserList Subject: Re: [Dev-C++] c++ array It can be in either place. However, vectors or lists are recommended instead of arrays. Eric Edwards <eri...@sb...> wrote: Hey List, In C++ is an array declared in the class definition or in the function definition file? Thanks, Eric <snip> Alfred P. Reaud <mailto:al...@ya...> <http://www.geocities.com/alreaud/> |
|
From: Alfred P. R. <al...@ya...> - 2005-10-03 21:15:22
|
It can be in either place. However, vectors or lists are recommended instead of arrays. Eric Edwards <eri...@sb...> wrote:Hey List, In C++ is an array declared in the class definition or in the function definition file? Thanks, Eric <snip> Alfred P. Reaud |
|
From: N D. <nde...@ya...> - 2005-10-03 21:07:09
|
How do I change my e-mail addy on this list? --------------------------------- Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. |
|
From: Eric E. <eri...@sb...> - 2005-10-03 19:26:39
|
Hey List, In C++ is an array declared in the class definition or in the function definition file? Thanks, Eric |
|
From: Per W. <pw...@ia...> - 2005-10-03 05:19:01
|
Yes! /Per W On Sat, 1 Oct 2005, Noorez Kassam wrote: > For my program, I have a main exception class to handle general exception= s > and all the other exceptions are derived from that one. In the catch bloc= k, > can i catch an error of type "general exception" for all the exceptions > derived from that class? > > _________________________________________________________________ > Designer Mail isn't just fun to send, it's fun to receive. Use special > stationery, fonts and colors. > http://join.msn.com/?pgmarket=3Den-ca&page=3Dbyoa/prem&xAPID=3D1994&DI=3D= 1034&SU=3Dhttp://hotmail.com/enca&HL=3DMarket_MSNIS_Taglines > Start enjoying all the benefits of MSN=AE Premium right now and get the > first two months FREE*. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > 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: Noorez K. <lor...@ho...> - 2005-10-02 21:35:46
|
For my program, I have a main exception class to handle general exceptions and all the other exceptions are derived from that one. In the catch block, can i catch an error of type "general exception" for all the exceptions derived from that class? _________________________________________________________________ Designer Mail isn't just fun to send, it's fun to receive. Use special stationery, fonts and colors. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. |
|
From: Andreas M. <and...@gm...> - 2005-10-02 20:36:16
|
Hello, is there documentation available on how to setup a working combination of dev-cpp and qt4. Bye Andreas |
|
From: Reid T. <jre...@ea...> - 2005-10-02 16:42:12
|
I thought it might be of interest to post steps to using PostgreSQL on
Windows with the Dev-Cpp/MINGW IDE/compiler. This example is C, but the
steps for configuring the IDE/Project to use the PostgreSQL libs/headers
should be the same or very similar for C++/ecpg.
Install PostgreSQL for Windows using the windows installer ( for those
who haven't used the PostgreSQL windows installer, it's a quick and easy
process ).
Start Dev-C++.
File->New->Project.
Select Console Application.
Select C project.
Give the project a pertinent name ( myPgsqlTest ).
Click OK.
Create a new dir to contain the Project ( give it a pertinent name).
Save the initial project.
Select Project->Project Options.
Select the Parameters Tab.
Click the Add Library or Object button.
Traverse to your PostgreSQL installation's lib directory - mine is
../../../PostgreSQL/8.0/lib/ and select libpq.a.
In my case, the linker window now contains
../../../PostgreSQL/8.0/lib/libpq.a.
Select the Directories Tab.
Select the Include Directories sub-tab.
Traverse to and select your PostgreSQL installation's include
directory - mine is
D:\PostgreSQL\8.0\include.
Click on Add ( your Include directories window should now list
this path.
Click on OK to close the Project Options Dialog
Insure that the db 'test' exists in your PostgreSQL instance, or change
'test' in the conninfo to your test db when you populate the other
appropriate values for your connection.
Replace the Dev-C++ template created main.c
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
system("PAUSE");
return 0;
}
with ( this is based on the libpq example from www.postgresql.org/docs )
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "libpq-fe.h"
static void
exit_nicely(PGconn * conn)
{
PQfinish(conn);
/***************************************************************************
* I added this because it's the 'default' means of preventing the
cmd.exe
* window from closing in Dev-C++. Note that this is only needed when
* running the resultant executable from within Dev-Cpp itself or via
* clicking on the file with the mouse pointer
***************************************************************************/
system("PAUSE");
exit(1);
}
int
main(int argc, char **argv)
{
time_t t1;
time_t t2;
/* mingw time.h doesn't have struct timeval
struct timeval tb1;
struct timeval tb2;
*/
const char *conninfo;
PGconn *conn;
PGresult *res;
int i, j = 0;
long t_diff = 0;
char statement[1024];
char buffer[50];
/*
* If the user supplies a parameter on the command line, use it as
* the conninfo string; otherwise default to setting dbname=template1
* and using environment variables or defaults for all other connection
* parameters.
*/
if (argc > 1)
{
conninfo = argv[1];
}
else
{
conninfo = "hostaddr = 127.0.0.1 dbname = test user = postgres
password = postgres";
}
/* Make a connection to the database */
conn = PQconnectdb(conninfo);
/* Check to see that the backend connection was successfully made */
if (PQstatus(conn) != CONNECTION_OK)
{
fprintf(stderr, "Connection to database failed: %s",
PQerrorMessage(conn));
exit_nicely(conn);
}
res = PQexec(conn, "drop table notes");
if (PQresultStatus(res) != PGRES_COMMAND_OK)
{
fprintf(stderr, "drop table command failed: %s",
PQerrorMessage(conn));
PQclear(res);
/* exit_nicely(conn);
* commented out so that we don't have to create the
* table manually before we run
*/
}
PQclear(res);
res = PQexec(conn, "create table notes(subject text)");
if (PQresultStatus(res) != PGRES_COMMAND_OK)
{
fprintf(stderr, "create table command failed: %s",
PQerrorMessage(conn));
PQclear(res);
exit_nicely(conn);
}
PQclear(res);
res = PQexec(conn, "BEGIN");
if (PQresultStatus(res) != PGRES_COMMAND_OK)
{
fprintf(stderr, "BEGIN command failed: %s", PQerrorMessage(conn));
PQclear(res);
exit_nicely(conn);
}
PQclear(res);
(void) time(&t1);
/* (void) gettimeofday (&tb1, NULL); */
for (i = 1; i < 2001; i++)
{
sprintf(buffer, "my subject%d", i);
sprintf(statement, "%s %s%s", "insert into notes(subject) values('",
buffer, "')");
res = PQexec(conn, statement);
if (PQresultStatus(res) != PGRES_COMMAND_OK)
{
fprintf(stderr, "insert command failed: %s",
PQerrorMessage(conn));
PQclear(res);
exit_nicely(conn);
}
PQclear(res);
}
res = PQexec(conn, "COMMIT");
PQclear(res);
(void) time(&t2);
/* (void) gettimeofday (&tb2, NULL); */
printf("added %d records to notes\n", i - 1);
printf("time1: %d time2: %d\n", t1, t2);
printf("elapsed time: %d\n", (t2 - t1));
printf("The start time was %s.\n", asctime(localtime(&t1)));
printf("The end time was %s.\n", asctime(localtime(&t2)));
/*
* t_diff = (long) ((tb2.tv_sec - tb1.tv_sec) + (tb2.tv_usec -
* tb1.tv_usec)); printf ("seconds: %ld end_microsecs: %ld
start_microsecs
* %ld microsecs %ld\n", (tb2.tv_sec - tb1.tv_sec), tb2.tv_usec,
* tb1.tv_usec, tb2.tv_usec - tb1.tv_usec); t_diff = (long) (1000.0 *
* (tb2.tv_sec - tb1.tv_sec) + (tb2.tv_usec - tb1.tv_usec));
printf("elapsed
* time millisecs: %ld\n", t_diff); */
/* close the connection to the database and cleanup */
PQfinish(conn);
/***************************************************************************
* I added this because it's the 'default' means of preventing the
cmd.exe
* window from closing in Dev-C++. Note that this is only needed when
* running the resultant executable from within Dev-Cpp itself or via
* clicking on the file with the mouse pointer
***************************************************************************/
system("PAUSE");
return 0;
}
|