|
-
December 1st, 1999, 08:04 AM
#1
Callback uses pointer to UDT
Hi,
I'm having to use a callback function. The problem that I have is that one of the callback variables has to be a pointer. This pointer refers to a UDT. The actual UDT used can be worked out from other info in the callback vars.
OK so I know which type the pointer points to and I know where it is but how do I get the information actually into the UDT? Oh, I also know the structure's size in bytes.
Please please please help as I'm getting a headache from it!
I've probably bitten off more than I can chew but it seems as though this is the main sticking point.
Many thanks in advance,
Jon.
-
December 1st, 1999, 08:40 AM
#2
Re: Callback uses pointer to UDT
I don't really understand what you are trying to accomplish, but you can copy a block of memory to an address via the CopyMemory API.
-
December 2nd, 1999, 06:13 AM
#3
Re: Callback uses pointer to UDT
Lothar,
Cheers, I managed to figure this out in the end... I assume that that is the only way to do it.
I was using the DDE Callback API routines and they pass the pointer to the start of one of several different UDTs.
Cheers,
Jon.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|