VC++ 二次开发 怎么调用DLL的函数?
mathcad_prime吧
全部回复
仅看楼主
level 1
isgshsj 楼主
我用VC++做二次开发,怎么一直调用不到 Ptc.MathcadPrime.Automation.dll里的函数,下面这段代码有问题吗?
#include "stdio.h"
#include "windows.h"
#include "stdafx.h"typedef int(*AddFunc)();
int main()
{
AddFunc _AddFunc;
HINSTANCE hInstLibrary = LoadLibrary("Ptc.MathcadPrime.Automation.dll");
_AddFunc = (AddFunc)GetProcAddress(hInstLibrary, "Activate");
return 0;
}
2018年02月13日 13点02分 1
level 4
这个软件不值得二次开发的,bug太多
2019年07月30日 01点07分 2
1