{I+=codeWee;}
[C++] Import and export function by using DLL
== export ==

extern "C"
{
	__declspec(dllexport) int DLL_Add(int a, int b)
	{
		return a+b;
	}
}

== import == 

extern "C" __declspec(dllimport) int DLL_Add(int a, int b);

int Add()
{
	return DLL_Add(1,2);
}
HTML | PHP | C++ | DirectX11 | Javascript | C# | HTML5 | ASP | SQL | General | CSS | Oculus Rift | Unity3d | Virtools SDK | Tip | NSIS | PowerShell | node.js | Web API | RTSP | All
Copyright© 2016 CodeWee.com All rights reserved.