dev-cpp-users Mailing List for Dev-C++ (Page 679)
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: Vassili <v.v...@bt...> - 2001-08-03 02:19:04
|
About the dll, don't forget that this is a hidden file and won't show =
unless you specify it. To do this, click view tab, select folder =
options, select view, and check the "show all files". You should now be =
able to view all the files on your system.
best of luck
Vas
----- Original Message -----=20
From: Chris Hague=20
To: dev...@li...=20
Sent: Thursday, August 02, 2001 11:16 PM
Subject: Re: [Dev-C++] DirectX problem, help needed
nm, I got the.dll file, though I still receive 31 error messages after =
I reconfigured everything according to that file. Here are some of the =
error messages:=20
21 c:\mssdktmp\dx8vcsdk\include\dmusicc.h
from =
C:\MSSDKTMP\DX8VCSDK\SAMPLES\MULTIM~1\COMMON\INCLUDE\DMUtil.h:11,
15 test2.cpp
C:\MSSDKTMP\DX8VCSDK\INCLUDE\dmdls.h:25: warning: `MAKEFOURCC' =
redefined
21 c:\dev-c_~1\include\mmsystem.h
warning: this is the location of the previous definition
27 c:\mssdktmp\dx8vcsdk\include\d3dx8.h
1075 c:\mssdktmp\dx8vcsdk\include\d3dx8math.h
from C:\MSSDKTMP\DX8VCSDK\INCLUDE\D3DX8.h:27,
10 test2.cpp
C:\MSSDKTMP\DX8VCSDK\INCLUDE\d3dx8math.inl: In method `FLOAT & =
D3DXMATRIX::operator ()(unsigned int, unsigned int)':
484 c:\mssdktmp\dx8vcsdk\include\d3dx8math.inl
`m' undeclared (first use this function)
1516 c:\mssdktmp\dx8vcsdk\include\d3dx8math.inl
`struct D3DXMATRIX' has no member named `m' (note: this error =
messagea appeared several times)
Does anyone know why this is? I do not even use the struct D3DMATRIX. =
Please reply with info, thanks.
Chris Hague <fie...@ya...> wrote:=20
hmm, I downloaded the file, though the.dll folder was empty. Does =
anyone have the necessary .dll files that they could send to me at =
fie...@ya... ? Thanks.=20
Vassili <v.v...@bt...> wrote:=20
You can find DirectX 8 files for Dev-C at this place as well as =
tutorials and other stuff.
http://www.openrpgs.com/downloads/other/page.php
best of luck
Vas.
----- Original Message -----=20
From: Chris Hague=20
To: dev...@li...=20
Sent: Thursday, August 02, 2001 3:23 AM
Subject: RE: [Dev-C++] DirectX problem, help needed
hmm, I believe that the Dev C++ .h files are all diffrent from =
the DirectX SDK ones. However, what .dll files do I need? I am not sure =
whether I have any. Where can I get the ones that I need, and where =
would they be found at if I had them on my comp? Please reply with info, =
thanks.=20
Fierytycoon=20
Ramana Kumar <ra...@my...> wrote:=20
Yes, I think you must make sure that Dev-C++ is only using =
DirectX header files where there are dev-c++ header files of the same =
name.
In English:
If there is a file in DirectX include directory and the same =
file in Dev-C++ include directory (c:\dev-c++\include) move the dev-c++ =
one somewhere safe and put the directx one in its place. Also you might =
need some platform SDK files. By the way, using the "Microsoft" files =
maybe the solution because the files are new, updated, and more =
compatible with directx.
=20
Before you mess around with your files though, maybe you =
should check some other stuff, like all the libs are linked correctly, =
you are using the right functions and you have the right dlls available =
(you might need vfw32.dll, for example)
=20
I hope this helps
Ramana
=20
=20
=20
-----Original Message-----
From: dev...@li... =
[mailto:dev...@li...]On Behalf Of Chris =
Hague
Sent: Tuesday, 31 July 2001 9:36 AM
To: dev...@li...
Subject: [Dev-C++] DirectX problem, help needed
=20
Hi, I have linked the compiler with the .h and .lib =
directories in the DirectX SDK, though I receive 31 error messages every =
time I attempt to compile a program that uses any directx header files. =
Does anyone know how to fix this? Does anyone know how to setup DirectX =
at all?
Please post info here or e-mail me, thanks.
Fierytycoon
=20
----------------------------------------------------------------------
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! =
Messenger
http://phonecard.yahoo.com/
------------------------------------------------------------------------
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! =
Messenger
http://phonecard.yahoo.com/
-------------------------------------------------------------------------=
---
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! =
Messenger
http://phonecard.yahoo.com/
-------------------------------------------------------------------------=
-----
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! =
Messenger
http://phonecard.yahoo.com/
|
|
From: <ste...@ge...> - 2001-08-03 01:18:12
|
Hi all! I'm having serious problems with my lighting in OpenGL. I've read some = tutorials on the subject at Nehe's Site. When I make a room out of 4 walls (4x1) and floor and ceeling (4x4), the = light won't lit up the floor and ceeling properly. Where can I learn more about light in OpenGL? Thanks! |
|
From: Luigi S. <gi...@li...> - 2001-08-03 00:27:59
|
Hi ! Try this: from Dev C++ IDE, pull down "Options" and then "Compiler options" click on the "C/C++ compiler" tab and check the "Inhibit all warnings messages" At 20.47 30/07/01 -0400, you wrote: >I don't see any button to ignore compiler warnings how can you? > > >_________________________________________________________ >Do You Yahoo!? >Get your free @yahoo.com address at http://mail.yahoo.com > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >http://lists.sourceforge.net/lists/listinfo/dev-cpp-users -- gisan gi...@li... |
|
From: Alan T. <ala...@3n...> - 2001-08-02 22:16:45
|
Lorenzo,
I get exactly the same results from your code and mine. It =
still does not appear to be right. I don`t understand. A character =
occupies a byte, so I should be seeing each individual byte.
Anybody know what is going on?
=
Thanks, Alan
From: "Lorenzo" <co...@in...>
To: <dev...@li...>
Subject: Re: [Dev-C++] reading bytes
Date: Wed, 1 Aug 2001 11:27:45 +0200
Reply-To: dev...@li...
I have try this code:
#include <fstream>
using namespace std;
int main(int argc, char *argv[])
{
char c;
int byte_no =3D 0;
ifstream in("test.xls", ios::in | ios::binary);
if (!in.is_open())
{
cerr << "error open file" << endl;
return 1;
}
while (in.get(c))
{
if ((byte_no >=3D 0) && (byte_no <=3D 7))
cout << endl << "byte " << byte_no << " is " <<
(short)(unsigned char)c << endl;
byte_no++;
}
in.close();
return 0;
}
and display the exact value of the excel file, try again !
-------------------------------------------------------------------------=
---
|
|
From: Chris H. <fie...@ya...> - 2001-08-02 22:16:34
|
nm, I got the.dll file, though I still receive 31 error messages after I reconfigured everything according to that file. Here are some of the error messages: 21 c:\mssdktmp\dx8vcsdk\include\dmusicc.h from C:\MSSDKTMP\DX8VCSDK\SAMPLES\MULTIM~1\COMMON\INCLUDE\DMUtil.h:11, 15 test2.cpp C:\MSSDKTMP\DX8VCSDK\INCLUDE\dmdls.h:25: warning: `MAKEFOURCC' redefined 21 c:\dev-c_~1\include\mmsystem.h warning: this is the location of the previous definition 27 c:\mssdktmp\dx8vcsdk\include\d3dx8.h 1075 c:\mssdktmp\dx8vcsdk\include\d3dx8math.h from C:\MSSDKTMP\DX8VCSDK\INCLUDE\D3DX8.h:27, 10 test2.cpp C:\MSSDKTMP\DX8VCSDK\INCLUDE\d3dx8math.inl: In method `FLOAT & D3DXMATRIX::operator ()(unsigned int, unsigned int)': 484 c:\mssdktmp\dx8vcsdk\include\d3dx8math.inl `m' undeclared (first use this function) 1516 c:\mssdktmp\dx8vcsdk\include\d3dx8math.inl `struct D3DXMATRIX' has no member named `m' (note: this error messagea appeared several times) Does anyone know why this is? I do not even use the struct D3DMATRIX. Please reply with info, thanks. Chris Hague <fie...@ya...> wrote: hmm, I downloaded the file, though the.dll folder was empty. Does anyone have the necessary .dll files that they could send to me at fie...@ya... ? Thanks. Vassili <v.v...@bt...> wrote: You can find DirectX 8 files for Dev-C at this place as well as tutorials and other stuff. http://www.openrpgs.com/downloads/other/page.php best of luck Vas.----- Original Message ----- From: Chris Hague To: dev...@li... Sent: Thursday, August 02, 2001 3:23 AMSubject: RE: [Dev-C++] DirectX problem, help needed hmm, I believe that the Dev C++ .h files are all diffrent from the DirectX SDK ones. However, what .dll files do I need? I am not sure whether I have any. Where can I get the ones that I need, and where would they be found at if I had them on my comp? Please reply with info, thanks. Fierytycoon Ramana Kumar <ra...@my...> wrote: v\:* { BEHAVIOR: url(#default#VML)}o\:* { BEHAVIOR: url(#default#VML)}w\:* { BEHAVIOR: url(#default#VML)}.shape { BEHAVIOR: url(#default#VML)} Yes, I think you must make sure that Dev-C++ is only using DirectX header files where there are dev-c++ header files of the same name. In English: If there is a file in DirectX include directory and the same file in Dev-C++ include directory (c:\dev-c++\include) move the dev-c++ one somewhere safe and put the directx one in its place. Also you might need some platform SDK files. By the way, using the Microsoft files maybe the solution because the files are new, updated, and more compatible with directx. Before you mess around with your files though, maybe you should check some other stuff, like all the libs are linked correctly, you are using the right functions and you have the right dlls available (you might need vfw32.dll, for example) I hope this helps Ramana -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Chris Hague Sent: Tuesday, 31 July 2001 9:36 AM To: dev...@li... Subject: [Dev-C++] DirectX problem, help needed Hi, I have linked the compiler with the .h and .lib directories in the DirectX SDK, though I receive 31 error messages every time I attempt to compile a program that uses any directx header files. Does anyone know how to fix this? Does anyone know how to setup DirectX at all? Please post info here or e-mail me, thanks. Fierytycoon --------------------------------- Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ --------------------------------- Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ --------------------------------- Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ --------------------------------- Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ |
|
From: Chris H. <fie...@ya...> - 2001-08-02 22:15:49
|
nm, I got the.dll file, though I still receive 31 error messages after I reconfigured everything according to that file. Here are some of the error messages: 21 c:\mssdktmp\dx8vcsdk\include\dmusicc.h from C:\MSSDKTMP\DX8VCSDK\SAMPLES\MULTIM~1\COMMON\INCLUDE\DMUtil.h:11, 15 test2.cpp C:\MSSDKTMP\DX8VCSDK\INCLUDE\dmdls.h:25: warning: `MAKEFOURCC' redefined 21 c:\dev-c_~1\include\mmsystem.h warning: this is the location of the previous definition 27 c:\mssdktmp\dx8vcsdk\include\d3dx8.h 1075 c:\mssdktmp\dx8vcsdk\include\d3dx8math.h from C:\MSSDKTMP\DX8VCSDK\INCLUDE\D3DX8.h:27, 10 test2.cpp C:\MSSDKTMP\DX8VCSDK\INCLUDE\d3dx8math.inl: In method `FLOAT & D3DXMATRIX::operator ()(unsigned int, unsigned int)': 484 c:\mssdktmp\dx8vcsdk\include\d3dx8math.inl `m' undeclared (first use this function) 1516 c:\mssdktmp\dx8vcsdk\include\d3dx8math.inl `struct D3DXMATRIX' has no member named `m' (note: this error messagea appeared several times) Does anyone know why this is? I do not even use the struct D3DMATRIX. Please reply with info, thanks. Fierytycoon Chris Hague <fie...@ya...> wrote: hmm, I downloaded the file, though the.dll folder was empty. Does anyone have the necessary .dll files that they could send to me at fie...@ya... ? Thanks. Vassili <v.v...@bt...> wrote: You can find DirectX 8 files for Dev-C at this place as well as tutorials and other stuff. http://www.openrpgs.com/downloads/other/page.php best of luck Vas.----- Original Message ----- From: Chris Hague To: dev...@li... Sent: Thursday, August 02, 2001 3:23 AMSubject: RE: [Dev-C++] DirectX problem, help needed hmm, I believe that the Dev C++ .h files are all diffrent from the DirectX SDK ones. However, what .dll files do I need? I am not sure whether I have any. Where can I get the ones that I need, and where would they be found at if I had them on my comp? Please reply with info, thanks. Fierytycoon Ramana Kumar <ra...@my...> wrote: v\:* { BEHAVIOR: url(#default#VML)}o\:* { BEHAVIOR: url(#default#VML)}w\:* { BEHAVIOR: url(#default#VML)}.shape { BEHAVIOR: url(#default#VML)} Yes, I think you must make sure that Dev-C++ is only using DirectX header files where there are dev-c++ header files of the same name. In English: If there is a file in DirectX include directory and the same file in Dev-C++ include directory (c:\dev-c++\include) move the dev-c++ one somewhere safe and put the directx one in its place. Also you might need some platform SDK files. By the way, using the Microsoft files maybe the solution because the files are new, updated, and more compatible with directx. Before you mess around with your files though, maybe you should check some other stuff, like all the libs are linked correctly, you are using the right functions and you have the right dlls available (you might need vfw32.dll, for example) I hope this helps Ramana -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Chris Hague Sent: Tuesday, 31 July 2001 9:36 AM To: dev...@li... Subject: [Dev-C++] DirectX problem, help needed Hi, I have linked the compiler with the .h and .lib directories in the DirectX SDK, though I receive 31 error messages every time I attempt to compile a program that uses any directx header files. Does anyone know how to fix this? Does anyone know how to setup DirectX at all? Please post info here or e-mail me, thanks. Fierytycoon --------------------------------- Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ --------------------------------- Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ --------------------------------- Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ --------------------------------- Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ |
|
From: <jsc...@gm...> - 2001-08-02 20:32:58
|
Hello, Dr. Dinesh J. Karia In helping you, I would advice you to by a training book like : Dirk Louis, "I am learning C++". It containes a learning CD and tells you about Windows, MFC and has examples. > Can I use my code written in Turbo C++ for dos applications? When using the option "Console Application" then the windows entry point is shunned - so normal C /C++ will work like with in DOS. (Apart from Graphics which is different everywhere). Is there any help file available on the internet for Dev-Cpp command syntax? That is an interesting question - I would also like to know this. But I think there is more special about windows in genreal than in DEV CPP. But if you obtain a resource for special DEV CPP , I'd be pleased, if you could give me a hint. best wishes to You nad much greetings to far india ! J=FCrgen, Germany On 1 Aug 2001, at 0:34, Dr. Dinesh J. Karia wrote: > Dear All, > I am a newbee to windows programming. How should I learn about it. I= n fact, in Dev-cpp the help is not available about the commands. > Can I use my code written in Turbo C++ for dos applications? > Is there any help file available on the internet for Dev-Cpp command= syntax? Will the code from Charles Petzold work well with Dev-cpp? > > Please help. > > > > Dinesh J. Karia > Department of Mathematics > Sardar Patel University > Vallabh Vidyanagar > Gujarat 388120 > INDIA > > Home: din...@ea... > Office: din...@sp... > Roaming: din...@ya... > > > "A mathematician is a machine for turning coffee into theorems." > > -- Paul Erdos > ---------------------------------------------------------------- > J=FCrgen Schuhmacher jsc...@gm... |
|
From: Dave H. <dhe...@ch...> - 2001-08-02 19:05:12
|
I may be able to help you out some...
Any function that is declared "static" cannot be called by any routine th=
at
is not contained in the same source file. If you were to have two files,
"main.cpp" and "bv.cpp", in your project, and initBV() was contained in
"bv.cpp" and declared as "static", functions in "main.cpp" would not be a=
ble
to call it.
It boils down to whether or not the function handle "initBV" ends up in t=
he
global symbol table used by the linker. If it's declared "static", the
handle won't be in the table, and the linker won't be able to resolve it.
This is good for limiting scope of callability when you don't have C++
classes with private elements. You might compare it to a private method =
in
a class.
The function itself exists and is compiled just as any other function.
Consequently, the variable "i" will be put on the stack with any other lo=
cal
variables.
Hope this helps,
Dave
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Albert
Vilella Bertran
Sent: Thursday, August 02, 2001 7:48 AM
To: dev...@li...
Subject: [Dev-C++] What is a static function
I don't understand what is like to declare a function as "static".
For example:
static void initBV() {
if (!inittedBV)
{
int i;
for (i=3D0; i<ArraySize(bV); i++)
bV[i] =3D -1;
bV['a'] =3D bV['A'] =3D A_B_V;
bV['b'] =3D bV['B'] =3D B_B_V;
bV['c'] =3D bV['C'] =3D C_B_V;
bV['d'] =3D bV['D'] =3D D_B_V;
bV['e'] =3D bV['E'] =3D E_B_V;
inittedBV =3D TRUE;
}
}
What is that code doing?
If I "malloc" something inside the function, what happens? Is the space
able to be freed outside of the function?
How is that "int i" variable managed, is it created always but not used
unless the "if" condition is true?
Can I put this kind of conditional declaration of functions in a non-stat=
ic
function?
I don't know much of it, you see! :)
_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger: Comunicaci=F3n instant=E1nea gratis con tu gente -
http://messenger.yahoo.es
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Chris H. <fie...@ya...> - 2001-08-02 17:50:53
|
hmm, I downloaded the file, though the.dll folder was empty. Does anyone have the necessary .dll files that they could send to me at fie...@ya... ? Thanks. Vassili <v.v...@bt...> wrote: You can find DirectX 8 files for Dev-C at this place as well as tutorials and other stuff. http://www.openrpgs.com/downloads/other/page.php best of luck Vas.----- Original Message ----- From: Chris Hague To: dev...@li... Sent: Thursday, August 02, 2001 3:23 AMSubject: RE: [Dev-C++] DirectX problem, help needed hmm, I believe that the Dev C++ .h files are all diffrent from the DirectX SDK ones. However, what .dll files do I need? I am not sure whether I have any. Where can I get the ones that I need, and where would they be found at if I had them on my comp? Please reply with info, thanks. Fierytycoon Ramana Kumar <ra...@my...> wrote: v\:* { BEHAVIOR: url(#default#VML)}o\:* { BEHAVIOR: url(#default#VML)}w\:* { BEHAVIOR: url(#default#VML)}.shape { BEHAVIOR: url(#default#VML)} Yes, I think you must make sure that Dev-C++ is only using DirectX header files where there are dev-c++ header files of the same name. In English: If there is a file in DirectX include directory and the same file in Dev-C++ include directory (c:\dev-c++\include) move the dev-c++ one somewhere safe and put the directx one in its place. Also you might need some platform SDK files. By the way, using the Microsoft files maybe the solution because the files are new, updated, and more compatible with directx. Before you mess around with your files though, maybe you should check some other stuff, like all the libs are linked correctly, you are using the right functions and you have the right dlls available (you might need vfw32.dll, for example) I hope this helps Ramana -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Chris Hague Sent: Tuesday, 31 July 2001 9:36 AM To: dev...@li... Subject: [Dev-C++] DirectX problem, help needed Hi, I have linked the compiler with the .h and .lib directories in the DirectX SDK, though I receive 31 error messages every time I attempt to compile a program that uses any directx header files. Does anyone know how to fix this? Does anyone know how to setup DirectX at all? Please post info here or e-mail me, thanks. Fierytycoon --------------------------------- Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ --------------------------------- Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ --------------------------------- Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ |
|
From: Chris H. <fie...@ya...> - 2001-08-02 17:50:03
|
hmm, I downloaded the file, though the.dll folder was empty. Does anyone have the necessary .dll files that they could send to me at fie...@ya... ? Thanks. Vassili <v.v...@bt...> wrote: You can find DirectX 8 files for Dev-C at this place as well as tutorials and other stuff. http://www.openrpgs.com/downloads/other/page.php best of luck Vas.----- Original Message ----- From: Chris Hague To: dev...@li... Sent: Thursday, August 02, 2001 3:23 AMSubject: RE: [Dev-C++] DirectX problem, help needed hmm, I believe that the Dev C++ .h files are all diffrent from the DirectX SDK ones. However, what .dll files do I need? I am not sure whether I have any. Where can I get the ones that I need, and where would they be found at if I had them on my comp? Please reply with info, thanks. Fierytycoon Ramana Kumar <ra...@my...> wrote: v\:* { BEHAVIOR: url(#default#VML)}o\:* { BEHAVIOR: url(#default#VML)}w\:* { BEHAVIOR: url(#default#VML)}.shape { BEHAVIOR: url(#default#VML)} Yes, I think you must make sure that Dev-C++ is only using DirectX header files where there are dev-c++ header files of the same name. In English: If there is a file in DirectX include directory and the same file in Dev-C++ include directory (c:\dev-c++\include) move the dev-c++ one somewhere safe and put the directx one in its place. Also you might need some platform SDK files. By the way, using the Microsoft files maybe the solution because the files are new, updated, and more compatible with directx. Before you mess around with your files though, maybe you should check some other stuff, like all the libs are linked correctly, you are using the right functions and you have the right dlls available (you might need vfw32.dll, for example) I hope this helps Ramana -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Chris Hague Sent: Tuesday, 31 July 2001 9:36 AM To: dev...@li... Subject: [Dev-C++] DirectX problem, help needed Hi, I have linked the compiler with the .h and .lib directories in the DirectX SDK, though I receive 31 error messages every time I attempt to compile a program that uses any directx header files. Does anyone know how to fix this? Does anyone know how to setup DirectX at all? Please post info here or e-mail me, thanks. Fierytycoon --------------------------------- Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ --------------------------------- Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ --------------------------------- Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ |
|
From: Chris H. <fie...@ya...> - 2001-08-02 17:50:02
|
hmm, I downloaded the file, though the.dll folder was empty. Does anyone have the necessary .dll files that they could send to me at fie...@ya... ? Thanks. Vassili <v.v...@bt...> wrote: You can find DirectX 8 files for Dev-C at this place as well as tutorials and other stuff. http://www.openrpgs.com/downloads/other/page.php best of luck Vas.----- Original Message ----- From: Chris Hague To: dev...@li... Sent: Thursday, August 02, 2001 3:23 AMSubject: RE: [Dev-C++] DirectX problem, help needed hmm, I believe that the Dev C++ .h files are all diffrent from the DirectX SDK ones. However, what .dll files do I need? I am not sure whether I have any. Where can I get the ones that I need, and where would they be found at if I had them on my comp? Please reply with info, thanks. Fierytycoon Ramana Kumar <ra...@my...> wrote: v\:* { BEHAVIOR: url(#default#VML)}o\:* { BEHAVIOR: url(#default#VML)}w\:* { BEHAVIOR: url(#default#VML)}.shape { BEHAVIOR: url(#default#VML)} Yes, I think you must make sure that Dev-C++ is only using DirectX header files where there are dev-c++ header files of the same name. In English: If there is a file in DirectX include directory and the same file in Dev-C++ include directory (c:\dev-c++\include) move the dev-c++ one somewhere safe and put the directx one in its place. Also you might need some platform SDK files. By the way, using the Microsoft files maybe the solution because the files are new, updated, and more compatible with directx. Before you mess around with your files though, maybe you should check some other stuff, like all the libs are linked correctly, you are using the right functions and you have the right dlls available (you might need vfw32.dll, for example) I hope this helps Ramana -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Chris Hague Sent: Tuesday, 31 July 2001 9:36 AM To: dev...@li... Subject: [Dev-C++] DirectX problem, help needed Hi, I have linked the compiler with the .h and .lib directories in the DirectX SDK, though I receive 31 error messages every time I attempt to compile a program that uses any directx header files. Does anyone know how to fix this? Does anyone know how to setup DirectX at all? Please post info here or e-mail me, thanks. Fierytycoon --------------------------------- Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ --------------------------------- Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ --------------------------------- Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ |
|
From: Ioannis V. <no...@ya...> - 2001-08-02 17:29:06
|
static functions or global variables have scope only at the compilation unit (in normal computers: file) where they are defined. They can not be seen outside of their compilation unit. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Albert Vilella Bertran > Sent: Thursday, August 02, 2001 2:48 PM > To: dev...@li... > Subject: [Dev-C++] What is a static function >=20 >=20 > I don't understand what is like to declare a function as=20 > "static". For example: >=20 > static void initBV() { > if (!inittedBV) > { > int i; > for (i=3D0; i<ArraySize(bV); i++) > bV[i] =3D -1; > bV['a'] =3D bV['A'] =3D A_B_V; > bV['b'] =3D bV['B'] =3D B_B_V; > bV['c'] =3D bV['C'] =3D C_B_V; > bV['d'] =3D bV['D'] =3D D_B_V; > bV['e'] =3D bV['E'] =3D E_B_V; > inittedBV =3D TRUE; > } > } >=20 > What is that code doing? > If I "malloc" something inside the function, what happens? Is=20 > the space able to be freed outside of the function? How is=20 > that "int i" variable managed, is it created always but not=20 > used unless the "if" condition is true? Can I put this kind=20 > of conditional declaration of functions in a non-static function? >=20 > I don't know much of it, you see! :) >=20 >=20 > _______________________________________________________________ > Do You Yahoo!? > Yahoo! Messenger: Comunicaci=F3n instant=E1nea gratis con tu=20 > gente - http://messenger.yahoo.es >=20 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users >=20 |
|
From: <vil...@ya...> - 2001-08-02 16:46:58
|
> I don't
> understand what is like to declare a function as "static".
> > For example:
> >
> > static void initBV() {
> > if (!inittedBV)
> > {
> > int i;
> > for (i=0; i<ArraySize(bV); i++)
> > bV[i] = -1;
> > bV['a'] = bV['A'] = A_B_V;
> > bV['b'] = bV['B'] = B_B_V;
> > bV['c'] = bV['C'] = C_B_V;
> > bV['d'] = bV['D'] = D_B_V;
> > bV['e'] = bV['E'] = E_B_V;
> > inittedBV = TRUE;
> > }
> > }
> >
> > What is that code doing?
> > If I "malloc" something inside the function, what happens? Is the space
> > able to be freed outside of the function?
> > How is that "int i" variable managed, is it created always but not used
> > unless the "if" condition is true?
> > Can I put this kind of conditional declaration of functions in a non-static
> > function?
> >
> > I don't know much of it, you see! :)
> >
> >
> > _______________________________________________________________
> > Do You Yahoo!?
> > Yahoo! Messenger: Comunicación instantánea gratis con tu gente -
> > http://messenger.yahoo.es
> >
>
> _______________________________________________________________
> Do You Yahoo!?
> Yahoo! Messenger: Comunicación instantánea gratis con tu gente -
> http://messenger.yahoo.es
>
_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger: Comunicación instantánea gratis con tu gente -
http://messenger.yahoo.es
|
|
From: Tomas D. <do...@vo...> - 2001-08-02 15:17:51
|
Hi Albert,
Well, functions declared with static memory class
can't be used in (called from) another module (file) then the one they ar=
e
declared in. It is the same with variables.
Have a look at this...
static void f(void); // this global function and
static int n; // this global variable
// are visible only in the module they are
declared in
Have you got the idea? An easy stuff...
If you want to know what is all this for, just ask.
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...]On Behalf Of
> Albert Vilella Bertran
> Sent: Thursday, August 02, 2001 2:48 PM
> To: dev...@li...
> Subject: [Dev-C++] What is a static function
>
>
> I don't understand what is like to declare a function as "static".
> For example:
>
> static void initBV() {
> if (!inittedBV)
> {
> int i;
> for (i=3D0; i<ArraySize(bV); i++)
> bV[i] =3D -1;
> bV['a'] =3D bV['A'] =3D A_B_V;
> bV['b'] =3D bV['B'] =3D B_B_V;
> bV['c'] =3D bV['C'] =3D C_B_V;
> bV['d'] =3D bV['D'] =3D D_B_V;
> bV['e'] =3D bV['E'] =3D E_B_V;
> inittedBV =3D TRUE;
> }
> }
>
> What is that code doing?
> If I "malloc" something inside the function, what happens? Is the spac=
e
> able to be freed outside of the function?
yes, you can use the memory block and free it, too, if you bring the hand=
ler
of the memory block out of your function.
> How is that "int i" variable managed, is it created always but not use=
d
> unless the "if" condition is true?
it is created always, I deeply believe
functions like this are completely build before they are called
> Can I put this kind of conditional declaration of functions in a
> non-static
> function?
yeah!
>
> I don't know much of it, you see! :)
>
Heh.
Have a good time.
>
> _______________________________________________________________
> Do You Yahoo!?
> Yahoo! Messenger: Comunicaci=F3n instant=E1nea gratis con tu gente -
> http://messenger.yahoo.es
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
|
|
From: <vil...@ya...> - 2001-08-02 14:00:29
|
I don't understand what is like to declare a function as "static".
For example:
static void initBV() {
if (!inittedBV)
{
int i;
for (i=0; i<ArraySize(bV); i++)
bV[i] = -1;
bV['a'] = bV['A'] = A_B_V;
bV['b'] = bV['B'] = B_B_V;
bV['c'] = bV['C'] = C_B_V;
bV['d'] = bV['D'] = D_B_V;
bV['e'] = bV['E'] = E_B_V;
inittedBV = TRUE;
}
}
What is that code doing?
If I "malloc" something inside the function, what happens? Is the space
able to be freed outside of the function?
How is that "int i" variable managed, is it created always but not used
unless the "if" condition is true?
Can I put this kind of conditional declaration of functions in a non-static
function?
I don't know much of it, you see! :)
_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger: Comunicación instantánea gratis con tu gente -
http://messenger.yahoo.es
|
|
From: <vil...@ya...> - 2001-08-02 13:19:33
|
--- Albert Vilella Bertran <vil...@ya...> escribió: > I don't
understand what is like to declare a function as "static".
> For example:
>
> static void initBV() {
> if (!inittedBV)
> {
> int i;
> for (i=0; i<ArraySize(bV); i++)
> bV[i] = -1;
> bV['a'] = bV['A'] = A_B_V;
> bV['b'] = bV['B'] = B_B_V;
> bV['c'] = bV['C'] = C_B_V;
> bV['d'] = bV['D'] = D_B_V;
> bV['e'] = bV['E'] = E_B_V;
> inittedBV = TRUE;
> }
> }
>
> What is that code doing?
> If I "malloc" something inside the function, what happens? Is the space
> able to be freed outside of the function?
> How is that "int i" variable managed, is it created always but not used
> unless the "if" condition is true?
> Can I put this kind of conditional declaration of functions in a non-static
> function?
>
> I don't know much of it, you see! :)
>
>
> _______________________________________________________________
> Do You Yahoo!?
> Yahoo! Messenger: Comunicación instantánea gratis con tu gente -
> http://messenger.yahoo.es
>
_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger: Comunicación instantánea gratis con tu gente -
http://messenger.yahoo.es
|
|
From: Vassili <v.v...@bt...> - 2001-08-02 12:39:58
|
You can find DirectX 8 files for Dev-C at this place as well as = tutorials and other stuff. http://www.openrpgs.com/downloads/other/page.php best of luck Vas. ----- Original Message -----=20 From: Chris Hague=20 To: dev...@li...=20 Sent: Thursday, August 02, 2001 3:23 AM Subject: RE: [Dev-C++] DirectX problem, help needed hmm, I believe that the Dev C++ .h files are all diffrent from the = DirectX SDK ones. However, what .dll files do I need? I am not sure = whether I have any. Where can I get the ones that I need, and where = would they be found at if I had them on my comp? Please reply with info, = thanks.=20 Fierytycoon=20 Ramana Kumar <ra...@my...> wrote:=20 Yes, I think you must make sure that Dev-C++ is only using DirectX = header files where there are dev-c++ header files of the same name. In English: If there is a file in DirectX include directory and the same file in = Dev-C++ include directory (c:\dev-c++\include) move the dev-c++ one = somewhere safe and put the directx one in its place. Also you might need = some platform SDK files. By the way, using the "Microsoft" files maybe = the solution because the files are new, updated, and more compatible = with directx. =20 Before you mess around with your files though, maybe you should = check some other stuff, like all the libs are linked correctly, you are = using the right functions and you have the right dlls available (you = might need vfw32.dll, for example) =20 I hope this helps Ramana =20 =20 =20 -----Original Message----- From: dev...@li... = [mailto:dev...@li...]On Behalf Of Chris = Hague Sent: Tuesday, 31 July 2001 9:36 AM To: dev...@li... Subject: [Dev-C++] DirectX problem, help needed =20 Hi, I have linked the compiler with the .h and .lib directories in = the DirectX SDK, though I receive 31 error messages every time I attempt = to compile a program that uses any directx header files. Does anyone = know how to fix this? Does anyone know how to setup DirectX at all? Please post info here or e-mail me, thanks. Fierytycoon =20 -------------------------------------------------------------------------= --- Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! = Messenger http://phonecard.yahoo.com/ -------------------------------------------------------------------------= ----- Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! = Messenger http://phonecard.yahoo.com/ |
|
From: Chris H. <fie...@ya...> - 2001-08-02 02:23:44
|
hmm, I believe that the Dev C++ .h files are all diffrent from the DirectX SDK ones. However, what .dll files do I need? I am not sure whether I have any. Where can I get the ones that I need, and where would they be found at if I had them on my comp? Please reply with info, thanks.
Fierytycoon
Ramana Kumar <ra...@my...> wrote:
v\:* {behavior:url(#default#VML);}o\:* {behavior:url(#default#VML);}w\:* {behavior:url(#default#VML);}.shape {behavior:url(#default#VML);}
Yes, I think you must make sure that Dev-C++ is only using DirectX header files where there are dev-c++ header files of the same name.
In English:
If there is a file in DirectX include directory and the same file in Dev-C++ include directory (c:\dev-c++\include) move the dev-c++ one somewhere safe and put the directx one in its place. Also you might need some platform SDK files. By the way, using the Microsoft files maybe the solution because the files are new, updated, and more compatible with directx.
Before you mess around with your files though, maybe you should check some other stuff, like all the libs are linked correctly, you are using the right functions and you have the right dlls available (you might need vfw32.dll, for example)
I hope this helps
Ramana
-----Original Message-----
From: dev...@li... [mailto:dev...@li...]On Behalf Of Chris Hague
Sent: Tuesday, 31 July 2001 9:36 AM
To: dev...@li...
Subject: [Dev-C++] DirectX problem, help needed
Hi, I have linked the compiler with the .h and .lib directories in the DirectX SDK, though I receive 31 error messages every time I attempt to compile a program that uses any directx header files. Does anyone know how to fix this? Does anyone know how to setup DirectX at all?
Please post info here or e-mail me, thanks.
Fierytycoon
---------------------------------
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
---------------------------------
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/ |
|
From: Steve D. P. <ste...@ho...> - 2001-08-02 02:23:32
|
Several weeks ago I made available (at http://www.steveperkins.net/development/platforms/cpp.jsp?category=platforms#dev-cpp) a pre-built Dev-C++ package of the wxWindows 2.2.7 library. I have been receiving some strange bug reports about it, and was hoping that maybe someone could help me shed some light on the problem. When creating a new project from Dev-C++, you can select "wxWindows" and the template will put everything in place perfectly. Immediately click "Compile" or "Compile and Run"... compilation and linking run flawlessly, and the Hello World-ish window provided by the template code will execute with no problems. However, if you try to recompile again within the same session (or even restart Dev-C++ before attempting to re-build)... your subsequent re-compiles will not work properly. Compilation executes fine, but you will see a million errors during the linker pass... apparently Dev-C++ is not correctly linking against any of the wxWindows libraries. Why linking works fine on initial compiles yet fails on subsequent re-compiles is beyond me. I'm a bit stumped here... if anyone can provide any insight or suggestions, they'd certainly be well appreciated! Cheers, Steve |
|
From: Alan T. <ala...@3n...> - 2001-08-02 01:21:08
|
Lorenzo,
I get exactly the same results from your code and mine. It =
still does not appear to be right. I don`t understand. A character =
occupies a byte, so I should be seeing each individual byte.
=
Alan
From: "Lorenzo" <co...@in...>
To: <dev...@li...>
Subject: Re: [Dev-C++] reading bytes
Date: Wed, 1 Aug 2001 11:27:45 +0200
Reply-To: dev...@li...
I have try this code:
#include <fstream>
using namespace std;
int main(int argc, char *argv[])
{
char c;
int byte_no =3D 0;
ifstream in("test.xls", ios::in | ios::binary);
if (!in.is_open())
{
cerr << "error open file" << endl;
return 1;
}
while (in.get(c))
{
if ((byte_no >=3D 0) && (byte_no <=3D 7))
cout << endl << "byte " << byte_no << " is " <<
(short)(unsigned char)c << endl;
byte_no++;
}
in.close();
return 0;
}
and display the exact value of the excel file, try again !
-------------------------------------------------------------------------=
---
|
|
From: jansb000 <jan...@wx...> - 2001-08-01 19:48:58
|
If you really want a windows program (with graphical user interface) you =
will have to change a substantial part of you programming from Turbo =
C++. This would also be needed if you would want to swap from Turbo C++ =
(dos) to Turbo C++ (Win32).
Code that has no relation to the presentation on screen may be =
reuseable.
If you want to port Turbo C++ (dos) to DEVCPP (dosbox) you may be able =
to reuse almost all of your code. The main difference is that the Turbo =
C++ graphic functions have to be replaced to functions with similar =
functionality. You may want to check the Allegro library for this (they =
also have an add-on for Turbo C++ ports).
----- Original Message -----=20
From: Dr. Dinesh J. Karia=20
To: Dev...@li...=20
Sent: Tuesday, July 31, 2001 9:04 PM
Subject: [Dev-C++] please help a newbee
Dear All,
I am a newbee to windows programming. How should I learn about it. =
In fact, in Dev-cpp the help is not available about the commands.=20
Can I use my code written in Turbo C++ for dos applications?=20
Is there any help file available on the internet for Dev-Cpp =
command syntax? Will the code from Charles Petzold work well with =
Dev-cpp?
Please help.
Dinesh J. Karia
Department of Mathematics
Sardar Patel University
Vallabh Vidyanagar
Gujarat 388120
INDIA
Home: din...@ea...
Office: din...@sp...
Roaming: din...@ya...
=20
"A mathematician is a machine for turning coffee into theorems."
-- Paul Erdos
----------------------------------------------------------------
|
|
From: Dr. D. J. K. <din...@ea...> - 2001-08-01 15:15:17
|
Dear All,
I am a newbee to windows programming. How should I learn about it. =
In fact, in Dev-cpp the help is not available about the commands.=20
Can I use my code written in Turbo C++ for dos applications?=20
Is there any help file available on the internet for Dev-Cpp command =
syntax? Will the code from Charles Petzold work well with Dev-cpp?
Please help.
Dinesh J. Karia
Department of Mathematics
Sardar Patel University
Vallabh Vidyanagar
Gujarat 388120
INDIA
Home: din...@ea...
Office: din...@sp...
Roaming: din...@ya...
"A mathematician is a machine for turning coffee into theorems."
-- Paul Erdos
----------------------------------------------------------------
|
|
From: Lorenzo <co...@in...> - 2001-08-01 09:23:11
|
I have try this code:
#include <fstream>
using namespace std;
int main(int argc, char *argv[])
{
char c;
int byte_no = 0;
ifstream in("test.xls", ios::in | ios::binary);
if (!in.is_open())
{
cerr << "error open file" << endl;
return 1;
}
while (in.get(c))
{
if ((byte_no >= 0) && (byte_no <= 7))
cout << endl << "byte " << byte_no << " is " <<
(short)(unsigned char)c << endl;
byte_no++;
}
in.close();
return 0;
}
and display the exact value of the excel file, try again !
----------------------------------------------------------------------------
---
If debugging is the process of removing bugs,
then programming must be the process of putting them in.
----------------------------------------------------------------------------
---
|
|
From: Alan T. <ala...@3n...> - 2001-07-31 22:38:42
|
If I open the file in binary mode, then I get absolutely nothing printed
out. Alan
From: "Lorenzo" <co...@in...>
To: <dev...@li...>
Subject: Re: [Dev-C++] reading bytes
Date: Tue, 31 Jul 2001 09:40:20 +0200
Reply-To: dev...@li...
Try to open file in binary mode using the following code:
ifstream input_file(file, ios::binary);
----- Original Message -----
From: Alan Thomas
To: dev...@li...
Sent: Monday, July 30, 2001 9:29 PM
Subject: reading bytes
I am trying to read bytes from a file. I just read them as characters
and interpret them, since each character takes a byte. The file is a
Microsoft Excel file. However, the bytes look different that expected. The
first few bytes (in decimal) are: 9, 4, 6, 0, 0, 0, 16, 0 instead of
9, 0, 4, 0, 2, 0, 16, 0. Can anyone explain what is happening?
My code and the Excel file format (first few bytes) may be found
below. Thanks, Alan
void main()
{
// Define input & output file names
char *file = "test.xls";
char c;
int byte_no = 0;
// Open input file
ifstream input_file(file);
// read the first byte of file
while (input_file.get(c))
{
if ((byte_no >= 0) && (byte_no <= 7))
cout << endl << "Byte " << byte_no << " is " << short(c) << endl;
byte_no++;
}
// close input file
input_file.close();
system ("PAUSE");
}
Format may be found at: http://www.wotsit.org/search.asp?page=2&s=database
MICROSOFT EXCEL FILE FORMAT
Microsoft Excel is a popular spreadsheet. It uses a file format called BIFF
(Binary
File Format). There are many types of BIFF records. Each has a 4 byte
header. The
first two bytes are an opcode that specifies the record type. The second
two bytes
specify record length. Header values are stored in byte-reversed form (less
significant
byte first). The rest of the record is the data itself (Figure 2-1).
Figure 2-1. BIFF record header.
| Record Header | Record Body
Byte Number | 0 1 2 3 | 0 1 ...
-----------------------------------
Record Contents | XX | XX | XX | XX | XX | XX | ...
-----------------------------------
| opcode | length | data
Each X represents a hexadecimal digit
Two X's form a byte. The least significant (low) byte of the opcode is byte
0 and the
most significant (high) byte is byte 1. Similarly, the low byte of the
record length
field is byte 2 and the high byte is byte 3.
BOF (Beginning of File)
The first record in every spreadsheet is always of the BOF type (Figure
2-2).
Figure 2-2. BOF record.
| Record Header | Record Body |
Byte | 0 1 2 3 | 0 1 2 3 |
-----------------------------------------
Contents | 09 | 00 | 04 | 00 | 02 | 00 | 10 | 00 |
-----------------------------------------
| opcode | length | version | file |
| | | number | type |
The first two bytes, arranged with the low byte first, show that the opcode
for BOF is
09h. The second two bytes indicate that the record body is 4 bytes long.
The first two
bytes of the body are the version number (2 for the initial version of
Excel). The last
two bytes are the file type. Type 10h is a worksheet file.
|
|
From: <jsc...@gm...> - 2001-07-31 21:09:18
|
HA !!!! I am about to exactly do this to compile my code for VST. Currently i am preparing code for audio / midi to sell to custores - and furthermore are preparing to put it itto this new DSP engine - see www.soundarthot.com Lets stay in contact to get DEV CPP runninng for VST compile. best wishes to you www.solastudio.de On 31 Jul 2001, at 19:25, Gabriel Lindeborg wrote: > Gabriel Lindeborg <gab...@sv...> J=FCrgen Schuhmacher jsc...@gm... |