• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 648
  • Last Modified:

Visual Basic Calling Conventions For DLL

Trying to call a "C" DLL with Visual Basic.  Attempting to pass array by reference.  Receiving a "Bad DLL calling  convention" error.  Tried using "@" to define call by reference.  VB listed as bad syntax.  Many references in MicroSoft Help to "FoxPro.  Don't understand.
1 Solution
let me recommend you visit this site:

On the contents (left side), click
Chapter 2

then "Calling the Windows API from Basic"

then "Anatomy of a DLL procedure call"

This should tell you all you need to know about calling DLL's from VB and is a great reference for pre-dotnet Visual Basic.
rogerkirkAuthor Commented:
Thanks for the reference.  Still trying to get it to work.  Will get back to you in a couple of days.

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now