1. Structures for use with the Win32 API

------=_NextPart_000_0006_01BC3578.55333C20
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I am writing a program for Windows 95 that uses the Browse For Folder =
dialog. I am translating the code from Visual Basic, and I am not sure =
how I should define an array of bytes in memory. The structure is like =
this:

C_LONG
C_CHAR (array, undefined size)

I have to allocate it so that I can pass a pointer to the function, so I =
can't use a sequence, and I don't know how long it will be because the =
function modifies it.

Also, I will be glad to post the code I used for this dialog box, when I =
have gotten past this problem, on the Euphoria web site.

Jeff Fielding
JJProg at cyberbury.net

------=_NextPart_000_0006_01BC3578.55333C20
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.2106.6"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>I am writing a program for Windows =
95 that uses=20
the Browse For Folder dialog. I am translating the code from Visual =
Basic, and I=20
am not sure how I should define an array of bytes in memory. The =
structure is=20
like this:</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>C_LONG</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>C_CHAR (array, undefined =
size)</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>I have to allocate it so that I can =
pass a=20
pointer to the function, so I can't use a sequence, and I don't know how =
long it=20
will be because the function modifies it.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Also, I will be glad to post the =
code I used for=20
this dialog box, when I have gotten past this problem, on the Euphoria =
web=20
site.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Jeff Fielding</FONT></DIV>
<DIV><FONT color=3D#000000 =

------=_NextPart_000_0006_01BC3578.55333C20--

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu