随笔分类 - VS+MongoDB+Qt
摘要:今天编写C++程序在使用头文件#include<cstring>中的strcpy()和strcat()函数时出现了一个错误:error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s
阅读全文
摘要:原文链接:https://blog.csdn.net/HEU_monster/article/details/109135138 #include 头文件找不到文件。已经编好的头文件,在其他文件中需要包含进来时报错,例如 总结为文件路径问题,解决办法为:找到文件所在的路径添加到项目属性中的附加包含目
阅读全文
摘要:在引入第三方时,环境配置 头文件搜索路径 和 链接库搜索路径方法 1、点击项目名,右击-->属性-->C/C++-->附加包含目录,其中添加头文件的路径 2、点击项目名,右击-->属性-->链接器-->附加库目录,其中添加lib和dll文件的路径 3、点击项目名,右击-->属性-->链接器-->输入
阅读全文
摘要:1、使用strcat进行字符串拼接 #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char *firstName = "Theo"; char *lastName = "Tsao"; char *nam
阅读全文
摘要:转载:http://blog.chinaunix.net/uid-29454152-id-5587541.html 1。C 语言登录mongodb,解决登录失败错误:Authentication failed.: mongoc client_authenticate error 代码如下: 点击(此
阅读全文
摘要:转载:http://blog.sina.com.cn/u/2002809853 最近一段时间要用c语言操作mongodb,但是在网上找到的资料太少,看到的大多数是英文,阅读不大方便,并且要仔细研究才能理解,因此,记录这段时间的学习内容与理解以备忘,同时希望能帮到在寻找这方面内容的童鞋们。 首先,编译
阅读全文
摘要:搭建VS2019+MongoDB的运行环境 涉及:编译boost库, 编译mongo-c-diver,编译mongo-cxx-diver, 配置VS2019. 总结的文档 https://github.com/liweikuan123/VS-QT-MongoDB-.git Windows VS201
阅读全文
摘要:参考:https://blog.csdn.net/qq_36401567/article/details/105472240 无法打开 源 文件 “ui_QtGuiApplicationx.h” 新建一个QT项目时显示无法打开源 文件 “ui_QtGuiApplicationx.h”(如图一所示),
阅读全文
摘要:参考:https://blog.csdn.net/qq_42588070/article/details/102012405 参考:https://xiaoneng.blog.csdn.net/article/details/103205882 参考: https://blog.csdn.net/w
阅读全文
摘要:前提:搭建的是64位环境, 64位环境要求如下面的图片所示: 所出现的错误如下面图片所说: 找不到Qt安装目录下的\bin\qmake.exe 我的Qt安装目录下\bin\qmake.exe存在. 解决办法: 1. 将F:\Qt5.14.2\5.14.2\msvc2017_64加到Qt Option
阅读全文
摘要:如题目所示:在图片中的“C:\WINDOWS\System32\ "找不到这几个dll文件。 解决方法: 找到mongo-c-diver和mongo-cxx-diver两个文件下的bin目录 在mongo-c-diver下找到bson-1.0.dll和mongoc-1.0.dll两个文件,在mong
阅读全文
摘要:借鉴:https://blog.csdn.net/qq_36163982/article/details/98515472 借鉴:https://blog.csdn.net/qq_36401567/article/details/105472240 借鉴:https://blog.csdn.net/
阅读全文