View previous topic :: View next topic |
Author |
Message |
John
Joined: 17 Jan 2006 Posts: 75
|
Posted: Fri Jul 20, 2007 6:27 am Post subject: Version 0.3 |
|
|
Finally, an update is up on SVN that enables Juno to compile with post-DMD 1.0 versions.
Not many new features, I'm afraid. I've changed things around a bit - for example, the juno.intl package is now juno.locale, and I've removed one or two modules that are no longer needed. Hopefully nothing people actually used is missing. If there is, drop me a line. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
jcc7
Joined: 22 Feb 2004 Posts: 657 Location: Muskogee, OK, USA
|
Posted: Fri Jul 20, 2007 9:35 am Post subject: Re: Version 0.3 |
|
|
John wrote: | Finally, an update is up on SVN that enables Juno to compile with post-DMD 1.0 versions.
Not many new features, I'm afraid. I've changed things around a bit - for example, the juno.intl package is now juno.locale, and I've removed one or two modules that are no longer needed. Hopefully nothing people actually used is missing. If there is, drop me a line. | That's great news!
I'm glad to hear that you're still maintaining Juno. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
yidabu
Joined: 21 Apr 2007 Posts: 87
|
Posted: Fri Jul 20, 2007 10:06 pm Post subject: great job |
|
|
you did a great job! john
little problem in juno\local\format
Code: | private import juno.locale.core : IFormatProvider, NumberFormat, DateTimeFormat, DayOfWeek, Calendar, DateTime, TimeSpan; |
DayOfWeek is in juno\local\constants, not in juno\local\core
to get a newer kernel32.lib:
1 copy kernel32.lib from Microsoft Visual Studio 8\VC\PlatformSDK\Lib
2 run
Code: |
coffimplib -f Kernel32.lib
|
|
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
John
Joined: 17 Jan 2006 Posts: 75
|
Posted: Sat Jul 21, 2007 2:13 am Post subject: |
|
|
Quote: | DayOfWeek is in juno\local\constants, not in juno\local\core |
Hmm, it seems to compile without picking the error up. How'd you spot that? |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
yidabu
Joined: 21 Apr 2007 Posts: 87
|
Posted: Sat Jul 21, 2007 3:31 am Post subject: |
|
|
I use DSSS to build juno
1 dsss.conf:
Code: | [juno]
type=library
buildflags=-O |
2 run
dsss report the error about DayOfWeek
a suggestion:
juno.base.environment, line 45,
Code: | return .toUtf8(buffer.ptr, 0, size); |
maybe:
Code: | return .toUtf8(buffer.ptr, 0, size-1); |
to omit the trailing null of userName
Last edited by yidabu on Sat Jul 21, 2007 6:24 pm; edited 1 time in total |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
John
Joined: 17 Jan 2006 Posts: 75
|
Posted: Sat Jul 21, 2007 7:32 am Post subject: |
|
|
Quote: | Now I have error 42 : Symbol Undefined ...juno3com4core4GUID |
Just a guess, but try this when building with DSSS:
Code: | buildflags=-O -op -inline |
Quote: | to omit the trailing null of userName |
Well spotted. Ta. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
yidabu
Joined: 21 Apr 2007 Posts: 87
|
Posted: Sat Jul 21, 2007 4:25 pm Post subject: |
|
|
John wrote: | Just a guess, but try this when building with DSSS:
buildflags=-O -op -inline
|
I use batch file to build the code. all earlier binding examples had same error. and when I run tlbimpd, cpu gots 100%. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
John
Joined: 17 Jan 2006 Posts: 75
|
Posted: Sat Jul 21, 2007 5:03 pm Post subject: |
|
|
Quote: | I use batch file to build the code |
DSSS is compiling Juno into a lib file, right? What happens if you compile your test app using Juno's source instead of the lib file?
Quote: | when I run tlbimpd, cpu gots 100% |
Weird. That's never happened. Which type library are you trying it on?
(I did fix a different issue with tlbimpd today, so I'll upload that in the next couple of days.) |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
yidabu
Joined: 21 Apr 2007 Posts: 87
|
Posted: Sat Jul 21, 2007 6:21 pm Post subject: |
|
|
John wrote: |
DSSS is compiling Juno into a lib file, right? What happens if you compile your test app using Juno's source instead of the lib file?
|
that's my mistake, nevermind. Juno isn't the problem at all. I forgot add type library to batchfile.
John wrote: |
Weird. That's never happened. Which type library are you trying it on?
(I did fix a different issue with tlbimpd today, so I'll upload that in the next couple of days.) |
![](http://bbs.yidabu.com/attachments/d/tlbimpderror.gif) |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
John
Joined: 17 Jan 2006 Posts: 75
|
Posted: Sun Jul 22, 2007 4:04 am Post subject: |
|
|
Quote: | when I run tlbimpd, cpu gots 100% |
OK, I think I've discovered the cause. In the meantime, press Ctrl+C to end the program. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
yidabu
Joined: 21 Apr 2007 Posts: 87
|
Posted: Sun Jul 22, 2007 7:10 pm Post subject: |
|
|
I have this error:
Quote: | Load Type Library/. Exception from HRESULT: 0X80029C4A |
tlbimpd 0.3, Windows XP SP2
another question:
how to use com evnt with juno ? would you please show me a simple example ? |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
John
Joined: 17 Jan 2006 Posts: 75
|
Posted: Mon Jul 23, 2007 2:00 am Post subject: |
|
|
Quote: | Exception from HRESULT: 0X80029C4A |
This is by design - tlbimpd is just reporting the result when Windows attempted to open a type library. Google the HRESULT and you'd immediately see it means that the type library couldn't be found. BTW, mshtml.dll doesn't export a type library - but mshtml.tlb does.
Tlbimpd also accepts a type library's GUID - so 3050F1C5-98B5-11CF-BB82-00AA00BDCE0B would do the job too.
Quote: | how to use com evnt with juno ? would you please show me a simple example ? |
There's one on the wiki: http://www.dsource.org/projects/juno/wiki/ComProgramming |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
yidabu
Joined: 21 Apr 2007 Posts: 87
|
Posted: Mon Jul 23, 2007 3:54 am Post subject: |
|
|
thanks a million, john!
when I run (tlbimpd 0.3)
or tlbimpd 3050F1C5-98B5-11CF-BB82-00AA00BDCE0B
I have this error:
(but succeded with SHDOCVW.DLL, scrrun.dll...)
I ran it on another computer, have same error.
then I tried (tibimpd 0.2):
Code: | tlbimpd02 3050F1C5-98B5-11CF-BB82-00AA00BDCE0B |
succeeded!
what's the meaning of the error? |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
John
Joined: 17 Jan 2006 Posts: 75
|
Posted: Mon Jul 23, 2007 7:36 am Post subject: |
|
|
I've fixed the problem. But you'll need to wait for the next update. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
John
Joined: 17 Jan 2006 Posts: 75
|
Posted: Mon Jul 23, 2007 7:50 am Post subject: |
|
|
Download juno.src.0.3.zip and tlbimpd.release.0.3.zip again for fixes to the bugs found above. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|