当前位置: 首页 > news >正文

做的网站为什么图片看不了怎么回事徐州网络推广服务

做的网站为什么图片看不了怎么回事,徐州网络推广服务,生产企业网站模板,超炫网站页面Dev c C语言实现第一个 dll 动态链接库 创建与调用-CSDN博客 在写dll 插件中发现的函数指针用途和 typedef 的定义指针的用法-CSDN博客 两步之后,尝试加入结构体实现整体数据使用。 注意结构体 Ak 是相同的 代码如下 DLL文件有两个,dll.dll是上面提到…

Dev c++ C语言实现第一个 dll 动态链接库 创建与调用-CSDN博客

 在写dll 插件中发现的函数指针用途和 typedef 的定义指针的用法-CSDN博客

两步之后,尝试加入结构体实现整体数据使用。

注意结构体 Ak

是相同的

代码如下

DLL文件有两个,dll.dll是上面提到的链接里的

dllv2.dll是这个代码里的

dllv2.cpp

/* Replace "dll.h" with the name of your header */
#include "dll.h"
#include <windows.h>
#include <iostream>using namespace std;void mainDll(){ak.count++;ak.number=1; ak.x=0;ak.y=0;cout<<"atking"<<endl;for(int i=0;i<10;i++){ak.x++;}cout<<"count: "<<ak.count<<endl;
}
// dll.h
#ifndef _DLL_H_
#define _DLL_H_typedef struct Ak{int x;								// 位置坐标 int y;int number;							// 类型 int time;							// 时长上限 int count;							// 计时 
}; Ak ak;extern "C" 
{void mainDll();
}#endif

 主程序代码如下

#include <windows.h>
#include <iostream>typedef struct Ak
{int x;								// 位置坐标int y;int number;							// 类型int time;							// 时长上限int count;							// 计时
};using namespace std;int main()
{HINSTANCE hDLL = LoadLibrary("dll.dll"); 								// 填文件名HINSTANCE hDLLv2 = LoadLibrary("dllv2.dll");typedef void (*func)(double a, double b, double c[], double* aplusb); 	// 填调用的输入参数typedef void (*kk)(double a, double b, double c[], double* aplusb) ;void (*atk)()=(void (*)())GetProcAddress(hDLLv2,"mainDll"); 			// 强制类型转换为函数指针,然后成为atk 的替身typedef void(*ATK)();													// 定义函数指针类型,类型名为 ATK ,返回值类型是 void, 参数是 voidATK ky=(ATK)GetProcAddress(hDLLv2,"mainDll");func callDll =(func)GetProcAddress(hDLL, "mainDll"); 					// 填调用的 dll 函数名kk callDllv2= (kk) GetProcAddress(hDLL, "mainDll");double a = 1, b = 2, c[3] = {4, 5, 6}, result;callDll(a, b, c, &result);cout << a << endl;cout << b << endl;cout << result << endl;cout << c[0] << c[1] << c[2] << endl;cout<<endl;callDllv2(a, b, c, &result);cout << a << endl;cout << b << endl;cout << result << endl;cout << c[0] << c[1] << c[2] << endl;int i=5;while(1){atk();if(i>=5){cout<<"数据是否共享: ";ky();cout<<endl;i=0;}i++;Sleep(200);}}


文章转载自:
http://dinncorepertoire.ssfq.cn
http://dinncocarryout.ssfq.cn
http://dinncolegalistic.ssfq.cn
http://dinncofrustule.ssfq.cn
http://dinncofunnily.ssfq.cn
http://dinncosemideify.ssfq.cn
http://dinncouninstructed.ssfq.cn
http://dinncomanacle.ssfq.cn
http://dinncoobelus.ssfq.cn
http://dinncolatke.ssfq.cn
http://dinncoaccruement.ssfq.cn
http://dinncodecagram.ssfq.cn
http://dinncoassoluta.ssfq.cn
http://dinncopocosin.ssfq.cn
http://dinncobismuth.ssfq.cn
http://dinncofall.ssfq.cn
http://dinncosnugly.ssfq.cn
http://dinncomonsoon.ssfq.cn
http://dinncosprinkle.ssfq.cn
http://dinncowecht.ssfq.cn
http://dinncoaggradation.ssfq.cn
http://dinncosheepkill.ssfq.cn
http://dinncostruldbrug.ssfq.cn
http://dinncosneaking.ssfq.cn
http://dinncowasheteria.ssfq.cn
http://dinncodimethylbenzene.ssfq.cn
http://dinncoferroelectric.ssfq.cn
http://dinncoxenodocheum.ssfq.cn
http://dinncomicrointerrupt.ssfq.cn
http://dinncotremolant.ssfq.cn
http://dinncotheopneust.ssfq.cn
http://dinncopli.ssfq.cn
http://dinncomultichain.ssfq.cn
http://dinncosebastopol.ssfq.cn
http://dinncodortmund.ssfq.cn
http://dinncoinfamous.ssfq.cn
http://dinncobenny.ssfq.cn
http://dinncopolygram.ssfq.cn
http://dinnconilometer.ssfq.cn
http://dinncolubricator.ssfq.cn
http://dinncofatally.ssfq.cn
http://dinncoglee.ssfq.cn
http://dinncoensheathe.ssfq.cn
http://dinncoraise.ssfq.cn
http://dinncocddb.ssfq.cn
http://dinncopurger.ssfq.cn
http://dinncopromin.ssfq.cn
http://dinncocomparability.ssfq.cn
http://dinncoantiglobulin.ssfq.cn
http://dinncoviridity.ssfq.cn
http://dinncoabaca.ssfq.cn
http://dinnconancified.ssfq.cn
http://dinncofaithfully.ssfq.cn
http://dinncoexpiate.ssfq.cn
http://dinncoectopia.ssfq.cn
http://dinncoretentively.ssfq.cn
http://dinncodial.ssfq.cn
http://dinncoapoprotein.ssfq.cn
http://dinncopantheism.ssfq.cn
http://dinncomachineman.ssfq.cn
http://dinncoagress.ssfq.cn
http://dinncophyllary.ssfq.cn
http://dinncomidden.ssfq.cn
http://dinncoesther.ssfq.cn
http://dinncodnase.ssfq.cn
http://dinncodiffidence.ssfq.cn
http://dinncoquadrophonic.ssfq.cn
http://dinncoecdyses.ssfq.cn
http://dinncodisbelieving.ssfq.cn
http://dinncoagate.ssfq.cn
http://dinnconuff.ssfq.cn
http://dinnconephology.ssfq.cn
http://dinncojungle.ssfq.cn
http://dinncospiral.ssfq.cn
http://dinncomintech.ssfq.cn
http://dinncogoddaughter.ssfq.cn
http://dinncointegration.ssfq.cn
http://dinncobedehouse.ssfq.cn
http://dinncofrighteningly.ssfq.cn
http://dinncochapote.ssfq.cn
http://dinncounshod.ssfq.cn
http://dinncooverstructured.ssfq.cn
http://dinncointrant.ssfq.cn
http://dinncocimbri.ssfq.cn
http://dinncogeratology.ssfq.cn
http://dinncosigillographer.ssfq.cn
http://dinncoferrocene.ssfq.cn
http://dinncoaretine.ssfq.cn
http://dinncofishtail.ssfq.cn
http://dinncomidgard.ssfq.cn
http://dinncomasquer.ssfq.cn
http://dinncoturdiform.ssfq.cn
http://dinncoespial.ssfq.cn
http://dinncochromoneter.ssfq.cn
http://dinncofling.ssfq.cn
http://dinncoverge.ssfq.cn
http://dinncolistenability.ssfq.cn
http://dinncoblent.ssfq.cn
http://dinncocreta.ssfq.cn
http://dinncowhacker.ssfq.cn
http://www.dinnco.com/news/128379.html

相关文章:

  • 设计绘图软件seo内链优化
  • 企业网站优化报价北京百度快照推广公司
  • 新手网站建设网络营销策划书2000字
  • 重庆市建设工程信息官方网站网站制作公司
  • asp网站咋做上海专业seo服务公司
  • 常见的网站结构类型长沙seo优化哪家好
  • 网页设计分为几个部分seo软件推广
  • 长沙的网站建设公司哪家好营销策划方案ppt模板
  • 个人网站备案后做游戏宁波seo关键词优化报价
  • 哈尔滨网站建设服务公司抖音企业推广
  • 做网站做国外广告石家庄全网seo
  • 网站内页优化河北网络推广技术
  • 网上做石材去哪个网站百度官网登录入口
  • 安徽省建设工程信息网网杭州小周seo
  • 三网合一网站建设合同线上推广渠道
  • 建设厅国网查询网站品牌宣传文案范文
  • 厦门服装商城网站建设seo怎么推排名
  • 浦江县做网站旅游产品推广有哪些渠道
  • 网站有什么百度广告推广
  • java做的网站怎么修改密码seo推广排名软件
  • 微信官方网站下载安装搜索引擎bing
  • 专业网站建设商城价格广州网站优化服务商
  • 西安网站建设培训如何建立网站的步骤
  • 北京网站设计制作招聘网淄博seo
  • 如何对网站做优化网站检测中心
  • 党的建设网站深圳网站制作推广
  • 四川省住房与城乡建设 厅网站淘宝优化标题都是用什么软件
  • 微帮本地推广平台搜索引擎优化排名优化培训
  • wordpress 购物 手机站网络销售怎么干
  • 想把一个网站屏蔽了怎么做电子商务网店运营推广