| 78 | } |
| 79 | |
| 80 | BOOL CVirtualCompilerConfig::OnInitDialog() { |
| 81 | CDialog::OnInitDialog(); |
| 82 | char buffer[_MAX_PATH]; |
| 83 | int len = _MAX_PATH; |
| 84 | |
| 85 | if (Database->read("EditorCompiler", buffer, &len)) { |
| 86 | m_Compiler = buffer; |
| 87 | } else { |
| 88 | m_Compiler = ""; |
| 89 | } |
| 90 | |
| 91 | if (Database->read_int("EditorVCWarningLevel", &len)) { |
| 92 | m_WarningLevel = len; |
| 93 | } else { |
| 94 | m_WarningLevel = 0; |
| 95 | } |
| 96 | |
| 97 | if (Database->read_int("EditorVCDebugLevel", &len)) { |
| 98 | m_DebugType = len; |
| 99 | } else { |
| 100 | m_DebugType = 0; |
| 101 | } |
| 102 | |
| 103 | UpdateData(false); |
| 104 | |
| 105 | return TRUE; |
| 106 | } |
| 107 | |
| 108 | void CVirtualCompilerConfig::OnOK() { |
| 109 | char buffer[_MAX_PATH]; |