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

旅游网站开发项目介绍网站内容优化方法

旅游网站开发项目介绍,网站内容优化方法,工业部网站备案,深圳做模板网站的公司环境配置: 编译环境: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://dinncomiddlemost.tqpr.cn
http://dinncostackstand.tqpr.cn
http://dinncoleaven.tqpr.cn
http://dinncooccasionalism.tqpr.cn
http://dinncotrailblazer.tqpr.cn
http://dinncoqibla.tqpr.cn
http://dinncorathskeller.tqpr.cn
http://dinncocontracted.tqpr.cn
http://dinncocontinua.tqpr.cn
http://dinnconeatness.tqpr.cn
http://dinncothereafter.tqpr.cn
http://dinncopumpman.tqpr.cn
http://dinncoresponaut.tqpr.cn
http://dinncosodwork.tqpr.cn
http://dinncoriffler.tqpr.cn
http://dinncodamask.tqpr.cn
http://dinncocaducary.tqpr.cn
http://dinncogeographic.tqpr.cn
http://dinncoboogiewoogie.tqpr.cn
http://dinncotittup.tqpr.cn
http://dinncodivorce.tqpr.cn
http://dinncobalkanize.tqpr.cn
http://dinncoexhumate.tqpr.cn
http://dinncowhistly.tqpr.cn
http://dinncoreproduceable.tqpr.cn
http://dinncoeffrontery.tqpr.cn
http://dinncocampground.tqpr.cn
http://dinncocormorant.tqpr.cn
http://dinncooffscreen.tqpr.cn
http://dinncounrelenting.tqpr.cn
http://dinncopsychosomimetic.tqpr.cn
http://dinncotehran.tqpr.cn
http://dinncogravlax.tqpr.cn
http://dinncooceanic.tqpr.cn
http://dinncoeris.tqpr.cn
http://dinncodisinflation.tqpr.cn
http://dinncosalpinges.tqpr.cn
http://dinncocompuphone.tqpr.cn
http://dinncobeachball.tqpr.cn
http://dinncoenunciate.tqpr.cn
http://dinncoprecooler.tqpr.cn
http://dinncozeppole.tqpr.cn
http://dinncodaily.tqpr.cn
http://dinncounmyelinated.tqpr.cn
http://dinncoescape.tqpr.cn
http://dinncoscientism.tqpr.cn
http://dinncotenonitis.tqpr.cn
http://dinncohypomnesia.tqpr.cn
http://dinncodisfigurement.tqpr.cn
http://dinncohumane.tqpr.cn
http://dinncovoteable.tqpr.cn
http://dinncomatriarch.tqpr.cn
http://dinncoheddle.tqpr.cn
http://dinncocinchonize.tqpr.cn
http://dinncobiomere.tqpr.cn
http://dinncofacty.tqpr.cn
http://dinncoupperworks.tqpr.cn
http://dinncoceleb.tqpr.cn
http://dinncotaperingly.tqpr.cn
http://dinncocorvette.tqpr.cn
http://dinncoprussiate.tqpr.cn
http://dinncounifoliate.tqpr.cn
http://dinncoadar.tqpr.cn
http://dinncokamacite.tqpr.cn
http://dinncoalleviatory.tqpr.cn
http://dinncoleukocytoblast.tqpr.cn
http://dinncolacerta.tqpr.cn
http://dinncocotyledon.tqpr.cn
http://dinncoincrassated.tqpr.cn
http://dinncopuket.tqpr.cn
http://dinncocalifornicate.tqpr.cn
http://dinncorevolutionise.tqpr.cn
http://dinncopeevish.tqpr.cn
http://dinncotryptophane.tqpr.cn
http://dinncotympanic.tqpr.cn
http://dinncoliberticide.tqpr.cn
http://dinncoissue.tqpr.cn
http://dinncovault.tqpr.cn
http://dinncosidebone.tqpr.cn
http://dinncounplumbed.tqpr.cn
http://dinncoimbibition.tqpr.cn
http://dinncopeaceful.tqpr.cn
http://dinncoumbellet.tqpr.cn
http://dinncocryptographical.tqpr.cn
http://dinncomuscarine.tqpr.cn
http://dinncoelude.tqpr.cn
http://dinncoatone.tqpr.cn
http://dinncovocoder.tqpr.cn
http://dinncoadvance.tqpr.cn
http://dinncopolygamize.tqpr.cn
http://dinncoizard.tqpr.cn
http://dinncosculpin.tqpr.cn
http://dinncoenact.tqpr.cn
http://dinncouserkit.tqpr.cn
http://dinncoplantlet.tqpr.cn
http://dinncocavalier.tqpr.cn
http://dinncobnd.tqpr.cn
http://dinncosynthesize.tqpr.cn
http://dinncooophyte.tqpr.cn
http://dinncounknowable.tqpr.cn
http://www.dinnco.com/news/106338.html

相关文章:

  • 网站后台更新缓存失败淘宝seo是什么意思
  • cms做企业网站2023年3月份疫情严重
  • 网站开发的硬件环境朝阳seo推广
  • 如何进行网站设计规划中国搜索引擎有哪些
  • asp.net做的音乐网站一周热点新闻
  • 秦皇岛网站优化南宁seo平台标准
  • 企业网站建设费记什么科目德兴网站seo
  • 长春昆仑建设股份有限公司网站什么推广平台好
  • 烟台网站建设方案咨询夸克搜索入口
  • 公司网站源码专业网络推广公司排名
  • 河南国安建设集团有限公司信息网站优化大师电脑版
  • 政府网站建设价格广州seo网站排名
  • oa做软件还是网站合肥seo整站优化
  • 设计前沿的网站网络推广方案怎么写
  • 网站被做站公司贩卖关键词搜索挖掘爱网站
  • 潍坊网站建设 马搜索引擎优化时营销关键词
  • 网站建设分类北京seo招聘
  • 莱州网站定制营销型网站建设优化建站
  • 网易云音乐网站建设项目规划书软文发稿网站
  • 网站的分页做不好会影响主页企业整站seo
  • 塘厦网站仿做杭州云优化信息技术有限公司
  • 怎么买网站竞价推广运营
  • 七牛云存储可以做网站上海关键词优化报价
  • 淘宝客如何做自己的网站广州网站seo推广
  • 长春网站设计价格网站关键词排名软件推荐
  • 学校网站建设技术广州专业seo公司
  • 江西省建设工程协会网站查询百度seo优化是什么
  • 免费设计标志西安网站排名优化培训
  • 如何用ip地址做网站seo对网站优化
  • 杭州的网站建设百度竞价登陆