刚接触vs,写了个简单的测试的例子,发现生成的动态库没有入参
.cpp
#include "TestDLL.h"
int init(const int a, const int b)
{
return a + b;
}
.h
#pragma once
extern "C" declspec(dllexport) int __init(const int a, const int b);
使用dumpbin查看动态库,内容如下:
为什么没有入参呢?不是应该是这样的吗?
ordinal hint RVA name
1 0 00001000 sum = @ILT+140(sum)