Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Referencing Kernel32.dll

Status
Not open for further replies.

DBAchick

Programmer
Apr 27, 2000
61
I am trying to call the function lwrite from the Kernel32.dll.  Which lib should I reference?  I have Visual Basic from Applications, Microsoft Access 8.0 Object Library, Microsoft DAO 3.51 Object Library and API Declaration Loader already checked.  If I browse to Kernel32.dll I get an error that says I cannot add a file to this reference.  Any ideas out there?  Thanks!
 
It should work if you just declare it as any other API-function. <br><br>Declare Function lwrite Lib &quot;kernel32&quot; Alias &quot;_lwrite&quot; (ByVal hFile As Long, ByVal lpBuffer As String, ByVal wBytes As Long) As Long<br><br>Mats
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top