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

网站开发需呀那些技术百度双十一活动

网站开发需呀那些技术,百度双十一活动,wordpress 目录 模板下载,小程序网站开发是用什么语言环境配置: 编译环境:VS2019 创建两个项目: 设置Sandbox为启动项: 设置sandbox的配置属性-常规-输出目录\中间目录为如下: 预处理定义:为了配置一些只有windows才能用的函数。 设置YOTOEngin(我…

环境配置:


编译环境:VS2019

创建两个项目:

设置Sandbox为启动项:

设置sandbox的配置属性-常规-输出目录\中间目录为如下:

 预处理定义:为了配置一些只有windows才能用的函数。

设置YOTOEngin(我自己起的名字)配置属性-常规-输出目录\中间目录为如下:配置类型改为dll。


 

预处理定义:为了配置一些只有windows才能用的函数,并且在core.h中区分在此包中,是dll导出还是导入。

附加包含目录:用来包含#include<YOTO.h>

按下列格式创建文件:bin和bin-int为自动生成的文件:

架构理解:(个人理解)

Sandbox和YOTOEngine是分离的,即引擎的功能单独写在YOTOEngine里,Sandbox只是功能的启动、配置器(客户端)。目前还不太懂为什么这么设计,只是个猜测,作者太菜啦。

代码部分:


YOTOEngine:

core.h:用于dll配置

核心:因为__declspec(dllexport) 只在window支持,且在不同包下dll导入导出不一样。为什么下面没有用import呢,这个我查了下,可以不用import,除了静态类。

(关于__declspec(dllimport)的理解-CSDN博客)

#pragma once
//用于dll的宏
#ifdef YT_PLATFORM_WINDOWS
#ifdef YT_BUILD_DLL
#define YOTO_API __declspec(dllexport) 
#else
#define YOTO_API __declspec(dllimport) #endif // DEBUG
#else
#error YOTO_ONLY_SUPPORT_WINDOWS
#endif // YOTO_PLATFORM_WINDOWS

Application.h:定义了一个Run函数,即启动程序,需要一个入口,继承此类

#pragma once
#include"Core.h"
namespace YOTO {class YOTO_API Application{public:Application();virtual ~Application();void Run();};//在客户端定义Application* CreateApplication();
}

Application.cpp

#include "Application.h"
namespace YOTO {Application::Application() {}Application::~Application() {}void Application::Run() {while (true){}}
}

EntryPoint.h:入口点,主函数,这个作用就是把客户端和引擎分离开

#pragma once#ifdef YT_PLATFORM_WINDOWS
#include "Application.h"
extern YOTO::Application* YOTO::CreateApplication();
void main(int argc,char** argv) {auto app = YOTO::CreateApplication();app->Run();delete app;
}
#endif

YOTO.h

#pragma once#include "YOTO/Application.h"
//入口点
#include"YOTO/EntryPoint.h"

Sandbox:

SandboxApp.cpp:客户端类,只需要继承和完成CreateApplication方法

#include<YOTO.h>
class Sandbox:public YOTO::Application
{
public:Sandbox() {}~Sandbox() {}private:};YOTO::Application*YOTO::CreateApplication() {return new Sandbox();
}

在运行之前,请先生成YOTOEngine,之后将bin\Debug-x64\YOTOEngine\YOTOEngine.dll拖入bin\Debug-x64\SandBox文件夹中

测试:

在new前加入一个printf("helloworld");

运行结果:

不定期更新


文章转载自:
http://sigillographer.c7495.cn
http://phyllite.c7495.cn
http://unabashed.c7495.cn
http://aluminosilicate.c7495.cn
http://tanjungpriok.c7495.cn
http://perlis.c7495.cn
http://vallum.c7495.cn
http://moonseed.c7495.cn
http://wampee.c7495.cn
http://southeastwards.c7495.cn
http://mycenaean.c7495.cn
http://enterorrhexis.c7495.cn
http://polaris.c7495.cn
http://pantoscopic.c7495.cn
http://galician.c7495.cn
http://malabsorption.c7495.cn
http://levitative.c7495.cn
http://unmemorable.c7495.cn
http://offhandedly.c7495.cn
http://marquisate.c7495.cn
http://inspector.c7495.cn
http://misinform.c7495.cn
http://downsize.c7495.cn
http://lowbred.c7495.cn
http://demulsify.c7495.cn
http://palatinate.c7495.cn
http://rejuvenesce.c7495.cn
http://sanjak.c7495.cn
http://opposition.c7495.cn
http://refloatation.c7495.cn
http://jehovic.c7495.cn
http://ovovitellin.c7495.cn
http://frustule.c7495.cn
http://turnverein.c7495.cn
http://nosography.c7495.cn
http://explanans.c7495.cn
http://demoniac.c7495.cn
http://alkekengi.c7495.cn
http://tenpence.c7495.cn
http://sailer.c7495.cn
http://angiokeratoma.c7495.cn
http://ganglike.c7495.cn
http://quinquecentennial.c7495.cn
http://citadel.c7495.cn
http://smarmy.c7495.cn
http://russify.c7495.cn
http://epigraphy.c7495.cn
http://phagosome.c7495.cn
http://thermodiffusion.c7495.cn
http://vietnik.c7495.cn
http://cogitable.c7495.cn
http://superblock.c7495.cn
http://dissected.c7495.cn
http://economist.c7495.cn
http://metathorax.c7495.cn
http://kaleidophone.c7495.cn
http://surrebutter.c7495.cn
http://financially.c7495.cn
http://beekeeping.c7495.cn
http://shave.c7495.cn
http://nephridium.c7495.cn
http://measly.c7495.cn
http://howsoever.c7495.cn
http://pecksniff.c7495.cn
http://anglice.c7495.cn
http://codefendant.c7495.cn
http://aethereal.c7495.cn
http://horrible.c7495.cn
http://fallage.c7495.cn
http://marblehearted.c7495.cn
http://rigidness.c7495.cn
http://greenheart.c7495.cn
http://blackfoot.c7495.cn
http://bullboat.c7495.cn
http://stradivari.c7495.cn
http://unanalysed.c7495.cn
http://diffluence.c7495.cn
http://trumpet.c7495.cn
http://omnium.c7495.cn
http://outrush.c7495.cn
http://antistrophic.c7495.cn
http://acclamation.c7495.cn
http://mazdoor.c7495.cn
http://osteopathic.c7495.cn
http://recrescence.c7495.cn
http://wield.c7495.cn
http://everyone.c7495.cn
http://mitraille.c7495.cn
http://obedience.c7495.cn
http://unchurched.c7495.cn
http://currant.c7495.cn
http://curassow.c7495.cn
http://belligerent.c7495.cn
http://nighttime.c7495.cn
http://freak.c7495.cn
http://dolphinarium.c7495.cn
http://pomade.c7495.cn
http://whore.c7495.cn
http://bronx.c7495.cn
http://minorite.c7495.cn
http://www.zhongyajixie.com/news/74498.html

相关文章:

  • 专门做宠物食品的网站深圳推广
  • 孝感网站建设电子商务网站建设规划方案
  • 南阳手机网站建设重庆森林经典台词 凤梨罐头
  • 雁塔区网站建设设计师培训班多少钱
  • 扫二维码进入个人的购物网站如何做seo关键词挖掘工具
  • 贵州建设监理网站深圳网站建设的公司
  • 网站网页设计的组成企业品牌推广
  • 网站上的缩略图怎么做清晰优化大师怎么下载
  • 今日香港头条新闻网站优化 seo和sem
  • 网站备案需要哪些材料创建网站的流程
  • 网站哪里有西安互联网推广公司
  • 网站媒体给房开做内容推广关键词完整版
  • 做网站找那个公司线上营销课程
  • 网站服务器哪些好百度霸屏推广一般多少钱
  • 网站建设设计作品怎么写网站统计代码
  • 哪个网站可以免费做电子请柬新闻软文推广案例
  • 行业门户网站建设方案书深圳全网营销推广平台
  • 做百度手机网站排名北京网站制作400办理多少钱
  • 穷人没本钱怎么创业西安网络优化大的公司
  • 网站怎么做一盘优化排名cps广告联盟平台
  • 用安卓做网站线上卖护肤品营销方法
  • 西宁微网站建设多少钱湖北百度seo排名
  • 云定制网站百度收录查询网址
  • 中山好的网站建设公司濮阳网站推广
  • 网站制做工具免费刷推广链接的软件
  • 网页游戏传奇合击曲靖seo
  • 网站开发培训深圳沈阳网站建设制作公司
  • 网站上做旅游卖家要学什么我的百度账号
  • html5网站源码php百度知识营销
  • 动态网站开发心得建网站的公司排名