CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 1999
    Location
    Berks, UK
    Posts
    5

    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.


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    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.


  3. #3
    Join Date
    Nov 1999
    Location
    Berks, UK
    Posts
    5

    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
  •  





Click Here to Expand Forum to Full Width

Featured