Delphi calls the DLL compiled by VC

Source: Internet
Author: User
Delphi calls VC-compiled DLL Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiAPI/html/delphi_20061115223555225.html
If you try to use Delphi to call a VC-compiled DLL, you can call it normally when defining common types of parameters in the DLL interface function, but when defining a callback function in the interface function, when passing the function pointer into the interface function in Delphi, an error is always reported. If you use Delphi to create a DLL with the same function, there is no problem. Please advise! In addition, both the interface function and the callback function have been declared using stdcall.

> An error is always reported when the function pointer is passed into the interface function in Delphi.

What's wrong?

Post a description about your function declaration.CodeIncluding the declaration of the callback function

You can search previous posts for the issue of mutual calling of DLL compiled by Delphi and VC.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.