学习sciter - Go语言中文社区

学习sciter


sciter入门

介绍什么的就免了.直接进入正题

平台: Windows 10

IDE : Visual studio 2017

首先从官网下载最新的SDK,https://sciter.com/download/

创建流程. https://sciter.com/forums/topic/simple-question-about-sciter/

总结一下关键点. (注意:官网教程里的SDK目录和项目目录是同级目录,所以使用了相对路径,实际项目中要依据情况更改)

  1. 将 sciter-sdkinclude 加入包含目录

  2. 更改输出目录(可选)

  3. 更改DPI 识别选项

  4. 将 sciter-sdk/include/sciter-win-main.cpp 文件添加到项目

5.替换IDE自动生成的 helloWorld.cpp 为

// HelloWorld.cpp : Defines the entry point for the application.
//

#include “stdafx.h”
#include “HelloWorld.h”

#include “sciter-x-window.hpp”

class frame : public sciter::window {
public:
frame() : window(SW_TITLEBAR | SW_RESIZEABLE | SW_CONTROLS | SW_MAIN | SW_ENABLE_DEBUG) {}
};

#include “resources.cpp”

int uimain(std::function<int()> run) {

//sciter::debug_output_console console; - uncomment it if you will need console window

sciter::archive::instance().open(aux::elements_of(resources)); // bind resources[] (defined in “resources.cpp”) with the archive

frame *pwin = new frame();

// note: this:

版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/qq_15585645/article/details/89193893
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2019-09-05 13:32:23
  • 阅读 ( 3387 )
  • 分类:

0 条评论

请先 登录 后评论

官方社群

GO教程

推荐文章

猜你喜欢