Using CIPAddressCtrl in stead of an edit control

Using CIPAddressCtrl in stead of an edit control

Post by Rob » Thu, 29 Dec 2005 04:25:50


If I use a CIPAddressCtrl on my property page it does a great job of
handling the 4 bytes with periods but how do I get the address in and out of
the property page in the DataExchange function? Do I have to handle the
DWORD as the exchange data?


Rob
 
 
 

Using CIPAddressCtrl in stead of an edit control

Post by jiangsheng » Thu, 29 Dec 2005 05:22:51

DDX_Text should work...


of

 
 
 

Using CIPAddressCtrl in stead of an edit control

Post by Rob » Thu, 29 Dec 2005 05:40:29

DDX_Text does work but I get an exception when I try to load the
CIPAddressCtrl object from the calling program
in the page1.h
CIPAddressCtrl m_IPAddress;

in the calling program's header file
DWORD Address;

going to the page:
page1.m_IPAddress.SetAddress(Address)

or Returning from the page:
page1.m_IPAddress.GetAddress(Address);

both throw exceptions! Both of these statements work fine in the page1.cpp
DataExchange function but neither works outside the function!

Do you have any examples of a property page or dialog that uses
CIPAddressCtrl?






out
 
 
 

Using CIPAddressCtrl in stead of an edit control

Post by jiangsheng » Thu, 29 Dec 2005 12:56:52

you need to store the result of DDX somewhere and access it after the page
is closed.





the