dev-cpp-users Mailing List for Dev-C++ (Page 381)
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: Felipe L. <li...@cp...> - 2003-05-19 17:10:42
|
Sorry for the idiot question, but, what is mingw? -=3D-=3D-=3D-=3D-=3D-=3D- Felipe Lima - Software Tester/ Developer CPTS - Software Test Research Center HP Brazil - PUCRS |
|
From: Daniel G. <sp...@ho...> - 2003-05-19 15:45:43
|
You create your own GUID surely? Try running guidgen.exe >From: "The Sullivans" <we2...@at...> >To: <dev...@li...> >Subject: [Dev-C++] Undefined reference to IID_IDirectDraw7 >Date: Mon, 19 May 2003 08:52:34 -0600 > >Isn't this the correct GUID for the IDirectDraw7 interface? I've linked to >libddraw.a and libdxguid.a. I've included windows.h, windowsx.h, and >ddraw.h. It still doesn't work. I've browsed the message boards for hours, >and this seems to be a common problem with Dev-C++ (or MinGW?). Am I stuck >using DDraw4 unless I switch to MSVC++? _________________________________________________________________ On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile |
|
From: Szathmary L. <sz...@de...> - 2003-05-19 15:29:14
|
> How to convert a float to a string ?? If you prefer C-style, you can use sprintf(), which is a universal solution, you can use it with any type: -------------------------- float f = 3.14f; char str[20]; sprintf(str, "%.2f", f); -------------------------- Laszlo |
|
From: The S. <we2...@at...> - 2003-05-19 14:49:01
|
Isn't this the correct GUID for the IDirectDraw7 interface? I've linked = to libddraw.a and libdxguid.a. I've included windows.h, windowsx.h, and = ddraw.h. It still doesn't work. I've browsed the message boards for = hours, and this seems to be a common problem with Dev-C++ (or MinGW?). = Am I stuck using DDraw4 unless I switch to MSVC++? |
|
From: Yeoh H. <ye...@ye...> - 2003-05-19 01:03:49
|
That's great. :-) I've also released a DevPak How-To on 30 April 2003. The URL is: http://www.yeohhs.com/free/viewtopic.asp?forumid=16&id=21 Best Regards, Yeoh ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ ICT eBooks by Yeoh HS Free Downloads at http://www.yeohhs.com ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ ----- Original Message ----- From: "michel.weinachter" <mic...@fr...> To: <dev...@li...> Sent: Sunday, May 18, 2003 10:28 PM Subject: [Dev-C++] devpack howto > I have released a Quick and Dirty devpack howto (you could find it at > http://michel.weinachter.free.fr/DevPack_howto.html) > > bye > |
|
From: michel.weinachter <mic...@fr...> - 2003-05-18 14:28:14
|
I have released a Quick and Dirty devpack howto (you could find it at http://michel.weinachter.free.fr/DevPack_howto.html) bye |
|
From: C. L. <ccl...@gm...> - 2003-05-18 12:57:05
|
Hi. I have followinga problem: I need to compile with DJGPP because ich want to write a OO DOS-Tsr. Ich have problems to insert the compiler into the environment. Can anyone give me a tip, how to insert it? I wrote my own makefile but I must run this in a DOS window because DEV seems to need its own Makefile (Makefile.win) an hang if it want to look for the dependencys. But I'm able to create the dependencys in my Makefile myself. Is there a solution ? best regards, Cay |
|
From: iad929 <ia...@jo...> - 2003-05-17 16:05:25
|
> 3: Never offer to solve someones student work. Always limit yourself to > giving hints. What use is school assignments if someone else does the > work? In a real world, there are no team-mates around that will offer > always step in and do all the work... > Thanks for your try to help. I solved all her problems. In fact, she sent to me because she gave up and no one could help her from her classmates. Mo |
|
From: todd b. <tb...@nw...> - 2003-05-17 15:06:49
|
Hi Gisan,
Thanks, your tutorial got me started with the GDB graphical interace =
version. I must also confess that I got the Dev-C 4.9.8 integrated =
graphical debugger to work also just after following your =
instructions....it seems I must set <run to cursor> inside {main} =
somewhere before I click the <Debug> checkmark. Then it works just fine =
so far.
Thanks for taking the time to get me started!
Ciao!
Todd |
|
From: <Pos...@TN...> - 2003-05-17 11:53:20
|
Subject: e-posta adres deðiþikliði - e-mail address change Göndermiþ olduðunuz e-posta alýcýsýnýn kul...@tu... adresi, kul...@tn... olarak deðiþmiþtir ve alýcýsýna teslim edilmiþtir. Bundan sonra bu adrese göndereceðiniz e-postalarýn ilgili adrese ulaþmasý için kul...@tn... þeklinde deðiþtirmenizi önemle rica ederiz. Saygýlarýmýzla, Turk Nokta Net Bilgi Hizmetleri A.Þ. Turk Nokta Net'e artýk http://www.tnn.net 'ten ulaþýn --------------------------------------------------------------- The e-mail address of the recipient of your message has been changed from use...@tu... to use...@tn... and your message has been delivered to the recipient. We urgently request that you change the recipient's address to use...@tn... in order for your messages to be delivered. Best Regards, Turk Nokta Net Bilgi Hizmetleri A.Þ. Reach Turk Nokta Net at http://www.tnn.net |
|
From: Michael S. <mic...@nu...> - 2003-05-17 11:49:56
|
Hi, I recently managed how to get debugging to work in Dev-C++, but I = noticed 2 problems: 1. I have to manually enable "create debug info" in the linker settings = for debugging. Perhaps it should be enabled automatically (or by asking = the user) when the "debug"-button is pressed the first time. 2. If I set breakpoints, only the ones in my "int main"- function are reagrded and processed, but if I set them for example in = the constructor of some of my classes the program never stops there. = Also Dev-C++ says "the .exe file is older than the source-files, do you = want to recompile it?", even if I make a full recompile and then change = nothing. If somebody has an idea how to fix #2, it would be very cool, since I = need debugging very much (as a beginner :) ) |
|
From: Per W. <pw...@ia...> - 2003-05-17 10:59:06
|
Three hints to send to your friend.
1: A string pointer (char*) can't be assigned to a character array
(char[]). Instead string copy must be used. strcpy(a,tokenptr);
2: The last parameter to strtok() only takes a string of DIFFERENT
characters that may delimit the keywords, such as " \t\r\n". To split a
string separated by multiple characters, the split must be manually done,
for example with the strstr() function to search for substrings ("000") in
the original string.
3: Never offer to solve someones student work. Always limit yourself to
giving hints. What use is school assignments if someone else does the
work? In a real world, there are no team-mates around that will offer
always step in and do all the work...
/Per W
On Fri, 16 May 2003, iad929 wrote:
> A friend of mine who is a student asked me to help her to slove the problems
> in the two homeworks she is working on. She said that she gave up trying to
> solve them. She sent to me for help but I can't do that because I am moving
> to my new house. Here are the two homeworks and her wrong solutions. I wish
> someone can fix the problems.
>
>
> a) Write a program that will read one line of text that has 2 names
> separated with $. Each name is made up of a first name and last name (see
> the example). Your program is to tokenize the line and compare the two last
> names. If the names are the same you should print "brothers", otherwise
> print "not brothers" the format is :last$first
> for example:mohammed alhadi $ahmed alhadi$
>
> #include<iostream.h>
> #include<string.h>
> int main()
> {
> char s[40];
> char a[40];
> char *tokenptr;
> int i,result;
>
> cout<<"enter the name:";
> cin.getline(s,40);
> cout<<"the toknize are :\n";
> tokenptr=strtok(s," $");
> while(tokenptr!=NULL)
> {
> cout<<tokenptr<<"\n";
> tokenptr=strtok(NULL," $");
> a[i]=tokenptr;
> cout<<a[i];
> i++;
> tokenptr=strtok(NULL," $");
> }
> result=strcmp(a,s);
> if(result==0)
> cout<<"are brothers";
> else
> cout<<"not brothers\n";
> return 0;
> }
>
> b) write a program that will read one line of text that contains four
> students' names and grades separated with three zeros(see the example). your
> program is to parse (tokenize) the line and put the names in an array and
> grades in another array, then you should output the array showing the
> content of the array in a report of the following from
>
> name grade
> ali c
>
> Input format:
>
> Name grade000 name grade000 name grade0000 name grade000
>
> Example: Mohamed a000ahmed b000ali c000 hala d000
>
>
> Your program must read the line at once
> #include<iostream.h>
> #include<string.h>
> int main()
> {
>
> char D[5][5];
>
>
> cout<<"enter the names and the grade";
> cin.getline(D,5);
>
> cout<<"the toknize are :\n";
> tokenptr=strtok(D,"000");
> while(tokenptr!=NULL)
> {
> cout<<tokenptr<<"\n";
> tokenptr=strtok(NULL,"000");
> }
> return 0;
> }
>
>
> Mo
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: If flattening out C++ or Java
> code to make your application fit in a relational database is painful,
> don't do it! Check out ObjectStore. Now part of Progress Software.
> http://www.objectstore.net/sourceforge
> _______________________________________________
> 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: Roberto R. <rob...@ar...> - 2003-05-17 06:15:46
|
Hi, Why you dont try with: floatnum = atof (string_num) Regards Roberto ari...@in... wrote: >How to convert a float to a string ?? > >How work fmod()?? > >Thanks to all. > > > >------------------------------------------------------- >Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara >The only event dedicated to issues related to Linux enterprise solutions >www.enterpriselinuxforum.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: Luigi S. <gi...@li...> - 2003-05-17 05:46:44
|
On Fri, May 16, 2003 at 10:55:36PM -0400, todd benson wrote: > I am having a tough time getting anywhere with this. I am using the Dev-C 4.9.8 > and am trying to use the Insight Debugger, but no luck getting them to work. I still get the same invitation to enable debugging info, even though I've enable the option in <compiler options> linker. > Any help is really appreciated. > Todd Hi Todd, you could give a look at the "tiny debugger tutorial" (found at www.gisan.freeurl.com). I wrote it back when Dev 4.9.3.0 was around. Let us know if you need further help. -- >> gisan >> |
|
From: Luigi S. <gi...@li...> - 2003-05-17 05:46:44
|
On Fri, May 16, 2003 at 03:45:42PM +0200, ari...@in... wrote: > How to convert a float to a string ?? Hi, one way to achieve that could be: - write the float on a string stream - turn the stream into a string in other words something like: ... std::ostringstream oss; oss << the_float; return oss.str(); ... > How work fmod()?? function "fmod" is used to compute the remainder of two floats, example: fmod(7.2, 4) will yield: 3.2 > Thanks to all. Welcome -- >> gisan >> |
|
From: todd b. <tb...@nw...> - 2003-05-17 02:48:38
|
I am having a tough time getting anywhere with this. I am using the = Dev-C 4.9.8 and am trying to use the Insight Debugger, but no luck getting them to = work. I still get the same invitation to enable debugging info, even = though I've enable the option in <compiler options> linker. Any help is really appreciated. Todd |
|
From: iad929 <ia...@jo...> - 2003-05-17 00:30:53
|
A friend of mine who is a student asked me to help her to slove the problems
in the two homeworks she is working on. She said that she gave up trying to
solve them. She sent to me for help but I can't do that because I am moving
to my new house. Here are the two homeworks and her wrong solutions. I wish
someone can fix the problems.
a) Write a program that will read one line of text that has 2 names
separated with $. Each name is made up of a first name and last name (see
the example). Your program is to tokenize the line and compare the two last
names. If the names are the same you should print "brothers", otherwise
print "not brothers" the format is :last$first
for example:mohammed alhadi $ahmed alhadi$
#include<iostream.h>
#include<string.h>
int main()
{
char s[40];
char a[40];
char *tokenptr;
int i,result;
cout<<"enter the name:";
cin.getline(s,40);
cout<<"the toknize are :\n";
tokenptr=strtok(s," $");
while(tokenptr!=NULL)
{
cout<<tokenptr<<"\n";
tokenptr=strtok(NULL," $");
a[i]=tokenptr;
cout<<a[i];
i++;
tokenptr=strtok(NULL," $");
}
result=strcmp(a,s);
if(result==0)
cout<<"are brothers";
else
cout<<"not brothers\n";
return 0;
}
b) write a program that will read one line of text that contains four
students' names and grades separated with three zeros(see the example). your
program is to parse (tokenize) the line and put the names in an array and
grades in another array, then you should output the array showing the
content of the array in a report of the following from
name grade
ali c
Input format:
Name grade000 name grade000 name grade0000 name grade000
Example: Mohamed a000ahmed b000ali c000 hala d000
Your program must read the line at once
#include<iostream.h>
#include<string.h>
int main()
{
char D[5][5];
cout<<"enter the names and the grade";
cin.getline(D,5);
cout<<"the toknize are :\n";
tokenptr=strtok(D,"000");
while(tokenptr!=NULL)
{
cout<<tokenptr<<"\n";
tokenptr=strtok(NULL,"000");
}
return 0;
}
Mo
|
|
From: Smith, J. N. <jn...@ut...> - 2003-05-16 20:22:06
|
>
> add this keys for LINKER, not for compiler.
> Go to Project/Project Options/Parameters/Linker
(still with clean install):
- placed dll in windows/system32
- placed glut.h from 3.7.6 (Nate Robbin's Site) into c:/dev-cpp/include/gl
- placed libglut[32].a is *in place* from installation
- under project->project options->parameters->link I put -lopengl32,
-lglu32, -lglut32 (it has -L option into the include and lib folders)
- the project is "console"
The compiler correctly links to libopengl32.a and libglu32.a from the
standard opengl template with 4.9.8 but still fails to link with GLUT 3.7.6.
The code and errors follow.
%%%%%%%%%%% code %%%%%%%%%%%%%
#include <windows.h>
#include <gl/glut.h>
int main(int argc, char **argv) {
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DEPTH | GLUT_SINGLE | GLUT_RGBA);
glutInitWindowPosition(100,100);
glutInitWindowSize(320,320);
glutCreateWindow("3D Tech- GLUT Tutorial");
}
%%%%%%%%%%% errors %%%%%%%%%%%%%%%
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\thechao\Desktop\Makefile.win"
Executing make...
make.exe -f "C:\Documents and Settings\thechao\Desktop\Makefile.win" all
g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/include/c++"
-I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward"
-I"C:/Dev-Cpp/include" g++.exe main.o -o "glut.exe" -L"C:/Dev-Cpp/lib"
-lopengl32 -lglu32 -lglut32 main.o(.text+0x15):main.cpp: undefined
reference to `__glutInitWithExit@12'
main.o(.text+0x32):main.cpp: undefined reference to
`__glutCreateWindowWithExit@8'
main.o(.text+0x50):main.cpp: undefined reference to
`__glutCreateMenuWithExit@8' make.exe: *** [glut.exe] Error 1 Execution
terminated
|
|
From: Felipe L. <li...@cp...> - 2003-05-16 17:14:52
|
Yes, just add the correct library to your project.
You will probably need one for opengl and another for glut.
If you dont have them, try to download them.
[]',
-=3D-=3D-=3D-=3D-=3D-=3D-
Felipe Lima - Software Tester/ Developer
CPTS - Software Test Research Center
HP Brazil - PUCRS
----- Original Message -----=20
From: Tvienti=20
To: Felipe Lima=20
Sent: Thursday, May 15, 2003 8:34 PM
Subject: Re: [Dev-C++] OpenGL
Were you able to figure out your problem? I'm having the same problem =
using Dev-c++ w/ Mingw. I included all the right libraries but still =
receive errors.
----- Original Message -----=20
From: Felipe Lima=20
To: dev...@li...=20
Sent: Wednesday, May 14, 2003 4:41 PM
Subject: [Dev-C++] OpenGL
What do I need to compile a OpenGL program in Dev Cpp 4.9.8?
I always get some errors while compiling it, Linker Errors.
Thanks,
-=3D-=3D-=3D-=3D-=3D-=3D-
Felipe Lima - Software Tester/ Developer
CPTS - Software Test Research Center
HP Brazil - PUCRS |
|
From: Chris H. <chr...@ho...> - 2003-05-16 13:59:14
|
You need to compile your code as a libary (ie: DLL in windows), compiler = is looking for the main, thats why the errors occuring. There doesn't appear to be anything wrong with your code. Theres a = tutorial from sun that shows how to create programs using JNI here: http://java.sun.com/docs/books/tutorial/native1.1/index.html chris. ----- Original Message -----=20 From: Raj Kolluri=20 To: dev...@li...=20 Sent: Thursday, May 15, 2003 12:34 AM Subject: [Dev-C++] JNI help Hi, I am trying to write a simple C program to see how JNI works. This is my code: = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D #include <jni.h> #include <stdio.h> # include "HelloWorld.h" JNIEXPORT void JNICALL Java_HelloWorld_print(JNIEnv *env, jobject obj) { printf("Hello World!\n"); return; } =20 = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D When I try to compile the code I get following error: [Linker error] undefined reference to `WinMain@16' I am working on Windows 2000 server. Could some one please point me = in the right direction. Thanks, Raj -------------------------------------------------------------------------= ----- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. |
|
From: =?iso-8859-1?Q?<ari...@in...> - 2003-05-16 13:46:01
|
How to convert a float to a string ??=0D=0A=0D=0AHow work fmod()??=0D=0A=0D= =0AThanks to all. |
|
From: Per W. <pw...@ia...> - 2003-05-16 12:10:40
|
Or do:
void fun() {
int state = 0;
try {
fun1();
state++;
fun2();
state++;
fun3();
state++
...
} catch (x) {
switch (sate) {
case 0: cout << "fun1() is bad"; break;
case 1: cout << "fun2() is bad"; break;
...
}
}
EMA System email: pw...@ia...
Per Westermark web: http://iapetus.neab.net
Vargvaegen 174B phone: +46 70 214 74 48
S-906 42 Umeaa
Sweden
On Fri, 16 May 2003, philip MORTIMER wrote:
> Hello Zodiaq,
>
> You could have funX pass a code to smallFun which indicates
> what function called it (eg fun11 would pass 11 to FunQ), and
> when smallFun throws an exception it can include this
> code in the exception object, so that when FunQ catches it
> it knows which function called smallFun.
>
> --------------------------------------------------------------------------
> Philip Mortimer
>
> www: http://mysite.freeserve.com/coniferway/index.html.
>
> Available for short and long term contracts
> ---------------------------------------------------------------------------
>
> ----- Original Message -----
> From: "Zodiaq" <zo...@ac...>
> To: <Dev...@li...>
> Sent: Friday, May 16, 2003 12:03 AM
> Subject: [Dev-C++] about exceptions
>
>
> > Hello all Dev-cpp-users,
> >
> > I have one important question - this small example will show what my
> > mail is all about... let's say I have one major function (FunQ) which
> > calls many smaller functions(fun1 - fun20), and all of these functions
> > uses the same small function (smallFun) which conditionaly may throw
> > exceptions... only FunQ catches these exceptions... is there some a
> > way to know which way this exception came apart from rethrowing it
> > from funX (where X is number 1-20)... adding in many points in every
> > fun1-fun20 try...catch is what I want to avoid... maybe there is
> > something similar like __LINE__ or __FILE__ but about call stack??
> >
> > --
> > regards Zodiaq
> >
> >
> >
> > -------------------------------------------------------
> > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
> > The only event dedicated to issues related to Linux enterprise solutions
> > www.enterpriselinuxforum.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
> >
>
>
>
> -------------------------------------------------------
> Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
> The only event dedicated to issues related to Linux enterprise solutions
> www.enterpriselinuxforum.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: philip M. <ph...@co...> - 2003-05-16 10:15:48
|
Hello Zodiaq, You could have funX pass a code to smallFun which indicates what function called it (eg fun11 would pass 11 to FunQ), and when smallFun throws an exception it can include this code in the exception object, so that when FunQ catches it it knows which function called smallFun. -------------------------------------------------------------------------- Philip Mortimer www: http://mysite.freeserve.com/coniferway/index.html. Available for short and long term contracts --------------------------------------------------------------------------- ----- Original Message ----- From: "Zodiaq" <zo...@ac...> To: <Dev...@li...> Sent: Friday, May 16, 2003 12:03 AM Subject: [Dev-C++] about exceptions > Hello all Dev-cpp-users, > > I have one important question - this small example will show what my > mail is all about... let's say I have one major function (FunQ) which > calls many smaller functions(fun1 - fun20), and all of these functions > uses the same small function (smallFun) which conditionaly may throw > exceptions... only FunQ catches these exceptions... is there some a > way to know which way this exception came apart from rethrowing it > from funX (where X is number 1-20)... adding in many points in every > fun1-fun20 try...catch is what I want to avoid... maybe there is > something similar like __LINE__ or __FILE__ but about call stack?? > > -- > regards Zodiaq > > > > ------------------------------------------------------- > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara > The only event dedicated to issues related to Linux enterprise solutions > www.enterpriselinuxforum.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: <ca...@kr...> - 2003-05-16 08:16:47
|
hi Jacob,
Friday, May 16, 2003, 1:27:00 AM, you wrote:
> Sorry about the repeated topic, but...
> I've looked through the archives and the online forum. I've successfully
> used GLUT on Dev-C++ 4.0. 4.9.8 (5) is stumping me. I've got all the
> libraries from the installation and 3.7.6 dll (which I'm not using) in
> Windows/System[32]. I'm not sure what to do, now.
you need the headerfiles in your [devcpp]\include and the libraries in
your [devcpp]\lib only the dll are put in windows\system32.
gruss
/Christian mailto:ca...@kr...
---
I propose that the following character sequence for joke markers:
:-)
19-Sep-82 11:44 Scott E Fahlman
|
|
From: Astar <As...@tu...> - 2003-05-16 04:54:23
|
Hello Jacob, Friday, May 16, 2003, 2:27:00 AM, you wrote: SJN> Sorry about the repeated topic, but... SJN> I've looked through the archives and the online forum. I've successfully SJN> used GLUT on Dev-C++ 4.0. 4.9.8 (5) is stumping me. I've got all the SJN> libraries from the installation and 3.7.6 dll (which I'm not using) in SJN> Windows/System[32]. I'm not sure what to do, now. Under Tools->>Compiler Options->Compiler I have the "Add the following SJN> commands..." checked with the following commands SJN> -lopengl32 -lglu32 -lglut32 add this keys for LINKER, not for compiler. Go to Project/Project Options/Parameters/Linker -- Best regards, Astar mailto:As...@tu... |