View previous topic :: View next topic |
Author |
Message |
Lynn
Joined: 27 Aug 2004 Posts: 89
|
Posted: Wed Sep 22, 2004 11:52 am Post subject: core32 progress |
|
|
I made some changes to the Sep 16, 2004 version of core32. These include:
* Rename module and imports from
win32.modulename
to
std.c.core32.modulename
* Situated so as to be a 'sibling' of std.c.windows at:
[dmd_home]\src\phobos\std\c\core32
(perhaps should eventually be in etc or std.c.windows)
* Cleaned up some apparent glitches (dxerr8 instead of dxerr, etc.)
* Prepared Visual Studio 98 projects for optimized core32.lib and debugging core32d.lib to go in:
[dmd_home]\lib
* Core32LibTest.d to exercise core32.lib by creating treeview, with VS98 project to build Core32LibTest.exe
* Series of Microsoft nmake files for command line building of:
.\core32\basic.lib
.\core32\com\com.lib
.\core32\directx\directx.lib
which are aggregated into
[dmd_home]\lib\core32.lib
* Caveats:
- I'm not all that proficient in nmake files, so there may be glitches
- make files for dmd's make would be nice to have provided
- nmake files don't produce core32d.lib
- core32.dll would be nice to prepare
- only treeview is exercised
I'll send jcc7 a separate email with core32_040922c.zip attached. It's also available at:
http://berbible.sourceforge.net/misc/core32_040922c.zip |
|
Back to top |
|
|
jcc7
Joined: 22 Feb 2004 Posts: 657 Location: Muskogee, OK, USA
|
Posted: Wed Sep 22, 2004 4:35 pm Post subject: Re: core32 progress |
|
|
I'm not in the mood to make large changes to parts of the library that already work. I signed up to be a caretaker, not an overhauler.
Lynn wrote: | I made some changes to the Sep 16, 2004 version of core32. These include:
* Rename module and imports from
win32.modulename
to
std.c.core32.modulename | What's wrong with calling it "win32" for now? If Walter or the Ares teams adopts it as part of a standard library, then they can change the name to "std".
Lynn wrote: | * Cleaned up some apparent glitches (dxerr8 instead of dxerr, etc.) | There might be reasons for those "glitches". How did you clean them up? dxerr8 is still there. Do you mean you updated it to version 9?
Lynn wrote: | * Prepared Visual Studio 98 projects for optimized core32.lib and debugging core32d.lib to go in:
[dmd_home]\lib
* Core32LibTest.d to exercise core32.lib by creating treeview, with VS98 project to build Core32LibTest.exe
* Series of Microsoft nmake files for command line building of:
.\core32\basic.lib
.\core32\com\com.lib
.\core32\directx\directx.lib
which are aggregated into
[dmd_home]\lib\core32.lib |
I don't have VS98 installed, and I don't want to install it. What was wrong with the nifty .bat files that I wrote? Yes, separate .lib's will be smaller than one main .lib, but I don't see what difference it makes. We might was well leave them as .obj's if you want to have a one-to-one ratio of source files to .lib's. My tree example is much smaller than my win32.lib, so I don't see a bloating problem. |
|
Back to top |
|
|
Lynn
Joined: 27 Aug 2004 Posts: 89
|
Posted: Thu Sep 23, 2004 6:46 am Post subject: |
|
|
Sorry. The changes I put in reflected misunderstandings about module naming and project status.
If helpful, I'll prep a 'tutorial' using the original 2004-9-16 win32. |
|
Back to top |
|
|
saivert
Joined: 15 Aug 2005 Posts: 8 Location: Norway
|
Posted: Tue Aug 16, 2005 4:05 am Post subject: Installation Instructions |
|
|
It would be nice to mention where to copy the files and such. I had to figure it out by my own (and using common sense) but not everybody knows common sense so here is my quick start guide using the latest ZIP.
QUICK START GUIDE (10 steps):
1. Unzip ZIP in \dmd\src\core32
2. Open command prompt (cmd.exe=DOX Box).
3. Type PATH \dmd\bin;?PATH?
4. CD to the core32\win32 directory.
5. Exeute makelib.bat
6. Copy make32.lib to \dmd\lib directory. This directory is alread in compilers search path.
7. CD to \dmd\bin
8. Open sc.ini
9. Add "?@P?\..\src\core32" to compiler include search path
Resulting sc.ini should look something like this:
Code: |
[Version]
version=7.51 Build 020
[Environment]
LIB="?@P?\..\lib";"?@P?\..\..\dm\lib"
DFLAGS="-I?@P?\..\src\phobos;?@P?\..\src\core32"
LINKCMD=?@P?\..\..\dm\bin\link.exe
|
10. Add "import win32.api" to your source files to use it and link with win32.lib _________________ - New at D, like it though - Attending Kongsberg Tekniske Fagskole (Computer technician course) - |
|
Back to top |
|
|
jcc7
Joined: 22 Feb 2004 Posts: 657 Location: Muskogee, OK, USA
|
Posted: Tue Aug 16, 2005 11:47 am Post subject: Re: Installation Instructions |
|
|
saivert wrote: | It would be nice to mention where to copy the files and such. I had to figure it out by my own (and using common sense) but not everybody knows common sense so here is my quick start guide using the latest ZIP. | Thanks for the suggestion. It's a good idea. I added your tips to the "Introduction to Core32" topic. |
|
Back to top |
|
|
Lynn
Joined: 27 Aug 2004 Posts: 89
|
Posted: Tue Aug 16, 2005 12:21 pm Post subject: Re: Installation Instructions |
|
|
Quote: | but not everybody knows common sense so here is my quick start guide using the latest ZIP.
|
Hey, I re[pre]sent that |
|
Back to top |
|
|
|