CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Location
    India
    Posts
    14

    Passing string to dll

    I'm passing some strings to a 'C' dll (which is written by myself) that expects char* argument . it's passed as 'byval string' argument. The data to be passed is not of fixed length so the string is not fixed length. but in this process sometimes it's not passed properly and the data is a garbage.
    What can be other way to pass this string properly.


  2. #2
    Join Date
    Jul 1999
    Location
    Israel
    Posts
    140

    Re: Passing string to dll

    In your C++ code use BSTR instead of char*


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