CString conversion

  • Wuhoo
  • Newbie
  • Newbie
  • Wuhoo
  • Posts: 5

Post 3+ Months Ago

I have a VS MFC app that uses a CStringArray.... I need to get the substance of this array and pass it over to a dll function that takes a String * []... how might I go about doing that...

Can a win32 VS project(dll) just accept a CStringArray?? I can change the String * [] param to something else, but I cant get anything to work........any ideas...thanks a bunch...
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • _Leo_
  • Proficient
  • Proficient
  • User avatar
  • Posts: 279
  • Loc: Buenos Aires, Argentina

Post 3+ Months Ago

Well, virtually you can pass a pointer to the CStringArray object. Then create a pointer variable in your DLL and cast the pointer there. Once you did that you can access yhe object in the DLL as it were spawn right there.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 58 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.