Results 1 to 2 of 2

Thread: ParseRegString

  1. #1
    Join Date
    Feb 2001
    Location
    Plano, TX, USA
    Posts
    3,055

    Default

    I know you are fighting fires for a new release but, when you get a chance, I'm wondering how to use this interface correctly. If I pass it a string that contains a register identifier, like [reg1], it reallocates the memory and expands the string with the register value inside. Right?

    2 questions:
    1) How do I get the memory for the string to start with? Do I pass a pointer to NULL into the ReallocPchar() routine?

    2) How do I free the memory when I'm done?

    Is there an example that I have missed? I looked in the skeleton amd sendmessage.

    I know the source to the new and improved OSD popup would show me this since it needs to do the same thing in the command_exec() routine.

    I'll make you a deal, make an example available and I'll write a short summary for the API documentation.

  2. #2
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,551

    Default

    Deal!, I'll send you a pluging by email
    later .. if i don't forget ;-)

    -Ron

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •