For Programmers: Free Programming Magazines  


Home > Archive > APL > April 2004 > APL+WIN and UNICODE









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author APL+WIN and UNICODE
Graham Steer

2004-04-08, 2:32 pm

I am still struggling with accessing GDI+ from APL+WIN v3.6. So far no help
from the APL community, some I know can't for commercial reasons others?? I
have eventually tracked down a set of VB declarations which are the
equivalent of the entries I need for the APLW.ADF file. My latest problem is
the fact that the GDI+ dll exclusively uses UNICODE. Does anyone know how to
pass UNICODE character strings to a dll via []wcall.


Bj?rn Helgason

2004-04-09, 8:30 am

"Graham Steer" <graham@runsell.clara.co.uk> wrote in message news:<1081445442.28873.0@nnrp-t71-02.news.uk.clara.net>...
> I am still struggling with accessing GDI+ from APL+WIN v3.6. So far no help
> from the APL community, some I know can't for commercial reasons others?? I
> have eventually tracked down a set of VB declarations which are the
> equivalent of the entries I need for the APLW.ADF file. My latest problem is
> the fact that the GDI+ dll exclusively uses UNICODE. Does anyone know how to
> pass UNICODE character strings to a dll via []wcall.


I would guess that adding a null byte as every other byte would do the trick
Graham Steer

2004-04-09, 3:31 pm

Been there done that and it does not work. APL+WIN coerces data to match the
spec in the ADF file. So at its simplest my question by example is what is
the APL equivalent of the following VB declaration GdipCreateBitmapFromFile
Lib "GDIPlus" (_ByVal filename as Long, _bitmap as Long) as Long to go in
the ADF file and what is the []wcall equivalent of
lRes=GdipCreateBitmapFromFile(StrPtr(fil
ename), lBitmap) to pass the
required information to the dll.


"Bj?rn Helgason" <bjorn@hansaworld.is> wrote in message
news:56da45cc.0404090323.78611332@posting.google.com...
> "Graham Steer" <graham@runsell.clara.co.uk> wrote in message

news:<1081445442.28873.0@nnrp-t71-02.news.uk.clara.net>...
help[color=darkred]
others?? I[color=darkred]
problem is[color=darkred]
how to[color=darkred]
>
> I would guess that adding a null byte as every other byte would do the

trick


James J. Weinkam

2004-04-09, 3:31 pm

Graham Steer wrote:
> Been there done that and it does not work. APL+WIN coerces data to match the
> spec in the ADF file. So at its simplest my question by example is what is
> the APL equivalent of the following VB declaration GdipCreateBitmapFromFile
> Lib "GDIPlus" (_ByVal filename as Long, _bitmap as Long) as Long to go in
> the ADF file and what is the []wcall equivalent of
> lRes=GdipCreateBitmapFromFile(StrPtr(fil
ename), lBitmap) to pass the
> required information to the dll.
>

APL2 provides a system function {quad}UCS to translate between Unicode and
the APL character set. It also provides external functions CTUTF and UTFCT
to translate between Unicode and the UTF-7 and UTF-8 network transmission
encodings. I have no idea whether or not APL+WIN provides anything similar
but you night try checking out the list of system functions and supplied
functions.

>
> "Bj?rn Helgason" <bjorn@hansaworld.is> wrote in message
> news:56da45cc.0404090323.78611332@posting.google.com...
>
>
> news:<1081445442.28873.0@nnrp-t71-02.news.uk.clara.net>...
>
>
> help
>
>
> others?? I
>
>
> problem is
>
>
> how to
>
>
> trick
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com