Click here to Skip to main content
15,914,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWin32 detours lib, linking problems, and function oridinals [modified] Pin
tmp09-Jul-07 1:43
tmp09-Jul-07 1:43 
QuestionWhich VS edition should i buy??? Pin
SandipG 9-Jul-07 1:09
SandipG 9-Jul-07 1:09 
AnswerRe: Which VS edition should i buy??? Pin
Christian Graus9-Jul-07 1:29
protectorChristian Graus9-Jul-07 1:29 
GeneralRe: Which VS edition should i buy??? Pin
SandipG 9-Jul-07 1:36
SandipG 9-Jul-07 1:36 
GeneralRe: Which VS edition should i buy??? Pin
David Crow9-Jul-07 2:39
David Crow9-Jul-07 2:39 
QuestionRemoving caret/cursor from listbox on selection change Pin
ComplexLifeForm9-Jul-07 0:31
ComplexLifeForm9-Jul-07 0:31 
QuestionRe: Removing caret/cursor from listbox on selection change Pin
Mark Salsbery9-Jul-07 8:36
Mark Salsbery9-Jul-07 8:36 
AnswerRe: Removing caret/cursor from listbox on selection change Pin
ComplexLifeForm10-Jul-07 0:32
ComplexLifeForm10-Jul-07 0:32 
Hi Mark,

It is a standard code generated with VC++ 2005. I had simply created a dialog based application. Added a listbox to the dialog and added the code in the InitDialog method to insert the strings in the listbox. When I compile and execute the application the dilaog comes up with the listbox and strings in it, nothing special other than this. Anyways you can see the InitDialog code below where the list box is initialized with strings

CListBoxDialog::OnInitDialog()
{
CDialog::OnInitDialog();

// Other code add by the wizard....

// my code
const TCHAR* Strings[10] = {_T("One"),
_T("Two"),
_T("Three"),
_T("Four"),
_T("Five"),
_T("Six"),
_T("Seven"),
_T("Eight"),
_T("Nine"),
_T("Ten") };

for(int i = 0; i < 10; i ++)
{
m_List.AddString(Strings[i]);
}

return TRUE; // return TRUE unless you set the focus to a control

I didn't made any changes in the properties of the listbox.

Thanks

}
GeneralRe: Removing caret/cursor from listbox on selection change Pin
Mark Salsbery10-Jul-07 5:49
Mark Salsbery10-Jul-07 5:49 
GeneralRe: Removing caret/cursor from listbox on selection change Pin
ComplexLifeForm10-Jul-07 6:41
ComplexLifeForm10-Jul-07 6:41 
GeneralRe: Removing caret/cursor from listbox on selection change Pin
Mark Salsbery10-Jul-07 7:00
Mark Salsbery10-Jul-07 7:00 
GeneralRe: Removing caret/cursor from listbox on selection change Pin
ComplexLifeForm10-Jul-07 8:26
ComplexLifeForm10-Jul-07 8:26 
GeneralRe: Removing caret/cursor from listbox on selection change Pin
Mark Salsbery10-Jul-07 9:28
Mark Salsbery10-Jul-07 9:28 
GeneralRe: Removing caret/cursor from listbox on selection change Pin
ComplexLifeForm11-Jul-07 4:59
ComplexLifeForm11-Jul-07 4:59 
QuestionCString to GUID Pin
Ohad Cabiri8-Jul-07 22:15
Ohad Cabiri8-Jul-07 22:15 
AnswerRe: CString to GUID Pin
CPallini8-Jul-07 22:23
mveCPallini8-Jul-07 22:23 
GeneralRe: CString to GUID Pin
Ohad Cabiri8-Jul-07 22:26
Ohad Cabiri8-Jul-07 22:26 
GeneralRe: Linkage Error ! Pin
Ohad Cabiri8-Jul-07 22:42
Ohad Cabiri8-Jul-07 22:42 
GeneralRe: Linkage Error ! Pin
CPallini8-Jul-07 22:47
mveCPallini8-Jul-07 22:47 
GeneralRe: Linkage Error ! Pin
Naveen8-Jul-07 22:47
Naveen8-Jul-07 22:47 
AnswerRe: Linkage Error ! Pin
Rajkumar R8-Jul-07 22:47
Rajkumar R8-Jul-07 22:47 
AnswerThanks you all. Its working OK. Pin
Ohad Cabiri8-Jul-07 23:21
Ohad Cabiri8-Jul-07 23:21 
QuestionOLEDB + Date [modified] Pin
Try8-Jul-07 21:09
Try8-Jul-07 21:09 
AnswerRe: OLEDB + Date Pin
Steve S9-Jul-07 2:57
Steve S9-Jul-07 2:57 
GeneralRe: OLEDB + Date Pin
Try9-Jul-07 3:11
Try9-Jul-07 3:11 

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.