Com interop: arrays with NULLS truncating when returned to vb.net
From: DotNetJunkies User (User_at_-NOSPAM-DotNetJunkies.com)
Date: 04/09/04
- Next message: Tom Shelton: "Re: ERROR [07002] [MySQL]["
- Previous message: news.microsoft.com: "Re: Referencing an embedded icon, convert to image?"
- Next in thread: Cor Ligthert: "Re: Com interop: arrays with NULLS truncating when returned to vb.net"
- Reply: Cor Ligthert: "Re: Com interop: arrays with NULLS truncating when returned to vb.net"
- Reply: Jay B. Harlow [MVP - Outlook]: "Re: Com interop: arrays with NULLS truncating when returned to vb.net"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 09 Apr 2004 13:50:08 -0700
I am calling a VB6 dll from a vb.net windows application that returns an array of strings. My issue is it seems to truncate after a NULL character. For Example VB 6 is returning a string with the HEX value of 4E 31 00 00 01 00 20 20 20 20 20 00 00 00 20 20 20 31 32 30. But when it gets back to Vb.net all I have is 4E 31 or N1. Now I can return the same string as a return value of a function and I get it all.
Please Help,
Patrick Horn
--- Posted using Wimdows.net NntpNews Component - Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
- Next message: Tom Shelton: "Re: ERROR [07002] [MySQL]["
- Previous message: news.microsoft.com: "Re: Referencing an embedded icon, convert to image?"
- Next in thread: Cor Ligthert: "Re: Com interop: arrays with NULLS truncating when returned to vb.net"
- Reply: Cor Ligthert: "Re: Com interop: arrays with NULLS truncating when returned to vb.net"
- Reply: Jay B. Harlow [MVP - Outlook]: "Re: Com interop: arrays with NULLS truncating when returned to vb.net"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|