【发布时间】:2015-07-13 11:05:23
【问题描述】:
我正在尝试使用无法通过 Visual Studio 添加为引用的 DLL 中的函数(出现“无法添加引用”的消息)。但是,我从 DLL 的创建者那里得到了指示,他们建议我在 VB.Net 中像这样使用它们:
Private Declare Function Prn_Init Lib "VAx_VPOS396_APPAPI.dll" () As Integer
这行得通,但现在我想用 C# 编写一个程序。如何将该声明“翻译”为 C#?
附加:在 C++ 中,声明位于 *.h 文件中,其中包含以下几行:
#ifndef _VPOS396DLL_API_H
#define _VPOS396DLL_API_H
VPOS396_DLL_API int Prn_Init(void);
【问题讨论】:
标签: c# dll namespaces declaration