|
发表于 2009-2-13 15:30:54
|
显示全部楼层
我稍微改了一下....
已经可以运行了。
- --- mxd.cpp.orig 2009-02-08 08:04:26.000000000 +0000
- +++ mxd.cpp 2009-02-13 15:27:56.000000000 +0000
- @@ -12,9 +12,11 @@
- }
- FILE *in=NULL;
- char sl[128];
- + const char *a="",*b="";
- in=fopen("/etc/ppp/pap-secrets","r");
- if(in==NULL){printf("can't open the /etc/ppp/pap-secrets");}
- - const char *a="",*b="";
- + else
- + { // read the config only when the file can be accessed.
- while(fgets(sl,128,in))
- {
- if(strstr(sl,"mxd_connect"))
- @@ -40,6 +42,7 @@
- strcpy(sldns,strtok(sldns,"nameserver "));
- dns=sldns;
- fclose(getdns); //读取用户及密码
- + }
- QTextCodec::setCodecForTr(QTextCodec::codecForName("GBK"));
- setMinimumSize(260,140);
- setMaximumSize(260,140);
复制代码 |
|