Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Structures and API call in Visual FoxPro 5.0

39 views
Skip to first unread message

Werner Nussbaumer

unread,
Oct 6, 1997, 3:00:00 AM10/6/97
to

How can I declare a structure to be passed via address to a
Windows DLL function like GetOpenFileName of the Windows API?

The structure can be for example like this:

struct Data
field1: integer;
field2: string[256];
field3: integer;
...
...
endstruct

Thank you for your help
Werner

Anders Altberg

unread,
Oct 6, 1997, 3:00:00 AM10/6/97
to

In article <3438DE...@datacomm.ch>, From Werner Nussbaumer
<W.Nuss...@datacomm.ch>, the following was written:

> How can I declare a structure to be passed via address to a
> Windows DLL function

Werner

Check out VFP\SAMPLES\SOLUTION\SOLUTION.APP

-Anders

--
Anders Altberg Anders....@swipnet.se
10/06/97 18:39
---------
Using: OUI PRO 1.5.0.2 from http://www.dvorak.com

David Frankenbach

unread,
Oct 6, 1997, 3:00:00 AM10/6/97
to

Werner,

Check the reply over in ms programmer.exchange. This particular API function (GetOpenFileName) can't be
called directly because internally the struct it uses contains pointers.

df - (MVP FoxPro) http://www.geocities.com/ResearchTriangle/9834/

Werner Nussbaumer <W.Nuss...@datacomm.ch> wrote in article <3438DE...@datacomm.ch>...


> How can I declare a structure to be passed via address to a

Dan Giralte

unread,
Oct 6, 1997, 3:00:00 AM10/6/97
to

Look thru the VFP5 samples, I believe mainsamp has examples of advanced API
(struct and referenece) use.

--
Dan Giralte dang...@execpc.com
http://www.execpc.com/~dangirnt
.plan: To Hell with the cannons! We're going in!
Werner Nussbaumer wrote in message <3438DE...@datacomm.ch>...


>How can I declare a structure to be passed via address to a
>Windows DLL function like GetOpenFileName of the Windows API?
>
>The structure can be for example like this:
>
>struct Data
> field1: integer;
> field2: string[256];
> field3: integer;
> ...
> ...
>endstruct
>

0 new messages