|
[求助]同时连接多个VPN失败
网上找了一个下午,终于找到原因了,是系统本身有限制. 解决方法就是修改注册表,具体参考如下: http://www.utt.com.cn/reference.php?id=989 :) |
|
[求助]同时连接多个VPN失败
经过测试修改,800错误原因找到,是因为连接未设置服务器属性,多个连接后默认变成L2TP,结果返回800 经过修改连接属性800错误不见,但仍然多个VPN连接不能同时创建,返回错误633 创建VPN主要代码如下,还请指点下: BOOL ConnectVpn() { //VPN连接代码 memset(&RasDialParams, 0, sizeof(RasDialParams)); RasDialParams.dwSize = sizeof(RASDIALPARAMS); lstrcpy(RasDialParams.szEntryName, (LPCTSTR)sEntryName); lstrcpy(RasDialParams.szPhoneNumber, (LPCTSTR)sServerIp); lstrcpy(RasDialParams.szUserName, (LPCTSTR)sUserName); lstrcpy(RasDialParams.szPassword, (LPCTSTR)sPassword); lstrcpy(RasDialParams.szDomain, ""); CreateRasEntry(RasDialParams.szEntryName, RasDialParams.szPhoneNumber, RasDialParams.szUserName, RasDialParams.szPassword); // Dial Ret = RasDial(NULL, NULL, &RasDialParams, 0, NULL/*&RasDialFunc*/, &m_hConnection) //... } BOOL CreateRasEntry(const char *pszEntryName, const char *pszServerName, const char *pszUserName, const char *pszPassWord) { RASENTRY rasEntry; DWORD dwResult; memset(&rasEntry, 0, sizeof(rasEntry)); rasEntry.dwType = RASET_Vpn; rasEntry.dwSize = sizeof(rasEntry); //RASEO_RemoteDefaultGateway 添加默认路由选项 rasEntry.dwfOptions = RASEO_RequireMsEncryptedPw | RASEO_RequireDataEncryption | RASEO_ModemLights | RASEO_ShowDialingProgress; lstrcpy(rasEntry.szLocalPhoneNumber, pszServerName); lstrcpy(rasEntry.szDeviceType, RASDT_Vpn); lstrcpy(rasEntry.szDeviceName, TEXT("RAS VPN Line 0")); rasEntry.dwFramingProtocol = RASFP_Ppp; rasEntry.dwfNetProtocols = RASNP_Ip; rasEntry.dwVpnStrategy = VS_PptpOnly; //设置pptp连接属性 dwResult = RasSetEntryProperties(NULL, pszEntryName, &rasEntry, sizeof(rasEntry), NULL, 0); if (dwResult != 0) { TRACE("RasSetEntryProperties %s failed error=%d\n", pszEntryName, dwResult); return FALSE; } RASDIALPARAMS rdParams; ZeroMemory(&rdParams, sizeof(RASDIALPARAMS)); rdParams.dwSize = sizeof(RASDIALPARAMS); lstrcpy(rdParams.szEntryName, pszEntryName); lstrcpy(rdParams.szUserName, pszUserName); lstrcpy(rdParams.szPassword, pszPassWord); DWORD dwRet = RasSetEntryDialParams(NULL, &rdParams, FALSE); if(dwRet == 0) return TRUE; else return FALSE; } |
|
|
|
[求助]同时连接多个VPN失败
补充一下,vpn是pptp类型的 |
|
[求助]请教下如何在R3检测模拟的鼠标消息PostMessage
为啥做不来呢? |
|
[求助]CreateThread失败
把所有线程的创建时的堆栈参数全改成默认值0,项目堆栈设置为保留物理内存为100M,虚拟内存为0.(系统设置是禁用虚拟内存的). 堆大小设置全是默认0 这样重新编译后,没有再重现问题, 感觉没有找到问题的根因, 只能先这样放着吧 3ks |
|
[求助]CreateThread失败
VS配置没改过.. |
|
[求助]CreateThread失败
我调用CreateThread的时候堆栈大小默认是NULL,但也试过改成4K之类 还是出错,其实本身没有特别大的局部变量或者数组,应该不需要特别大的堆栈的 上面是项目的堆栈,目前是默认值0/0/0/0,但也改成过如图所示的100M,照样出错 |
|
[求助]内存加载dll
谢谢各位 |
|
|
|
|
|
[求助]程序多开问题
这个有一点解释不通,就是70开的时候大部分时间cpu占用是40~70%这个范围波动,但就是这个时间内,任务栏操作是很卡的,就是这一点不明白 |
|
[求助]程序多开问题
这个未必是xp问题,任务栏点击没反应,任务栏时间不更新,感觉是系统的消息处理不过来了 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值