Mark GetProcAddress Using In Win & Unix
来源:互联网 发布:网络歪歌公社最新歌曲 编辑:程序博客网 时间:2024/05/22 07:08
typedef std::string (*foo_t)(const std::string);foo_t foo = NULL;...# ifdef _WIN32 HMODULE hDLL = ::LoadLibrary(szMyLib); if (!hDll) { /*error*/ } foo = (foo_t)::GetProcAddress(hDLL, "foo");# else void *pLib = ::dlopen(szMyLib, RTLD_LAZY); if (!pLib) { /*error*/ } foo = (foo_t)::dlsym(pLib, "foo");# endif if (!foo) { /*error*/ } ... foo("bar"); ...# ifdef _WIN32 ::FreeLibrary(hDLL);# else ::dlclose(pLib);# endif
0 0
- Mark GetProcAddress Using In Win & Unix
- GetProcAddress
- GetProcAddress
- GetProcAddress
- GetProcAddress
- GetProcAddress
- GetProcAddress
- GetProcAddress
- GetProcAddress()
- How to build TPP in win OS using VC8
- Using lp to test report printing in Unix for Apps
- eXtremeDB shared memory using in Unix-based OS or Windows
- File operations in SAP Application server (AL11) using UNIX Command
- get current Unix time in milliseconds using bash
- Mark Occurrences in NetBeans
- #pragma mark in Swift?
- #pragma mark in Swift?
- Rest in peace Mark Ritts
- MFC对话框的状态栏添加进度条
- 【学习笔记】JavaScript编码规范-数组
- CentOS 7.0默认使用的是firewall作为防火墙
- http://www.51testing.com/html/82/n-819282-3.html
- 简单的Spinner运用
- Mark GetProcAddress Using In Win & Unix
- OpenCV学习笔记(11):hough变换和概率hough变换
- android JNI cocos2dx调用对话框
- POJ 3678 Katu Puzzle (2-sat基础)
- java文件读写操作大全
- 排序算法
- iterm2 快捷键
- win7下编译jrtplib,及配置其中的example
- 第六章面向对象(下)2015-05-13