Re: So Delphi can't do this ...
From: Martin Harvey (Demon Account) (martin_at_pergolesi.demon.co.uk)
Date: 10/12/03
- Next message: Kurt Barthelmess: "Re: MDI Application"
- Previous message: Martin Harvey (Demon Account): "Re: Great compiler bug! - Comparing events."
- In reply to: Brian Cook: "Re: So Delphi can't do this ..."
- Next in thread: Rob Kennedy: "Re: So Delphi can't do this ..."
- Reply: Rob Kennedy: "Re: So Delphi can't do this ..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 12 Oct 2003 19:08:39 +0100
On Sun, 12 Oct 2003 12:31:36 -0500, Brian Cook
<bcook@rowdydogsoftware[REMOVE].com> wrote:
>> The only thing that I can't figure out is that the structure is actually a
>> container to accept values from the calling app.
>> It's an import structure that receives a function ID and pointer.
>> Your example is setting the values not receiving the values.
>> How do I go about receiving values?
>
>The page where ImpStruct is located needs to be change to allow writing.
>The new example is below my signature.
>
>
>> > It does assuming the record alignment is correct; which is VERY likely.
>> All the data is double word aligned - the code has a #pragma pack(4) before
>> all the declarations.
>
>Then you're good-to-go.
>
Hang on - isn't this back to front?
If the structure is declared as exportable from the DLL, then he
doesn't want to define some memory that he can export as a function,
he wants to read and write it, having imported it from the DLL
In which case, it's just a matter of casing the return value of
GetProcAddress right?
Or am I being silly?
MH.
- Next message: Kurt Barthelmess: "Re: MDI Application"
- Previous message: Martin Harvey (Demon Account): "Re: Great compiler bug! - Comparing events."
- In reply to: Brian Cook: "Re: So Delphi can't do this ..."
- Next in thread: Rob Kennedy: "Re: So Delphi can't do this ..."
- Reply: Rob Kennedy: "Re: So Delphi can't do this ..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|