Home > Net >  Be badly in need of help! Vb.net how to call unmanaged DLL, which under the bosses to help solve, th
Be badly in need of help! Vb.net how to call unmanaged DLL, which under the bosses to help solve, th

Time:10-07

Now come into contact with a project to use vb.net to control laser laser code, you need to call the third party software golden oranges MarkEzd. DLL files, how to get the inside function algorithm, which bosses have done similar project before, to help solve, thank you very much!!!!!! Best to write the detailed point, the couple first contact unmanaged DLL,

CodePudding user response:

Very simple, as it provides the function prototype into the same type of VB.NET data types, the value type In or out, and transfer them to determine the byval or byref, written In the standard VB.NET external API declaration form is ok, give you a chestnut ao:
 Structure MEMORY_BASIC_INFORMATION '28 bytes 
Dim BaseAddress As Integer
Dim AllocationBase As Integer
Dim AllocationProtect As Integer
Dim RegionSize As Integer
Dim State As Integer
Dim Protect As Integer
Dim lType As Integer
End Structure

Private Declare Function VirtualQuery Lib "kernel32" (ByVal lpAddress As IntPtr, ByRef lpBuffer As a MEMORY_BASIC_INFORMATION, ByVal dwLength As UInteger) As an Integer
Call:
Ret=VirtualQuery (pAddr, mi, miLen)

CodePudding user response:

This I have written,,, ok

CodePudding user response:

refer to the second floor pig sky response:
this I wrote,,, ok


Could you tell me how to write big this????

CodePudding user response:

Before long, his instructions clear oh ~!
  • Related