Re: [Dev-C++] Windows95 Shell and COM
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <or...@vp...> - 2003-01-08 15:33:12
|
Hello va13ak!
> I have a little problem with compiling project using Windows95 Shell
> and COM. Does anybody know how to compile, for example, next example ?
First, I want to tell you, that I have absolutely NO C++ experience, and I don't
know ANYTHING about C++ (yet :), although I have been programming in C for quite
a while now, and I know a lot in it.
I hope you want to compile it with gcc (from Dev-Cpp) not from MSVC. So first
you need to import the treesize.dsp. It was done correctly with Dev 4.9.6.8.
Warning:
You should know, that your program is obsolete. It uses deprecated C++ headers
(iomanip.h, etc.). You should update your files, although it still works.
Here are the corrections that I have made, regarding the errors, that gcc 3.2
reported to me:
1. In file main.cpp:
At line 9 write this:
void NewHandler ()
{
throw WinException ( "Out of memory" );
}
// Instead of:
// int NewHandler (size_t size)
// {
// throw WinException ( "Out of memory" );
// return 0;
// }
At line 58 write this:
set_new_handler (&NewHandler);
// Instead of:
// _set_new_handler (&NewHandler);
2. In file controller.h:
At line 8 write this:
#include <strstream.h>
// Instead of:
//#include <strstrea.h>
//Note: THIS header is also deprecated
After these corrections click compile in Dev :)
I hope I could help.
--
Greetings,
Balázs
|