There are two value will effect to WZC.
1. Register : HKEY_LOCAL_MACHINE\SOFTWARE\WZCSVC\Parameters\Interfaces\{NetServiceID}\ControlFlags
2. Service : Wireless Zero Configuration. (Abbr:SCMWZC)
NetCard configuration property page included wireless tab if SCMWZC is running.
But NetCard configuration property page excluded wireless tab if SCMWZC is stop.
There values are check/uncheck wzc button on wireless property page. As below:
a. SCMWZC off; unchecked; => No tab, ControlFlags: 0x3910002.
b. SCMWZC off; checked; => No tab, ControlFlags: 0xb918002.
c. SCMWZC on; unchecked; => ControlFlags: 0xf910002.
d. SCMWZC on; checked; => ControlFlags: 0x7918002.
CComboBox 使用於視窗中的下拉式選單。
你可以由下拉選單中,來挑選你要的值;亦可透過直接輸入的方式來設定你要的值。
但在這二種方法中,要取得編輯欄 (Edit Control) 內的值是不同的。
於編輯欄內,直接輸入:
輸入欄內容的變更會觸發 CBN_EDITCHANGE 和 CBN_EDITUPDATE 。這二個訊息不同點在於螢幕的顯示:EDITUPDATE 是在未顯示於螢幕上,而 EDITCHANGE 則發生於螢幕顯示後。我的偏好是利用 EDITCHANGE 訊息,透過 GetWindowText 函式來取得編輯欄內的文字內容。
利用下拉選單來選擇:
使用下拉選單來選擇,則會觸發 CBN_SELCHANGE 訊息;若使用 GetWindowText 函式來取得編輯欄內的文字內容,會取得錯誤的內容。需使用 GetLBText 函式來取得編輯欄內的內容;步驟先使用 GetCurSel 函式取得選到選項的 Index number 。再利用 GetLBText 函式透過 CString或
tchar[] 來取得。
Ref:
http://www.armleg.com/forum/viewtopic.php?mforum=diodiaforum&t=34
我試著在 VC6 開發一些 應用程式,但由於需使用到 NativeWiFi API,以致於一定要將 Vista SDK 放入我的開發環境。
這會發生一些問題。
msxml2.lib(msxml2_i.obj) : fatal error LNK1103: debugging information corrupt; recompile module
在 Nick 提供的 rebuild 的版本,測試一下,是可以解決目前問題。
VC:DECLARE: "std::auto_ptr
VariableName"
Typedefs
element_type
The type is a synonym for the template parameter Type.
Member Functions
auto_ptr
The constructor for objects of type auto_ptr.
get
The member function returns the stored pointer myptr.
release
The member replaces the stored pointer myptr with a null pointer and returns the previously stored pointer.
reset
The member function evaluates the expression delete myptr, but only if the stored pointer value myptr changes as a result of function call. It then replaces the stored pointer with ptr.
Operators
operator=
An assignment operator that transfers ownership from one auto_ptr object to another.
operator*
The dereferencing operator for objects of type auto_ptr.
operator->
The operator for allowing member access.
operator auto_ptr
Casts from one kind of auto_ptr to another kind of auto_ptr.
operator auto_ptr_ref
Casts from an auto_ptr to an auto_ptr_ref.