CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2007
    Posts
    21

    How can i call a function with a CString object.

    Hi,

    I have a process where the name of a function is in a file text. I Read this file and i whould like to call a function associated with a Execute=[] parameter.

    Is it possible ?

  2. #2
    Join Date
    Jul 2002
    Posts
    2,543

    Re: How can i call a function with a CString object.

    You can call these functions using GetProcAddress API:
    http://msdn.microsoft.com/en-us/libr...44(VS.85).aspx

  3. #3
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,633

    Re: How can i call a function with a CString object.

    Of course it's possible. You have to maintain a name-to-function map (of any kind you're good with) in your code... well, that's it.
    Best regards,
    Igor

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