Visual Basic Calling Conventions For DLL

Posted on 2007-10-02
Last Modified: 2012-06-27
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.
Question by:rogerkirk
    LVL 25

    Accepted 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.

    Author Comment

    Thanks for the reference.  Still trying to get it to work.  Will get back to you in a couple of days.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now