dev-cpp-users Mailing List for Dev-C++ (Page 688)
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: Jeethu R. <je...@sa...> - 2001-06-29 04:59:57
|
Hi, I was wondering how to include assembly level code in C++ files. Can I do it inline (like in the good old Turbo C) or do I have to create a Lib in MASM32 or NASM and then Link ? Thnx in advance, Jeethu Rao |
|
From: Jeethu R. <je...@sa...> - 2001-06-29 04:59:54
|
Hi, I'm writing a small command line encryption utility. For this, I need to seperate the Folder path and filename from a single string. I vaguely remember that there was a function to do this in the standard C library. Can someone please tell me the name and the header file for that function. Or else i'll have to manually code a function which does this. Thnx, Jeethu Rao |
|
From: Johannes P. <joh...@pr...> - 2001-06-28 07:23:38
|
>Date: Wed, 27 Jun 2001 10:06:33 +0200 >To: >dev...@li...,dev...@li...,dev...@li...,dev...@li... >From: Johannes Pretorius <joh...@pr...> >Subject: Fwd: Re: [Dev-C++] Error problems > > >>Date: Wed, 27 Jun 2001 10:01:55 +0200 >>To: dev...@li... >>From: Johannes Pretorius <joh...@pr...> >>Subject: Re: [Dev-C++] Error problems >> >>WHAAAAAAAAAAAA.. >> >>I want my mail also to appear on this LIST.,.. GRRR.. >> >>Anyways HERE is the Answer >> >>Make sure that the project options is set to compile for C++ >>After that it will work.. >> >>if not mail me. I had this prob also before >> >>good Luck >> >>Johannes >> >> >> >> >> >> >> >> >> >> >>At 14:37 27/06/2001 +0700, you wrote: >>>I try to correct them. .. >>> >>>1. I think the correct code is >>>#include <iostream.h> not #include <iostream> >>> >>>2. The prototype of: void getInput(string, float&); >>>is not match to function declaration: >>>void getInput(string name, float salary) >>>Second parameter must be fixed to: float& salary >>> >>>3. The same problem also causes of different prototypes to declarations. >>>The other prototypes of: >>>float calcFwt(float, float); >>>float calcFica(float, float); >>>float calcNetPay(float, float, float); >>>void displayInfo(string, float, float, float, float); >>> >>>respectively are not match (type or number of parameters) to function >>>declarations: >>>float calcFwt(float salary, const float FWT_RATE, float fwtTax) >>>float calcFica(float &salary, const float FICA_RATE, float ficaTax) >>>float calcNetPay(float salary, float fwtTax, float ficaTax, float netPay) >>>void displayInfo(string &name, float salary, float fwtTax, float ficaTax, >>>float netPay) >>> >>>If it's hard to make them consistent, dont make prototypes. Just put your >>>functions before main(). >>> >>> >>>___Nurhidayat___ >>> >>> >>> >>>_______________________________________________ >>>Dev-cpp-users mailing list >>>Dev...@li... >>>http://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Ramana K. <xr...@ho...> - 2001-06-28 07:12:24
|
I inserted the #define PVOID void * statement into the top of my main.cpp file and the PVOID problems disappear (i think) but new ones replace it. Most problems seem to concern special windows types (like PVOID). They are mostly syntax errors and are found in files that contain typedefs for windows types to other types (eg. typedef UINT_PTR WPARAM;) Do I need a special include file which i don't have that has the definitions of all these types? What is a syntax error? Why would this cause a syntax error? thanks all Ramana (ra...@my...) _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. |
|
From: Nurhidayat <dh...@ma...> - 2001-06-28 05:36:00
|
>did any one have an idea to convert a double to a string pointer ?
>(not like _fcvt)
like this?
#include <stdio.h>
main()
{
char str[20];
double num;
num = 1234.567890;
sprintf( str, "%lf", num);
printf( "Now str's content is %s", s);
}
___Nurhidayat___
|
|
From: Nurhidayat <dh...@ma...> - 2001-06-28 04:26:26
|
At 23:20 27/06/2001 +0100, you wrote: > Do I need Glut to write OpenGL programs in DEV C++ ? If so how do I go >about setting up DEV C++ to use Glut. Thnx Napoleon. No you dont. But GLUT make easy and simple to write OpenGL programs. Put -lopengl32 -lglu32 -lglut32 to linker options at menu Project | Project Options. ___Nurhidayat___ |
|
From: softnasolutions-ltd.fsbusiness.co.uk <so...@so...> - 2001-06-27 22:26:04
|
Do I need Glut to write OpenGL programs in DEV C++ ? If so how do I go = about setting up DEV C++ to use Glut. Thnx Napoleon. |
|
From: softnasolutions-ltd.fsbusiness.co.uk <so...@so...> - 2001-06-27 21:24:58
|
Hi Folks, I'm just about starting to learn OpenGL and I have settled on the Book = OpenGL Game Programming by Dave Astle and Kevin Hawking. I want your = opinion on my choice and also if Dev C++ as it it now can handle OpenGL = comfortably. Napoleon. |
|
From: Ray W. <ra...@in...> - 2001-06-27 19:22:51
|
The following should have read "Note that only one "using namespace std;" statement is required ....." I left out the "one", changes meaning of sentence. Usually the namespace statement is placed immediatly after the #include directives, It does not have to be however, as long as it occurs before the library function calls. Sorry about typo. ray w. At 12:11 PM 6/27/01 -0700, you wrote: >You can use #include <iostream> without the ".h", but you have to >follow it somewhere with a "using namespace std;" statement. This >can be anywhere before you use any of the library function in iostream. The >use of the namespace statement is the new C++ standard >and is implemented in Dev C++. Note that only "using namespace std;" >statement is required in the program reguardless of how many #include >directives you use. > >At 02:37 PM 6/27/01 +0700, you wrote: >>I try to correct them. .. >> >>1. I think the correct code is >>#include <iostream.h> not #include <iostream> >> >>2. The prototype of: void getInput(string, float&); >>is not match to function declaration: >>void getInput(string name, float salary) >>Second parameter must be fixed to: float& salary >> >>3. The same problem also causes of different prototypes to declarations. >>The other prototypes of: >>float calcFwt(float, float); >>float calcFica(float, float); >>float calcNetPay(float, float, float); >>void displayInfo(string, float, float, float, float); >> >>respectively are not match (type or number of parameters) to function >>declarations: >>float calcFwt(float salary, const float FWT_RATE, float fwtTax) >>float calcFica(float &salary, const float FICA_RATE, float ficaTax) >>float calcNetPay(float salary, float fwtTax, float ficaTax, float netPay) >>void displayInfo(string &name, float salary, float fwtTax, float ficaTax, >>float netPay) >> >>If it's hard to make them consistent, dont make prototypes. Just put your >>functions before main(). >> >> >>___Nurhidayat___ >> >> >> >>_______________________________________________ >>Dev-cpp-users mailing list >>Dev...@li... >>http://lists.sourceforge.net/lists/listinfo/dev-cpp-users >> >> >Ray Witter > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > Ray Witter |
|
From: Ray W. <ra...@in...> - 2001-06-27 19:15:01
|
You can use #include <iostream> without the ".h", but you have to follow it somewhere with a "using namespace std;" statement. This can be anywhere before you use any of the library function in iostream. The use of the namespace statement is the new C++ standard and is implemented in Dev C++. Note that only "using namespace std;" statement is required in the program reguardless of how many #include directives you use. At 02:37 PM 6/27/01 +0700, you wrote: >I try to correct them. .. > >1. I think the correct code is >#include <iostream.h> not #include <iostream> > >2. The prototype of: void getInput(string, float&); >is not match to function declaration: >void getInput(string name, float salary) >Second parameter must be fixed to: float& salary > >3. The same problem also causes of different prototypes to declarations. >The other prototypes of: >float calcFwt(float, float); >float calcFica(float, float); >float calcNetPay(float, float, float); >void displayInfo(string, float, float, float, float); > >respectively are not match (type or number of parameters) to function >declarations: >float calcFwt(float salary, const float FWT_RATE, float fwtTax) >float calcFica(float &salary, const float FICA_RATE, float ficaTax) >float calcNetPay(float salary, float fwtTax, float ficaTax, float netPay) >void displayInfo(string &name, float salary, float fwtTax, float ficaTax, >float netPay) > >If it's hard to make them consistent, dont make prototypes. Just put your >functions before main(). > > >___Nurhidayat___ > > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > Ray Witter |
|
From: William G. <wj...@al...> - 2001-06-27 16:16:25
|
To whomever responsible: Please remove me from this email distribution list. Thank You, Bill wj...@al... Find the best deals on the web at AltaVista Shopping! http://www.shopping.altavista.com |
|
From: Vatay N. <va...@op...> - 2001-06-27 07:54:32
|
Hi,
I have defined one procedure in Masm32, I have output as *.lib and I can't
given for mingw
compiler the parameter for this lib or maybe the lib format is wrong? The
linker sendet only
undefined symbol out and not wrong file format for me MASM32 librarry.
Vatay Vil=E1gi Norbert
----------------- Live long OPREA & the Net
This e-mail has been sent with OperaMail, as a free service from
Opera Software, makers of the award-winning Web Browser, Opera. Visit us at http://www.opera.com/
or our portal at: http://www.myopera.com/
Your free e-mail account is waiting at: http://www.operamail.com/
Your free money account is waiting at: http://racio.com/email/ahoj.php3?rf=3DAJW513
|
|
From: Nurhidayat <dh...@ma...> - 2001-06-27 07:40:36
|
I try to correct them. .. 1. I think the correct code is #include <iostream.h> not #include <iostream> 2. The prototype of: void getInput(string, float&); is not match to function declaration: void getInput(string name, float salary) Second parameter must be fixed to: float& salary 3. The same problem also causes of different prototypes to declarations. The other prototypes of: float calcFwt(float, float); float calcFica(float, float); float calcNetPay(float, float, float); void displayInfo(string, float, float, float, float); respectively are not match (type or number of parameters) to function declarations: float calcFwt(float salary, const float FWT_RATE, float fwtTax) float calcFica(float &salary, const float FICA_RATE, float ficaTax) float calcNetPay(float salary, float fwtTax, float ficaTax, float netPay) void displayInfo(string &name, float salary, float fwtTax, float ficaTax, float netPay) If it's hard to make them consistent, dont make prototypes. Just put your functions before main(). ___Nurhidayat___ |
|
From: Brasier <br...@Pu...> - 2001-06-27 03:20:54
|
Hi, I wonder if you can tell me if DEVC++'s OpenGL has glaux libraries?? I am learning from nehe.gamedev.net now and in tutorial 7 they say i need a glaux library so i am going to get devC++ as my compiler but i need to know if it has that... Thanks Steve.B Oh and thanks to johanne and everyone else who helped me with my earlier problems!!! |
|
From: Flavio de S. (<fla...@ne...> - 2001-06-27 00:31:56
|
Hi listers! I am in the very beginning of my C and C++ journey and I have to develop a very difficult project (at least for me). I am working on a temperature measurement system that sends the temperature sensor information to a computer. I want to make a graphic of temperature x time to show the temperature changing trend. It will be an on-line measurement system, then every time temperature changes, graphic will change too. I know it is not easy, but I'd like some help and ideas on how to do that, maybe some good book or tutorial, web page, source code, anything! Now i am in the researching phase of this project, so any kind of help will be highly appreciated. Regards, Flavio de Souza fla...@ne... ICQ:78458203 |
|
From: <Tre...@ao...> - 2001-06-26 16:34:17
|
After compiling the following program and getting no errors, I tried to build
an executable and received external errors. Can anyone help me?
//T7AppE08.cpp - displays employee's name, FWT, FICA tax, and net pay
#include <iostream>
#include <string>
using namespace std;
//function prototypes
void getInput(string, float&);
float calcFwt(float, float);
float calcFica(float, float);
float calcNetPay(float, float, float);
void displayInfo(string, float, float, float, float);
int main()
{
const float FWT_RATE = float(.2);
const float FICA_RATE = float(.08);
string name = "";
float salary = 0.0;
float fwtTax = 0.0;
float ficaTax = 0.0;
float netPay = 0.0;
//enter input items
getInput(name, salary);
//calculate taxes
calcFwt(salary, FWT_RATE);
calcFica(salary, FICA_RATE);
//calculate net pay
calcNetPay(salary, fwtTax, ficaTax);
//display name, gross, taxes, and net
displayInfo(name, salary, fwtTax, ficaTax, netPay);
return 0;
} //end of main function
//*****program-defined functions*****
void getInput(string name, float salary)
{
cout << "Enter employee name: ";
getline(cin, name);
cout << "Enter weekly salary: ";
cin >> salary;
} //end of getInput function
float calcFwt(float salary, const float FWT_RATE, float fwtTax)
{
fwtTax = salary * FWT_RATE;
return fwtTax;
} //end of calcFwt function
float calcFica(float &salary, const float FICA_RATE, float ficaTax)
{
ficaTax = salary * FICA_RATE;
return ficaTax;
} //end of calcFica function
float calcNetPay(float salary, float fwtTax, float ficaTax, float netPay)
{
netPay = salary - (fwtTax + ficaTax);
return netPay;
} //end of calcNetPay function
void displayInfo(string &name, float salary, float fwtTax, float ficaTax,
float netPay)
{
cout << fixed;
cout.precision(2);
cout << "Employee name: " << name << endl;
cout << "Gross pay: $" << salary << endl;
cout << "FWT tax: $" << fwtTax << endl;
cout << "FICA tax: $" << ficaTax << endl;
cout << "Net pay: $" << netPay << endl;
} //end of displayInfo function
|
|
From: Elias P. <eli...@ao...> - 2001-06-26 16:22:39
|
> As far as i have been learning (not much but..) i have learnt ho to build a 3d world > (kinda) but now i have read more and it says stuff about ive just created an engine > -not in that form but along those lines- and i was just wondering if: > > - A 3d engine is a 3d world already made and you just redisign it or what... i am very > new and alough i have found tutorials i have yet found a site that tells me what > everything is. I'd say a 3D engine is the code to display a 3D world. I.e., you could create a 3D world in a 3D-modeller, but then you didn't create an engine. (Like, you create some polygons which look like a human, then I'd consider this as 3D-model or 3D-world.) But if you write code to read the 3D-world-data in a program, and display it, then you did create an engine. Even if all it can do are two function read_3d_from_file() and render_3d_to_screen(). > - I am now starting to programm in OPENGL and i was just wondering -how do you create > corners in games like to walk around a corner and gradually see the bend and how to > create doors that can be opened to then load the room behind it? > > I cant find many OpenGL tutorials that tell me anything like these questions and When > i write it in Forums people think im asking them to do it for me but i just want to > know how to do it...im trying my best to get my foot under the door of the Prograamming > industry but i cant find tutorials for opengl and cant buy online books because of lack > of credit card (im only 16) I keep seeing links to http://nehe.gamedev.net as answer to this sort of question, and I just opened the site - and it seems like it has lots of OpenGL tutorials of any kind. And they seem to be able to compile in dev-c++ with no problem, once you include the opengl .h files. (But it also looks like you could well need several months to understand everything what's going on in OpenGL code :) ) Good luck with 3D programming.. Elias Pschernig |
|
From: Christian W. <Chr...@vo...> - 2001-06-26 15:32:07
|
Hi, did any one have an idea to convert a double to a string pointer ? (not like _fcvt) Thank you for help Diese Mail wurde auf Viren überprüft. This mail was checked for virusses. |
|
From: Ioannis V. <no...@ya...> - 2001-06-26 12:49:05
|
Well sometimes it is slow, but at the end all messages arrive...=20 Friendly, Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Johannes Pretorius Sent: Tuesday, June 26, 2001 11:56 AM To: dev...@li... Subject: Fwd: Re: [Dev-C++] PVOID this is Also my last tIme I am going to try to send this.. CAN somebody PLEASE try to get this damn mailing list fixed up to like me too pleas :).. Wee okay here goes >Date: Tue, 26 Jun 2001 09:39:12 +0200 >To: dev...@li... >From: Johannes Pretorius <joh...@pr...> >Subject: Re: [Dev-C++] PVOID > >If I am correct it is a pointer void yes. Lets say you can replace it=20 >by defining the following > >#define PVOID void * > >this is a geus as I have not used it before. I will quickly check this=20 >up >and see if >I am correct.. (But in Normal Windows Constant rules wise it is a void * ) > >Good luck >Johannes > > > >At 16:42 26/06/2001 +1000, you wrote: >>I have had a big intricate problem for a long time and have finally >>sorted things out so that it's down to this one problem: >>In any file I have somehow included (indirectly, through other included=20 >>files) whenever the word "PVOID" comes up (mainly in winnt.h) it causes a=20 >>syntax error (or sometimes parse error, I think.). What is PVOID, is it a=20 >>void pointer? Do I need it (I don't think so)? How do I stop the error or=20 >>how do I make it so that I don't include PVOID things? >>Thanks in advance to everyone who can reply >>Ramana >>PLEASE ONLY REPLY TO ME VIA THIS LIST OR ra...@my... DO NOT USE=20 >>MY HOTMAIL ADDRESS >>______________________________________________________________________ ___ >>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. >> >> >>_______________________________________________ >>Dev-cpp-users mailing list Dev...@li... >>http://lists.sourceforge.net/lists/listinfo/dev-cpp-users _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Johannes P. <joh...@pr...> - 2001-06-26 09:46:23
|
this is Also my last tIme I am going to try to send this.. CAN somebody PLEASE try to get this damn mailing list fixed up to like me too pleas :).. Wee okay here goes >Date: Tue, 26 Jun 2001 09:39:12 +0200 >To: dev...@li... >From: Johannes Pretorius <joh...@pr...> >Subject: Re: [Dev-C++] PVOID > >If I am correct it is a pointer void yes. Lets say you can replace it by >defining the following > >#define PVOID void * > >this is a geus as I have not used it before. I will quickly check this up= =20 >and see if >I am correct.. (But in Normal Windows Constant rules wise it is a void * ) > >Good luck >Johannes > > > >At 16:42 26/06/2001 +1000, you wrote: >>I have had a big intricate problem for a long time and have finally=20 >>sorted things out so that it=92s down to this one problem: >>In any file I have somehow included (indirectly, through other included=20 >>files) whenever the word =93PVOID=94 comes up (mainly in winnt.h) it= causes a=20 >>syntax error (or sometimes parse error, I think=85). What is PVOID, is it= a=20 >>void pointer? Do I need it (I don=92t think so)? How do I stop the error= or=20 >>how do I make it so that I don=92t include PVOID things? >>Thanks in advance to everyone who can reply >>Ramana >>PLEASE ONLY REPLY TO ME VIA THIS LIST OR ra...@my... DO NOT USE= =20 >>MY HOTMAIL ADDRESS >>_________________________________________________________________________ >>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. >> >> >>_______________________________________________ >>Dev-cpp-users mailing list >>Dev...@li... >>http://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Ramana K. <xr...@ho...> - 2001-06-26 06:43:17
|
You can also still use DOS file writing procedures if you know them: I think it is <fstream object>.read() and .write() -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Gregor Peter Sent: Thursday, 21 June 2001 8:06 AM To: dev cpp Subject: [Dev-C++] File Operations Can someone tell me how to open and write into a textfile (even into a already opened one) Is there under Windows something like fprintf () ? Thanx for answering :-) Gregor _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. |
|
From: Ramana K. <xr...@ho...> - 2001-06-26 06:42:32
|
I have had a big intricate problem for a long time and have finally sorted things out so that its down to this one problem: In any file I have somehow included (indirectly, through other included files) whenever the word PVOID comes up (mainly in winnt.h) it causes a syntax error (or sometimes parse error, I think ). What is PVOID, is it a void pointer? Do I need it (I dont think so)? How do I stop the error or how do I make it so that I dont include PVOID things? Thanks in advance to everyone who can reply Ramana PLEASE ONLY REPLY TO ME VIA THIS LIST OR ra...@my... DO NOT USE MY HOTMAIL ADDRESS _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. |
|
From: Ramana K. <xr...@ho...> - 2001-06-26 06:41:19
|
Following code works for me, dont think I included any important headers
<hInst> = the Instance of your program you can use a pointer to get this
from your main() function
<name> = is a char array containing the name in the resource of your picture
e.g:
MYPICTURE BITMAP C:/pic.bmp
//this is the code, it is part of a class function def, sorry, I just copied
out of my prog:
HBITMAP itsPicture;
ItsPicture = LoadBitmap(<hInst>,<name>);
void Room::Draw(HDC hdcWindow) const // just a function in my class
{
HDC hdcMemory;
hdcMemory = CreateCompatibleDC(hdcWindow);
RECT rc; //create a rectangle
rc.left = 0; //filled with black
rc.top = 0; //to act as a mask
rc.right = bm.bmWidth;
rc.bottom = bm.bmHeight;
FillRect(hdcWindow, &rc, (HBRUSH)GetStockObject((BLACK_BRUSH)));
SelectObject(hdcMemory, itsPicture);
BitBlt(hdcWindow, 0, 0, bm.bmWidth, bm.bmHeight, hdcMemory, 0, 0, SRCPAINT);
DeleteDC(hdcMemory);
}
Ramana
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Gregor Peter
Sent: Sunday, 24 June 2001 6:36 AM
To: dev cpp
Subject: [Dev-C++] displaying images during runtime
Hi there,
I like to display several images during runtime of my programm.
Charles Petzold uses in his book "Programming Windows" a function called
BITMAPFILEHEADER* DibLoadImage( szName filename )
from DIBFILE.H to manage this.
#include "dibfile.h"
BITMAPFILEHEADER* pbmfh;
pbmfh = DibLoadImage( "myFile.bmp" );
...
SetDIBitsToDevice( pbmfh.cx, pbmfh.cy, ... );
DevC++ doesn't know anything about the header-file and it's functions :-(
PS:
LoadImage( ) won't work cause it returns a HANDLE instead of a
BITMAPFILEHEADER.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
|
|
From: Luigi S. <gi...@li...> - 2001-06-25 23:54:38
|
I had some suspects that argv was under the control of the OS ... At 12.22 25/06/01 +0200, you wrote: >To be honest gisan >------------------------------ > >Deleteing (Freeing ) the System Memory is not a Good Ide . Meaning freeing >argv is not a good Idea. As I ... -- gisan |
|
From: Brasier <br...@Pu...> - 2001-06-25 21:00:00
|
Hi, This is odviously a dumb question but.... As far as i have been learning (not much but..) i have learnt ho to build a 3d world (kinda) but now i have read more and it says stuff about ive just created an engine -not in that form but along those lines- and i was just wondering if: - A 3d engine is a 3d world already made and you just redisign it or what... i am very new and alough i have found tutorials i have yet found a site that tells me what everything is. - I am now starting to programm in OPENGL and i was just wondering -how do you create corners in games like to walk around a corner and gradually see the bend and how to create doors that can be opened to then load the room behind it? I cant find many OpenGL tutorials that tell me anything like these questions and When i write it in Forums people think im asking them to do it for me but i just want to know how to do it...im trying my best to get my foot under the door of the Prograamming industry but i cant find tutorials for opengl and cant buy online books because of lack of credit card (im only 16) i hope this makes sense.... Thanks in advance Steve.B |