i will describe for you my problem in more details: PublicFunction RescivedCommand(ByVal number AsInteger, byval data Asstring) AsBoolean
this function is part o vb6 dll , when i execute this function the length of data is 160 in vb6. but when i tried to use it in vb.net data is only one character instead of 160.
and when i read the documentation of the dll i found that data is fixed length.
is the problem that no more fixed length strings in vb.net, if so is there any solution to this problem
no Actually this solution didnot help me. i tried someting different which is <MarshalAs(UnmanagedType.TBStr)>
and this solve my problrm to use the unmanaged types used previously in vb6 in vb.net environment