本文首发于个人博客https://kezunlin.me/post/4ec4ae49/,欢迎阅读最新内容! how to implement a template class with c++ and export in dll/so Guide questions 模板类必须在header中实现,而不能在cpp中实现,否则作为dll调用进行链接的时候回出错. common solutions(Recommend) implement template functions in header.…
android中使用地图的地方随处可见,今天记录一下网络路径生成自定义marker,点击标记弹出自定义的窗口(在这里使用的是高德地图) 在这里我们使用Grilde去加载网络图片,因为这个简直太方便了! 在android studio下,在app/build.gradle文件当中添加如下依赖: compile 'com.github.bumptech.glide:glide:3.7.0' 接下来就是代码的实现部分 代码注释的比较详细 /** * Created by Yyyyq on 2018/4…
原文:[WPF]右下角弹出自定义通知样式(Notification)--简单教程 1.先看效果 2.实现 1.主界面是MainWindow 上面就只摆放一个Button即可.在Button的点击事件中需要new一个弹出的NotificationWindow.代码如下: public static List<NotificationWindow> _dialogs = new List<NotificationWindow>(); int i = 0; private void Bu…
接上一篇. 上一篇的dll在编译过程中一直有一个警告warning C4251: ‘CLASS_TEST::m_structs’ : class ‘std::vector<_Ty>’ needs to have dll-interface to be used by clients of class ,百 度之才发现是因为DLL中导出了STL中的类,二STL中的类默认是没有导出的,因此报告这个警告. 程序中消除warning有两种方法: 消极一点不去理他,反正不是error: 积极一点,则想办…