亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? command.cpp

?? 故障診斷工作涉及的領域相當廣泛
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
	static char* inf_empty="空";
	CString infoempty("上一級數據");
	if(run_info)
		delete[] run_info;
	run_info=new char[5];
	for(int i=0;i<5;i++)
	run_info[i]=inf_empty[i];
	(data_in+1)->mset_data(infoempty.GetBuffer(4),infoempty.GetLength()+4,type_mw,NULL,NULL,data_in->the_length,data_in->pdata.mw);
	//*(data_in+1)=*data_in;
}
int z=0;
return result;
}
 _declspec(dllexport) void operator <<(CArchive& ar,command& it)
{	
	ar<<int(it.cmd_type);
	if(!(it.cmd_type==function))
	{
	ar<<it.clsid.Data1;
	ar<<it.clsid.Data2;
	ar<<it.clsid.Data3;
	for(int i=0;i<8;i++)
		ar<<it.clsid.Data4[i];
	ar<<it.iid.Data1;
	ar<<it.iid.Data2;
	ar<<it.iid.Data3;
	for(i=0;i<8;i++)
		ar<<it.iid.Data4[i];
	ar<<it.libid.Data1;
	ar<<it.libid.Data2;
	ar<<it.libid.Data3;
	for(i=0;i<8;i++)
		ar<<it.libid.Data4[i];
	}
	ar<<it.cmd_id;
	ar<<int(it.cmd_lan);
	ar<<int(it.level);
	ar<<it.info_length;
	for(int i=0;i<it.info_length;i++)
		ar<<it.cmd_info[i];
	ar<<it.where_length;
	for(i=0;i<it.where_length;i++)
		ar<<it.cmd_where[i];
	ar<<it.name_length;
	for(i=0;i<it.name_length;i++)
		ar<<it.cmd_name[i];
	ar<<it.conector_cnt;
	for(i=0;i<it.conector_cnt;i++)
		ar<<it.conector[i];

}
  _declspec(dllexport) void operator >>(CArchive& ar,command& it)
{int bag;
	ar>>bag;
	it.cmd_type=(conect_type)bag;
	if(!(it.cmd_type==function))
	{
	ar>>it.clsid.Data1;
	ar>>it.clsid.Data2;
	ar>>it.clsid.Data3;
	for(unsigned int i=0;i<8;i++)
		ar>>it.clsid.Data4[i];
	ar>>it.iid.Data1;
	ar>>it.iid.Data2;
	ar>>it.iid.Data3;
	for(i=0;i<8;i++)
		ar>>it.iid.Data4[i];
	ar>>it.libid.Data1;
	ar>>it.libid.Data2;
	ar>>it.libid.Data3;
	for(i=0;i<8;i++)
		ar>>it.libid.Data4[i];
	}
	ar>>it.cmd_id;
	ar>>bag;
	it.cmd_lan=(language)bag;
	ar>>bag;
	it.level=(grade)bag;;
	ar>>it.info_length;
	it.cmd_info=new char[it.info_length];
	for(unsigned int i=0;i<it.info_length;i++)
		ar>>it.cmd_info[i];
	ar>>it.where_length;
	it.cmd_where=new char[it.where_length];
	for(i=0;i<it.where_length;i++)
		ar>>it.cmd_where[i];
	ar>>it.name_length;
	it.cmd_name=new char[it.name_length];
	for(i=0;i<it.name_length;i++)
		ar>>it.cmd_name[i];
	ar>>it.conector_cnt;
	for(i=0;i<it.conector_cnt;i++)
		ar>>it.conector[i];
	if(it.level<special)
		it.hdll=::LoadLibrary(it.cmd_where);
}
void command::Serialize(CArchive&  ar)
{AFX_MANAGE_STATE(AfxGetStaticModuleState());
	CObject::Serialize(ar);
if(ar.IsStoring())
 ar<<*this;
else
 ar>>*this;
}

void tagconector::Serialize(CArchive &ar)
{AFX_MANAGE_STATE(AfxGetStaticModuleState());
	if(ar.IsStoring())
		ar<<*this;
	else
		ar>>*this;

}

void command::operator =(command& op)
{
		this->clsid=op.clsid;
	this->cmd_id=op.cmd_id;
	this->info_length=op.info_length;
	this->cmd_info=new char[this->info_length+1];
	for(unsigned int i=0;i<this->info_length;i++)
		this->cmd_info[i]=op.cmd_info[i];
	this->cmd_info[info_length]='\0';
	this->cmd_lan=op.cmd_lan;
	this->cmd_type=op.cmd_type;
	this->conector_cnt=op.conector_cnt;
	for(i=0;i<this->conector_cnt;i++)
	{this->conector[i].description_length=op.conector[i].description_length;
	this->conector[i].description=new char[this->conector[i].description_length+1];
	for(unsigned int j=0;j<this->conector[i].description_length;j++)
		this->conector[i].description[j]=op.conector[i].description[j];
		this->conector[i].description[this->conector[i].description_length]='\0';
	this->conector[i].function_length=op.conector[i].function_length;
	this->conector[i].function_name=new char[this->conector[i].function_length+1];
	for(j=0;j<this->conector[i].function_length;j++)
		this->conector[i].function_name[j]=op.conector[i].function_name[j];
	this->conector[i].function_name[this->conector[i].function_length]='\0';
	this->conector[i].in_param_cnt=op.conector[i].in_param_cnt;
	this->conector[i].out_param_cnt=op.conector[i].out_param_cnt;

	}
	this->data_in=op.data_in;
	this->hdll=op.hdll;
	this->icount_in=op.icount_in;
	this->iid=op.iid;
	this->level=op.level;
	this->libid=op.libid;
	this->name_length=op.name_length;
	this->cmd_name=new char[this->name_length+1];
	for(i=0;i<this->name_length;i++)
		this->cmd_name[i]=op.cmd_name[i];
		this->cmd_name[this->name_length]='\0';
	this->where_length=op.where_length;
	this->cmd_where=new char[this->where_length+1];
	for(i=0;i<this->where_length;i++)
		this->cmd_where[i]=op.cmd_where[i];
	this->cmd_where[this->where_length]='\0';
}
 _declspec(dllexport)  void assign(command* op0,command& op,int cmd_id)
{
			op0->clsid=op.clsid;
	op0->cmd_id=cmd_id;
	op0->info_length=op.info_length;
	op0->cmd_info=new char[op0->info_length+1];
	for(unsigned int i=0;i<op0->info_length;i++)
		op0->cmd_info[i]=op.cmd_info[i];
	op0->cmd_info[op0->info_length]='\0';
	op0->cmd_lan=op.cmd_lan;
	op0->cmd_type=op.cmd_type;
	op0->conector_cnt=op.conector_cnt;
	for(i=0;i<op0->conector_cnt;i++)
	{op0->conector[i].description_length=op.conector[i].description_length;
	op0->conector[i].description=new char[op0->conector[i].description_length+1];
	for(unsigned int j=0;j<op0->conector[i].description_length;j++)
		op0->conector[i].description[j]=op.conector[i].description[j];
		op0->conector[i].description[op0->conector[i].description_length]='\0';
	op0->conector[i].function_length=op.conector[i].function_length;
	op0->conector[i].function_name=new char[op0->conector[i].function_length+1];
	for(j=0;j<op0->conector[i].function_length;j++)
		op0->conector[i].function_name[j]=op.conector[i].function_name[j];
	op0->conector[i].function_name[op0->conector[i].function_length]='\0';
	op0->conector[i].in_param_cnt=op.conector[i].in_param_cnt;
	op0->conector[i].out_param_cnt=op.conector[i].out_param_cnt;

	}
	op0->data_in=op.data_in;
	op0->hdll=op.hdll;
	op0->icount_in=op.icount_in;
	op0->iid=op.iid;
	op0->level=op.level;
	op0->libid=op.libid;
	op0->name_length=op.name_length;
	op0->cmd_name=new char[op0->name_length+1];
	for(i=0;i<op0->name_length;i++)
		op0->cmd_name[i]=op.cmd_name[i];
		op0->cmd_name[op0->name_length]='\0';
	op0->where_length=op.where_length;
	op0->cmd_where=new char[op0->where_length+1];
	for(i=0;i<op0->where_length;i++)
		op0->cmd_where[i]=op.cmd_where[i];
	op0->cmd_where[op0->where_length]='\0';
}


char* command::get_run_info() const
{
return run_info;
}

int command::go(int funcnumber,const mydata* in, mydata* out)
{
	AFX_MANAGE_STATE(AfxGetStaticModuleState());
	int result=0;
if(cmd_name!=NULL)
{if(cmd_type==com_std) //遵循定義的標準接口
	{
		CString info(cmd_name,name_length);
		myinterface* face;
		if(FAILED(CoInitialize(NULL)))
			AfxMessageBox("組件庫初試化錯誤"); 
			HRESULT hr=CoCreateInstance(clsid,NULL,CLSCTX_INPROC,iid,(void**)&face);
			if(FAILED(hr))
				AfxMessageBox(info+"模塊沒有找到"); 
		
	}
	else if(cmd_type==com_disp) //格式自由的派發接口
		{	_MCLCONVERSION_FLAGS flags;
			IMWFlags* pFlags = NULL;
		disp_conector it;
		 disp_conector* pit=&it;
		 DISPID dispid;
		 IDispatch* dp;
		 CString info(cmd_name,name_length);
		 if(FAILED(CoInitialize(NULL)))
		 {AfxMessageBox("組件庫初試化錯誤"); 
		 return -1;
		 }
		if (FAILED(CoCreateInstance(CLSID_MWFlags, NULL, CLSCTX_INPROC_SERVER, 
                                  IID_IMWFlags, (void**)&pFlags)))
		{AfxMessageBox("矩陣轉換模塊沒有找到,請檢查Matlab數學庫是否正確安裝");
		return -1;
		};
		if (FAILED(GetConversionFlags(pFlags, &flags)))
        {
            AfxMessageBox("Error getting data conversion flags");
            return -1;
        }
        pFlags->Release();
            
		 HRESULT hr=CoCreateInstance(clsid,NULL,CLSCTX_INPROC,iid,(void**)&dp);
		 if(FAILED(hr))
		 {
			 return -1;
		 } //必要的準備
				CString info1(conector[funcnumber].description,conector[funcnumber].description_length);
					LPOLESTR lcmd_name=new unsigned short[conector[funcnumber].description_length];
					char *ssss=(char*)lcmd_name;
					for( int k=0;k<conector[funcnumber].description_length;k++)
					lcmd_name[k]=conector[funcnumber].description[k];
	
					hr=dp->GetIDsOfNames(IID_NULL,&lcmd_name,1,LOCALE_SYSTEM_DEFAULT,&dispid);
					DWORD* dwp=(DWORD*)dp;
					DWORD* vtable=(DWORD*)(*dwp);
					DWORD* dw=(DWORD*)&(pit->p1i0o);
					*dw=*(vtable+DISP_BASE+dispid);
				static	VARIANT in_bag[MAX_IN_PARAM] ;
				static	VARIANT out_bag[MAX_OUT_PARAM];
					//InitConversionFlags(&flags);
					for(k=0;k<conector[funcnumber].in_param_cnt;k++)
						mxArray2Variant(in->pdata.mw[k].GetData(),in_bag+k,&flags);

					int the_func_type=5*(conector[funcnumber].in_param_cnt)+conector[funcnumber].out_param_cnt;
					hr=invoke(dp,pit,the_func_type,out_bag,in_bag);
					mxArray *tempbag[MAX_OUT_PARAM];
					for(k=0;k<MAX_OUT_PARAM;k++)
					tempbag[k]=NULL;
					mwArray mwbag[MAX_OUT_PARAM];
					for(k=0;k<conector[funcnumber].out_param_cnt;k++)
					{
						Variant2mxArray(out_bag+k,tempbag+k,&flags);
						mwbag[k]=mwArray(tempbag[k]);//mx結構賦予mw類以后由mw析構,切記!!!
					}
				//	double r[10],im[10];
				//	mwbag[0].ExtractData(r,im);
					out->mset_data(run_info,tinfo.GetLength()+4,type_mw,NULL,NULL,conector[funcnumber].out_param_cnt,mwbag);
	}
	else if(cmd_type==function)//普通DLL函數接口
			{int i=funcnumber;
				if(level>=special)
				hdll=::LoadLibrary(cmd_where);
				(data_in+1)->outer=TRUE;
					if((conector+i)->type_in==type_dou)
					{	unsigned int cnt;
						double bag;
						(conector+i)->pfunc.doufunc=(pdaoai)::GetProcAddress(hdll,(conector+i)->description);
						if((conector+i)->pfunc.doufunc!=NULL)
						{
							result=(conector+i)->pfunc.doufunc(&bag,&cnt,in->pdata.dou,in->the_length);
							out->set_data(NULL,NULL,type_dou,cnt,&bag);
						}
						else
						{CString info((conector+i)->function_name,(conector+i)->function_length);
							AfxMessageBox(info+"函數沒有找到");
						}
					}
					else if((conector+i)->type_in==type_mw)
					{unsigned int cnt;
						mwArray bag;
						(conector+i)->pfunc.mwfunc=(pdmwomwi)::GetProcAddress(hdll,(conector+i)->description);
						if((conector+i)->pfunc.mwfunc!=NULL)
						{
							result=(conector+i)->pfunc.mwfunc(&bag,&cnt,in->pdata.mw,in->the_length);
							double r[4],i[4];
							bag.ExtractData(r,i);
							out->mset_data(NULL,NULL,type_mw,NULL,NULL,cnt,&bag);
						}
						else
						{CString info((conector+i)->function_name,(conector+i)->function_length);
							AfxMessageBox(info+"函數沒有找到");
						}
						::FreeLibrary(hdll);
							hdll=NULL;
					}
				//	else if((conector+i)->type_in==type_var) //暫時不支持
				//		(conector+i)->pfunc.varfunc=(pdvovi)::GetProcAddress(hdll,(conector+i)->description);
		
	}
}
return result;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区中文日韩| 五月天网站亚洲| 欧美国产日本韩| 国产精品丝袜久久久久久app| 国产人成亚洲第一网站在线播放 | 欧美日韩综合在线| 一本一道综合狠狠老| 日韩电影在线观看网站| 亚洲gay无套男同| 天天色天天操综合| 久久99精品久久久久久| 日本三级亚洲精品| 亚洲国产日产av| 亚洲女同ⅹxx女同tv| 亚洲国产精品一区二区www| 亚洲无人区一区| 国产在线精品视频| 国产91精品一区二区麻豆亚洲| 91性感美女视频| 欧美电影一区二区| 国产偷v国产偷v亚洲高清| 一区二区高清在线| 免费在线视频一区| 91啪亚洲精品| 日韩欧美视频在线| 综合欧美一区二区三区| 激情成人午夜视频| 欧美亚洲精品一区| 国产精品国产自产拍高清av| 丝袜a∨在线一区二区三区不卡| 国内精品视频666| 在线观看视频一区二区| 国产视频一区在线播放| 亚洲人成影院在线观看| 日本视频中文字幕一区二区三区| 成人av一区二区三区| 日韩欧美一区二区免费| 亚洲美女屁股眼交| 日韩在线观看一区二区| 成人免费高清在线| 欧美人狂配大交3d怪物一区| 久久久噜噜噜久久中文字幕色伊伊| 国产偷v国产偷v亚洲高清| 美国精品在线观看| 日本韩国一区二区| 亚洲精品国产高清久久伦理二区| 国产一区二区三区| 久久亚洲综合色| 激情丁香综合五月| 久久久久99精品一区| 国产麻豆精品95视频| 久久综合久久综合九色| 国内精品伊人久久久久av一坑| 久久综合999| 国产精品996| 综合久久久久综合| 欧美日韩性生活| 久久99精品一区二区三区| 中文字幕+乱码+中文字幕一区| 成人sese在线| 日韩影院精彩在线| 中文一区二区在线观看| 91国产成人在线| 麻豆精品视频在线观看视频| 欧美激情一区不卡| 欧美日韩国产影片| 国产成人精品免费| 亚洲一区二区偷拍精品| 91精品国产综合久久久久久久| 日韩va亚洲va欧美va久久| 久久精品视频免费观看| 一本大道av伊人久久综合| 美女视频黄久久| 亚洲黄色免费电影| 久久伊99综合婷婷久久伊| 国产亚洲欧美日韩俺去了| 一本一道综合狠狠老| 久草精品在线观看| 亚洲国产va精品久久久不卡综合| 久久久久国产精品免费免费搜索| 9191久久久久久久久久久| 91蜜桃免费观看视频| 高潮精品一区videoshd| 久久99国产乱子伦精品免费| 亚洲精品国产成人久久av盗摄 | 欧美福利一区二区| 欧美中文字幕一区二区三区亚洲| 久久成人免费电影| 美女视频免费一区| 天天综合色天天综合色h| 亚洲一区二区在线观看视频 | 91免费国产在线| av激情亚洲男人天堂| 国产成人自拍在线| 国产精品一线二线三线| 日本女人一区二区三区| 免费观看30秒视频久久| 亚洲午夜在线视频| 午夜国产不卡在线观看视频| 亚洲色图欧洲色图婷婷| 亚洲免费资源在线播放| 亚洲综合一二三区| 蜜臀国产一区二区三区在线播放| 蜜臀av在线播放一区二区三区| 精品亚洲成av人在线观看| 国产盗摄女厕一区二区三区| 国产福利91精品一区二区三区| 福利电影一区二区| 99久久免费视频.com| 欧美日韩国产天堂| 日韩亚洲电影在线| 国产精品久久久99| 亚洲一区二区三区中文字幕在线| 日韩高清不卡在线| 国产99久久久精品| 91精品办公室少妇高潮对白| 555www色欧美视频| 日韩精品中文字幕在线一区| 久久综合视频网| 成人欧美一区二区三区在线播放| 亚洲国产aⅴ天堂久久| 免费国产亚洲视频| 色香蕉成人二区免费| 日韩无一区二区| 国产精品欧美一级免费| 三级在线观看一区二区| 国产乱码精品一区二区三区忘忧草 | 久久免费精品国产久精品久久久久| 在线精品视频小说1| 欧美一级国产精品| 777色狠狠一区二区三区| 久久久久久久电影| 午夜精品久久久| 91精品一区二区三区在线观看| 精品久久久久久久人人人人传媒 | 成人黄色综合网站| 日韩三级av在线播放| 有坂深雪av一区二区精品| 精品一区二区成人精品| 欧美日韩黄色一区二区| 亚洲另类在线视频| www.亚洲国产| 中文字幕欧美日本乱码一线二线| 五月天久久比比资源色| 欧美少妇性性性| 亚洲欧美日韩一区二区| gogo大胆日本视频一区| 国产精品美女久久久久aⅴ国产馆| 蜜臀av在线播放一区二区三区| 6080亚洲精品一区二区| 一区二区三区四区亚洲| 在线这里只有精品| 成人免费黄色在线| 中文字幕在线不卡视频| 成人va在线观看| 国产精品高潮呻吟| 91精品办公室少妇高潮对白| 一区二区三区小说| 欧美日韩色综合| 麻豆精品新av中文字幕| 精品国产露脸精彩对白| 国产v综合v亚洲欧| 国产精品综合视频| 亚洲精品菠萝久久久久久久| 欧美伊人精品成人久久综合97 | 91传媒视频在线播放| 亚洲国产色一区| 欧美精品一区二区三区一线天视频| 韩国精品在线观看| 综合久久给合久久狠狠狠97色| 欧美日韩一卡二卡三卡 | 成人爱爱电影网址| 专区另类欧美日韩| 精品国产91九色蝌蚪| 色悠悠久久综合| 日本视频在线一区| ...中文天堂在线一区| 欧美专区日韩专区| 国产乱码精品一区二区三区av| 一区二区三区在线免费| 欧美色窝79yyyycom| 国产成人在线看| 奇米色777欧美一区二区| 国产精品久久久久一区二区三区| 欧美日韩1234| 大胆欧美人体老妇| 经典三级在线一区| 91啪九色porn原创视频在线观看| 日韩va欧美va亚洲va久久| 亚洲精品中文字幕在线观看| 欧美成人官网二区| 91精品久久久久久久久99蜜臂| 色综合久久久久综合体桃花网| 国产在线精品免费av| 日日摸夜夜添夜夜添精品视频| 亚洲免费高清视频在线| 亚洲欧美怡红院| 亚洲欧洲成人自拍| 国产精品久久久久久久岛一牛影视| 国产欧美一区二区三区在线看蜜臀 |