View previous topic :: View next topic |
Author |
Message |
baxissimo
Joined: 23 Oct 2006 Posts: 241 Location: Tokyo, Japan
|
Posted: Tue Mar 06, 2007 5:25 pm Post subject: Win32 headers |
|
|
I noticed when trying to compile somebody else's code with Schooner's win32 headers that unions are used in a way that gives DMD problems. Namely:
Code: |
struct Foo
{
union Blah {
DWORD Member;
DWORD OtherMember;
}
}
|
I don't know if that's supposed to work or not (as in actually declare space for Blah.Member, but it gives DMD troubles. DMD seems to be happier with what the Win32 wrappers guys are doing (http://www.prowiki.org/wiki4d/wiki.cgi?WindowsAPI), which is:
Code: |
struct Foo
{
union _Blah {
DWORD Member;
DWORD OtherMember;
}
_Blah Blah;
}
|
Just an FYI. Maybe the other Win32 wrapper project is far enough along that Schooner should just drop its Win32 bindings, though?
--bb |
|
Back to top |
|
|
Bradley Smith
Joined: 20 Jun 2006 Posts: 60
|
Posted: Tue Mar 06, 2007 10:24 pm Post subject: |
|
|
The Windows API page on Wiki4D refers to the Bindings on dsource.org. The Bindings project is a free-for-all project that has no project maintainer (see this topic). Since Schooner's Win32 bindings were based on a snapshot of those in the Bindings project, you may be able to substitute them.
If you have patches for the Win32 bindings in Schooner, I'll gladly apply the corrections.
Alternatively, perhaps the Win32 bindings in Schooner should be stripped down to the bare minimum required for Schooner to operate. |
|
Back to top |
|
|
baxissimo
Joined: 23 Oct 2006 Posts: 241 Location: Tokyo, Japan
|
Posted: Thu Nov 01, 2007 7:25 pm Post subject: |
|
|
Bradley Smith wrote: | The Windows API page on Wiki4D refers to the Bindings on dsource.org. The Bindings project is a free-for-all project that has no project maintainer (see this topic). Since Schooner's Win32 bindings were based on a snapshot of those in the Bindings project, you may be able to substitute them.
If you have patches for the Win32 bindings in Schooner, I'll gladly apply the corrections.
Alternatively, perhaps the Win32 bindings in Schooner should be stripped down to the bare minimum required for Schooner to operate. |
The Schooner win32 bindings once again are having problems. This time because of a regression in the recent DMD 1.x releases. There is apparently a fix checked into the dsource/bindings/win32 project already.
Given that Schooner has been receiving much less love and affection recently than the little attention recently, whereas the Win32 bindings have gotten much more -- 44 commits in 2007, with the most recent being yesterday -- I think probably schooner would be better of switching to depend on the community maintained project. Note that although Bindings overall is a free-for-all, the Win32 api translation does have an official maintainer -- Stewart Gordon. Don Clugston also has made many commits and seems to be keeping an eye on the project. Both are big long-time names in D, and probably not going to give up on D (or using D with Win32) any time soon.
So anyway, I think fears of making Schooner depend on the win32 headers project are unfounded. |
|
Back to top |
|
|
|
|
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
|