using CIPAddressCtrl::GetAddress
-
hi i have a small app im putting together. i have put in a "IP Address" box and have a button then when click will store the ip address. from what i can see you use CIPAddressCtrl::GetAddress to get this address, what am i doing wrong below? I am using vc++6. BYTE nField0, nField1, nField2, nField3; int rc = CIPAddressCtrl::GetAddress(nField0, nField1, nField2, nField3); should that not put the address into each one of those byte fields? i am getting an error as below.. error C2352: 'CIPAddressCtrl::GetAddress' : illegal call of non-static member function. afxcmn.h(1112) : see declaration of 'GetAddress' please help thanks
-
hi i have a small app im putting together. i have put in a "IP Address" box and have a button then when click will store the ip address. from what i can see you use CIPAddressCtrl::GetAddress to get this address, what am i doing wrong below? I am using vc++6. BYTE nField0, nField1, nField2, nField3; int rc = CIPAddressCtrl::GetAddress(nField0, nField1, nField2, nField3); should that not put the address into each one of those byte fields? i am getting an error as below.. error C2352: 'CIPAddressCtrl::GetAddress' : illegal call of non-static member function. afxcmn.h(1112) : see declaration of 'GetAddress' please help thanks
GetAddress()
is not a static member. It must be called in the context of aCIPAddressCtrl
object. Use ClassWizard to associate the control with aCIPAddressCtrl
object.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
-
GetAddress()
is not a static member. It must be called in the context of aCIPAddressCtrl
object. Use ClassWizard to associate the control with aCIPAddressCtrl
object.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
many thanks for the reply can you further explain this as MFC is new to me? thansk again
-
many thanks for the reply can you further explain this as MFC is new to me? thansk again
keithlee wrote:
can you further explain this as MFC is new to me?
Which part? Use Ctrl+W to open ClassWizard. Click the Member Variables tab. Select the desired control and click the Add Variable... button.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
-
keithlee wrote:
can you further explain this as MFC is new to me?
Which part? Use Ctrl+W to open ClassWizard. Click the Member Variables tab. Select the desired control and click the Add Variable... button.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
stupid me!! i had that already done with out knowing it m_strIP2.GetAddress(nField0, nField1, nField2, nField3); did the trick then thanks for your help