Click to See Complete Forum and Search --> : Callback uses pointer to UDT


jeden
December 1st, 1999, 07:04 AM
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.

Lothar Haensler
December 1st, 1999, 07:40 AM
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.

jeden
December 2nd, 1999, 05:13 AM
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.