|
ECS-L Home Automation and Security Archives |
learn more
| view messages for this
month | NetBloc® | terms of use | search
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects
Subject: From: Date: | Re: [ECS] Can anyone spot this guy's BASIC compile err ? (charity case
:-)) Dario Greggio Thu, 21 Jan 1999 23:09:59 +0100 |
Mark Gilmore ha scritto:
>
>
> Dim a As String
> Dim b As String
> Dim c As String
>
> a = "test"
> b = String(513, " ") 'Create a buffer of 513
> c = String(513, " ") 'Create a buffer of 513
>
> SOX a, b, c
>
> Bad DLL calling convention (Error 49)
As for me, when I had to call a DLL function with LPSTR or similar (long
pointer to string, that is, char array) I always used to GlobalAlloc a
small amount of memory, then GlobalLock it (no longer needed in Win95),
then copying the bytes belonging to the string in the memory area using
a kind of "POKE". It always worked, though a little complicated.
I don't know if String could work, but that maybe the cause.
All the rest in your code seems OK.
Let me know!
--
Ciao,
Dario
--
ADPM Synthesis sas - Torino
--
http://www.geocities.com/CapeCanaveral/2259
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects