我已經開發含有具有該原型的功能的MFC DLL: //DLL code
long __declspec(dllexport) GetData(CString csIdentifier, CStringArray& arrOfData)
{
//based on the identifier I must add some strings inside the string array
我在Visual Studio的dll類型中創建了示例C++項目。它包含頭文件SqlLtDb.h: using namespace std;
// This class is exported from the SqlLtDb.dll
class CSqlLtDb {
public:
CSqlLtDb(char *fileName);
~CSq
我想在Mac OS X 10.6上編譯一個簡單的DLL,並且對正確聲稱DLL提供給世界使用的函數的方法感到困惑。以下從可靠的來源示例代碼,我想出了: __declspsec(dllexport) pascal int ReturnTheNumberFive(void)
但它GCC barfs。示例代碼實際上是MACPASCAL和DLLExport,我認爲它們是宏。我仔細查看了#define的示