Click here to Skip to main content
15,918,516 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: difference between CSocket and CAsynSocket Recieve Call Pin
Atif Mushtaq27-Jan-04 18:16
Atif Mushtaq27-Jan-04 18:16 
GeneralRe: difference between CSocket and CAsynSocket Recieve Call Pin
RobJones28-Jan-04 3:04
RobJones28-Jan-04 3:04 
GeneralRe: difference between CSocket and CAsynSocket Recieve Call Pin
RobJones28-Jan-04 3:59
RobJones28-Jan-04 3:59 
GeneralRe: difference between CSocket and CAsynSocket Recieve Call Pin
Atif Mushtaq28-Jan-04 5:16
Atif Mushtaq28-Jan-04 5:16 
GeneralRe: difference between CSocket and CAsynSocket Recieve Call Pin
Xiangyang Liu 刘向阳28-Jan-04 7:02
Xiangyang Liu 刘向阳28-Jan-04 7:02 
GeneralWindows hooks Pin
Abhi Lahare26-Jan-04 18:43
Abhi Lahare26-Jan-04 18:43 
GeneralEdit boxes Pin
calebcohoon26-Jan-04 17:18
calebcohoon26-Jan-04 17:18 
GeneralRe: Edit boxes Pin
P-Rex26-Jan-04 20:59
P-Rex26-Jan-04 20:59 
You can use a ComboBox for the adressbar and insert the adress with m_myCbo.Addstring(). If you want to show the adresses which are inserted before and you run the programm again write it into the registry or in an *.ini-file with WriteProfileString and GetProfileString().

Example:
   <br />
   CString strSection       = "My Section";<br />
   CString strStringItem    = "My String Item";<br />
   CString strIntItem       = "My Int Item";<br />
<br />
   CWinApp* pApp = AfxGetApp();<br />
<br />
   pApp->WriteProfileString(strSection, strStringItem, "test");<br />
<br />
   CString strValue;<br />
   strValue = pApp->GetProfileString(strSection, strStringItem);<br />
   ASSERT(strValue == "test");<br />
<br />
   pApp->WriteProfileInt(strSection, strIntItem, 1234);<br />
   int nValue;<br />
   nValue = pApp->GetProfileInt(strSection, strIntItem, 0);<br />
   ASSERT(nValue == 1234);<br />

The ini-file got the name of your programm and you can find it under C:\Windows\ or C:\Winnt\.

PR
GeneralRe: Edit boxes Pin
Robert A. T. Káldy27-Jan-04 0:24
Robert A. T. Káldy27-Jan-04 0:24 
GeneralRe: Edit boxes Pin
calebcohoon27-Jan-04 5:40
calebcohoon27-Jan-04 5:40 
GeneralFinding version info of a DLL Pin
haritadala26-Jan-04 17:13
haritadala26-Jan-04 17:13 
GeneralRe: Finding version info of a DLL Pin
Tim Smith26-Jan-04 17:26
Tim Smith26-Jan-04 17:26 
GeneralRe: Finding version info of a DLL Pin
Anonymous26-Jan-04 17:29
Anonymous26-Jan-04 17:29 
GeneralRe: Finding version info of a DLL Pin
haritadala27-Jan-04 3:51
haritadala27-Jan-04 3:51 
GeneralRe: Finding version info of a DLL Pin
Tim Smith27-Jan-04 4:18
Tim Smith27-Jan-04 4:18 
GeneralSendKey Pin
BaldwinMartin26-Jan-04 16:28
BaldwinMartin26-Jan-04 16:28 
GeneralRe: SendKey Pin
Abin26-Jan-04 18:30
Abin26-Jan-04 18:30 
GeneralRe: SendKey Pin
BaldwinMartin26-Jan-04 19:48
BaldwinMartin26-Jan-04 19:48 
Questionvideo ? Pin
Anonymous26-Jan-04 15:05
Anonymous26-Jan-04 15:05 
AnswerRe: video ? Pin
l a u r e n26-Jan-04 16:27
l a u r e n26-Jan-04 16:27 
AnswerRe: video ? Pin
Roman Rodov26-Jan-04 18:48
Roman Rodov26-Jan-04 18:48 
GeneralWow I forgot to post this up.... Pin
Snyp26-Jan-04 14:59
Snyp26-Jan-04 14:59 
QuestionHow to transfer a function pointer to dll? Pin
freehawk26-Jan-04 14:48
freehawk26-Jan-04 14:48 
GeneralOpen a file explorer in a dialog based MFC app Pin
tylerz197026-Jan-04 12:57
tylerz197026-Jan-04 12:57 
GeneralRe: Open a file explorer in a dialog based MFC app Pin
Gary Kirkham26-Jan-04 13:36
Gary Kirkham26-Jan-04 13:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.