| 981 |
|
|
| 982 |
if (GetHNRec->PortType == IdFile) |
if (GetHNRec->PortType == IdFile) |
| 983 |
GetHNRec->PortType = IdTCPIP; |
GetHNRec->PortType = IdTCPIP; |
|
CheckRadioButton(dlg, IDC_HOSTTCPIP, IDC_HOSTSERIAL, |
|
|
IDC_HOSTTCPIP + GetHNRec->PortType - 1); |
|
| 984 |
|
|
| 985 |
strcpy(EntName, "Host"); |
strcpy(EntName, "Host"); |
| 986 |
|
|
| 1064 |
|
|
| 1065 |
if (j > 0) |
if (j > 0) |
| 1066 |
SendDlgItemMessage(dlg, IDC_HOSTCOM, CB_SETCURSEL, w - 1, 0); |
SendDlgItemMessage(dlg, IDC_HOSTCOM, CB_SETCURSEL, w - 1, 0); |
| 1067 |
else /* All com ports are already used */ |
else { /* All com ports are already used */ |
| 1068 |
GetHNRec->PortType = IdTCPIP; |
GetHNRec->PortType = IdTCPIP; |
| 1069 |
|
enable_dlg_items(dlg, IDC_HOSTSERIAL, IDC_HOSTSERIAL, FALSE); |
| 1070 |
|
} |
| 1071 |
|
|
| 1072 |
|
CheckRadioButton(dlg, IDC_HOSTTCPIP, IDC_HOSTSERIAL, |
| 1073 |
|
IDC_HOSTTCPIP + GetHNRec->PortType - 1); |
| 1074 |
|
|
| 1075 |
if (GetHNRec->PortType == IdTCPIP) { |
if (GetHNRec->PortType == IdTCPIP) { |
| 1076 |
enable_dlg_items(dlg, IDC_HOSTCOMLABEL, IDC_HOSTCOM, FALSE); |
enable_dlg_items(dlg, IDC_HOSTCOMLABEL, IDC_HOSTCOM, FALSE); |
| 1206 |
memset(EntName, 0, sizeof(EntName)); |
memset(EntName, 0, sizeof(EntName)); |
| 1207 |
GetDlgItemText(dlg, IDC_HOSTCOM, EntName, |
GetDlgItemText(dlg, IDC_HOSTCOM, EntName, |
| 1208 |
sizeof(EntName) - 1); |
sizeof(EntName) - 1); |
| 1209 |
GetHNRec->ComPort = (BYTE) (EntName[3]) - 0x30; |
if (strncmp(EntName, "COM", 3) == 0 && EntName[3] != '\0') { |
| 1210 |
if (strlen(EntName) > 4) |
GetHNRec->ComPort = (BYTE) (EntName[3]) - 0x30; |
| 1211 |
GetHNRec->ComPort = |
if (strlen(EntName) > 4) |
| 1212 |
GetHNRec->ComPort * 10 + (BYTE) (EntName[4]) - |
GetHNRec->ComPort = |
| 1213 |
0x30; |
GetHNRec->ComPort * 10 + (BYTE) (EntName[4]) - |
| 1214 |
|
0x30; |
| 1215 |
|
if (GetHNRec->ComPort > GetHNRec->MaxComPort) |
| 1216 |
|
GetHNRec->ComPort = 1; |
| 1217 |
|
} else { |
| 1218 |
|
GetHNRec->ComPort = 1; |
| 1219 |
|
} |
| 1220 |
} |
} |
| 1221 |
} |
} |
| 1222 |
EndDialog(dlg, 1); |
EndDialog(dlg, 1); |
| 3872 |
|
|
| 3873 |
/* |
/* |
| 3874 |
* $Log: not supported by cvs2svn $ |
* $Log: not supported by cvs2svn $ |
| 3875 |
|
* Revision 1.62 2007/06/12 14:55:20 maya |
| 3876 |
|
* BOF(Buffer Over Flow)が発生する処理を修正。 |
| 3877 |
|
* |
| 3878 |
* Revision 1.61 2007/06/06 14:10:12 maya |
* Revision 1.61 2007/06/06 14:10:12 maya |
| 3879 |
* プリプロセッサにより構造体が変わってしまうので、INET6 と I18N の #define を逆転させた。 |
* プリプロセッサにより構造体が変わってしまうので、INET6 と I18N の #define を逆転させた。 |
| 3880 |
* |
* |
| 3888 |
* DetectComPorts を ttpcmn.dll のエクスポート関数に変更した。 |
* DetectComPorts を ttpcmn.dll のエクスポート関数に変更した。 |
| 3889 |
* |
* |
| 3890 |
* Revision 1.57 2007/03/04 18:02:36 doda |
* Revision 1.57 2007/03/04 18:02:36 doda |
| 3891 |
* New connection$B$*$h$S(BSerial port setup$B%@%$%"%m%0$G!"MxMQ2DG=$J%7%j%"%k%]!<%H$N$_(B> |
* New connectionおよびSerial port setupダイアログで、利用可能なシリアルポートのみを表示するようにした。 |
|
* $B$rI=<($9$k$h$&$K$7$?!#(B |
|
| 3892 |
* |
* |
| 3893 |
* Revision 1.56 2007/01/31 13:15:08 maya |
* Revision 1.56 2007/01/31 13:15:08 maya |
| 3894 |
* 言語ファイルがないときに \0 が正しく認識されないバグを修正した。 |
* 言語ファイルがないときに \0 が正しく認識されないバグを修正した。 |