[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Looking for a Visual C++ project files for KEGS32
I had 2 hours to spend on the project today and I make the 0.91
release of KEGS32 compliant with Visual C++ 6.0 environment (easier to
upgrade to .Net than to try to do the opposite).
If you want to do the same, here are the few tips to save time :
- create a console project
- remove the usage of .PCH (pre compiled headers)
- I use a 1 byte alignement into structure. Not sure it is
mandatory (but I like to have my byte together).
- add into pre-processor definitions : KEGS_LITTLE_ENDIAN
- include Librairies : Winmm.lib Ws2_32.lib comctl32.lib
- include the sources / headers files (remove mac / unix
files)
- do not include utilities files (to_pro.c and partls.c)
- get dirent.h file from internet and add it to the project.
Change #include <dirent.h> into #include "dirent.h"
- add #include <direct.h>, #include <io.h> and #include
<assert.h> into defc.h
- depending of the release of VC++, add #define
FILE_ATTRIBUTE_DEVICE 0x40 into dirent.h
- if you care, you will have few warning about numeric
conversion (float to integer, integer to double...). You may cast the
type.
- if you have 2 weeks of vacation, you can start to clean the
code (indentation...).
If you need the whole file (ready to be compiled), let me know.
Not sure where I could make them available (brutaldeluxe.fr ?) due to
the fact this is not a clean job, just a quick way to achieve my goal.
Olivier