View previous topic :: View next topic |
Author |
Message |
negerns
Joined: 08 Jul 2006 Posts: 13
|
Posted: Sat Jul 29, 2006 4:26 pm Post subject: |
|
|
DMD 0.163
DWT 0.36
There seems to be a problem with DMD 0.163 that it does not recognize imports within the class body. As a workaround I've added imports in module scope. It does seem to eliminate the errors.
I've added the following imports to the dwt.internal.ole.win32.OBJIDL.d file:
Code: | private import std.c.windows.windows;
private import std.c.windows.com; |
I've added the following imports to the dwt.ole.win32.oleclientsite.d file:
Code: | private import std.c.windows.windows;
private import std.c.windows.com; |
I've added the following imports to the dwt.ole.win32.oleeventsink.d file:
Code: | private import std.c.windows.windows; |
|
|
Back to top |
|
|
JayKyburz
Joined: 30 Jul 2006 Posts: 4
|
Posted: Sun Jul 30, 2006 1:30 am Post subject: |
|
|
I also installed d and dwt today for the first time.
Found that 3 lined were commented in dwt.internal.ole.win32\OBJIDL.d.
private import std.c.windows.windows;
private import std.c.windows.com;
private import dwt.internal.win32.os;
And that this was preventing the compliation of the libs.
Not sure if all three lines were required.
Now that the libs are built i'm having problems running examples. Getting the following error.
C:\dmd\import\dwt\graphics\image.d(404): shadowing declaration dwt.graphics.image.Image.this.hdcBmp is deprecated
Continuing to work on this one tho any help would be apreciated. (I'm only a hobby progrmmer and new to much of this) |
|
Back to top |
|
|
JayKyburz
Joined: 30 Jul 2006 Posts: 4
|
Posted: Sun Jul 30, 2006 1:36 am Post subject: |
|
|
JayKyburz wrote: | C:\dmd\import\dwt\graphics\image.d(404): shadowing declaration dwt.graphics.image.Image.this.hdcBmp is deprecated
Continuing to work on this one tho any help would be apreciated. (I'm only a hobby progrmmer and new to much of this) |
It was easy of course, just needed to add -d to support depreciated features.
Followup....
The -d flag is not needed if i don't use the -inline flag. I was including it becaue it is in the default gui release build spec in Poseidon. |
|
Back to top |
|
|
|