FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem building dwt.
Goto page Previous  1, 2
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DWT
View previous topic :: View next topic  
Author Message
negerns



Joined: 08 Jul 2006
Posts: 13

PostPosted: Sat Jul 29, 2006 4:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
JayKyburz



Joined: 30 Jul 2006
Posts: 4

PostPosted: Sun Jul 30, 2006 1:30 am    Post subject: Reply with quote

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
View user's profile Send private message
JayKyburz



Joined: 30 Jul 2006
Posts: 4

PostPosted: Sun Jul 30, 2006 1:36 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DWT All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group