Help handling C/C++ pointers in VB.Net
I need help handling a pointer that is returned from a non-COM dll. The pointer references an XML document in memory. I tried using the following:
Dim OutputXML As String = Marshal.PtrToStringAnsi(ptr)
This seemed to work well but, Copyright and Registered Trademarks are getting an extra byte (C2) added in front of them. Can someone help me out with an alterenative method or a way to read bytes from the pointer reference?
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL