- 博客(9)
- 收藏
- 关注
原创 使用gstreamer播放的媒体文件路径带中文时的处理方法
参考文章: gstreamer 指定有中文的 URI地址,需使用UTF8编码 http://blog.csdn.net/gxp/article/details/6719199 假设要播放的文件路径是f:/temp/测试.mp3 相关代码: wstring wstr = L"file:///f:/temp/测试.mp3"; const char* uri = g_u
2014-03-09 15:34:43
900
转载 关于 wcout 输出中文的问题
原帖地址:http://blog.csdn.net/querw/article/details/6690954 关于 wcout 输出中文的问题 作者:阙荣文 时间:2011/8/16 1. cout 场景1: 在源文件中定义 const char* str = "中文" 在 VC++ 编译器上,由于Windows环境用 GBK编码,所以字符串 "中文" 被保存为 G
2014-03-02 11:04:52
985
原创 使用mediainfo库取得媒体文件的tag
mediainfo的官网:http://mediaarea.net/ #ifdef MEDIAINFO_LIBRARY #include "MediaInfo.h" //Staticly-loaded library (.lib or .a or .so) #define MediaInfoNameSpace MediaInfoLib; #else //MEDIAINFO
2014-03-02 10:34:34
843
原创 用win32 API监听U盘插拔并取得其盘符/取得当前插入U盘的盘符
1.使用RegisterDeviceNotification()函数注册 static const GUID GUID_DEVINTERFACE_USB_DEVICE = {0xA5DCBF10, 0x6530, 0x11D2, {0x90, 0x1F, 0x00, 0xC0, 0x4F, 0xB9, 0x51, 0xED}}; void RegisterDeviceNotify() {
2014-02-25 20:35:50
5257
1
原创 vim插件备份
YouCompleteMe YouCompleteMe is a fast, as-you-type, fuzzy-search code completion engine for Vim. https://github.com/Valloric/YouCompleteMe
2014-02-12 21:11:52
704
原创 STL中array<>内部为什么不能交换指针呢
引用自《The C++ Standard Library Second Edition》: Note, however, that an array<> can’t simply swap pointers internally. For this reason, swap() has linear complexity and the effect that iterators and ref
2013-10-21 20:23:43
729
原创 调试时用readelf定位函数指针调用的函数
用不了gdb只能加LOG调试,需要查出在程序执行时一个函数指针具体调用的是哪个函数。 可以用LOG打印出执行时函数指针的值,然后用readelf命令查询出这个值对应的函数名 readelf program|grep addr
2013-10-16 21:23:49
1355
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人