http://linux.chinaunix.net/techdoc/desktop/2007/10/12/969683.shtml这是一篇关于将stunnel变成插件的文章,也有作者编译好的源代码 以及 配置源代码http://blogimg.chinaunix.net/blog/upfile/071018112912.rar这个源代码 中少个openssl包,大家有兴趣,可以自己下个测试程序如下 ,我只想让stunnel挂起来 就行,但是 就是一直有错误,有知道的么,请讲下,谢谢
#include <stdio.h>
#include <string.h>
#include <windows.h>int main(void)
{
static char dllname[] = "..\\Debug\\unissl.dll";
static char funcname[] = "stunnel";
static HMODULE hStunnel;
static FARPROC stunnel;
hStunnel = LoadLibraryA( dllname );
if ( hStunnel==NULL )
{
MessageBox
( 0,
"Load unissl.dll failed.",
"BkSSL",
MB_ICONERROR
);
return 1;
}
stunnel = GetProcAddress( hStunnel, funcname );
stunnel(); return 0;}
#include <stdio.h>
#include <string.h>
#include <windows.h>int main(void)
{
static char dllname[] = "..\\Debug\\unissl.dll";
static char funcname[] = "stunnel";
static HMODULE hStunnel;
static FARPROC stunnel;
hStunnel = LoadLibraryA( dllname );
if ( hStunnel==NULL )
{
MessageBox
( 0,
"Load unissl.dll failed.",
"BkSSL",
MB_ICONERROR
);
return 1;
}
stunnel = GetProcAddress( hStunnel, funcname );
stunnel(); return 0;}
解决方案 »
- RichEdit控件改变某行字体颜色
- (异步套接字+数据库)程序运行一段时间后关闭,之后再也启动不了了
- VC 设置组合框CCombobox的矩形高度
- GetDIBits 导致GDI句柄增加的问题
- 很简单的问题,这是为什么?
- 关于CGridCtrl类的使用
- 请教:我在 WIN32 APPLICATION 用 SetTimer 时,出现这样的错误,请各位大哥帮我看看!谢谢!
- 关于数据库查询的问题[顶者有分]
- 我想把2个bmp文件合成一个bmp,有那些方法可以实现呢?请各位高手指点。
- dll加载问题 有性趣的 来
- 已知进程的handle 如何获取HWND?
- 继承一个CButton后怎么用这个新类来定义对话框的按钮?
直接是
MessageBox(hwnd, "Stunnel server is down due to an error.\n"
"You need to exit and correct the problem.\n"
"Click OK to see the error log window.",
options.win32_service, MB_ICONERROR);这个消息盒 然后 就是个控制台的界面 Press any key to continue