编程语言
首页 > 编程语言> > dll向C#调用程序传送进度信息

dll向C#调用程序传送进度信息

作者:互联网

DLL函数接口:
const int WK_MSG = 1100;
extern "C" __declspec(dllexport)  int WK_FMCW(void* intp, char* param_txt)
{
	HANDLE handlebuf = (HANDLE)intp;
	HWND handleout = (HWND)handlebuf;
	char*jindu = "0";//进度,此处进度设置的0%
	MysendMessageCshop(handleout, jindu);
	return 0;
}
int MysendMessageCshop(HWND handle,char * p)
{
	::SendMessageA(handle,WK_MSG,(WPARAM)p,0);
	//MysendMessageCshop向C#发送进度信息。
	return 0;
}

标签:调用,C#,HWND,MysendMessageCshop,WK,dll,char,int,进度
来源: https://blog.csdn.net/cynh4234658/article/details/113513359