Quote Originally Posted by jdy0803 View Post
Actually str1 is acquired from some C DLL function which requires 10 fixed length string.
I just made sample code to explaine my issue.
So I can't declare str1 As String
I believe what you just need is a string buffer. In that case, a dynamic string would be good enough. Typically, such a string is filled first with a sufficient number of characters (such as spaces or nulls) before it is passed to the external function. Can you show the C function's signature and your VB6 declaration?