User Profile

Collapse

Profile Sidebar

Collapse
webroten
webroten
Last Activity: Nov 27 '07, 01:59 PM
Joined: Nov 21 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • webroten
    replied to VB.NET Accessing C DLL Problems
    in .NET
    That corrected the problem - thanks! I'm still having problems with the DLL reading my structure, but I don't think it's related to this issue. It could be something else with the marshalling or something.
    See more | Go to post

    Leave a comment:


  • webroten
    started a topic VB.NET Accessing C DLL Problems
    in .NET

    VB.NET Accessing C DLL Problems

    I've been working through trying to access a C DLL from VB.NET. I've read many online postings, but I'm still having problems. Now, my error is the "Attempted to read or write protected memory" error. Here's my Structure declaration:

    [CODE=vbnet]<StructLayout(L ayoutKind.Seque ntial, charset:=CharSe t.Ansi)> _
    Public Structure CONFIG_PARM
    <MarshalAs(Unma nagedType.LPStr )> Public address1 As String...
    See more | Go to post
    Last edited by Plater; Jan 23 '08, 09:20 PM. Reason: added =vbnet to [code] tags
No activity results to display
Show More
Working...