Click here to Skip to main content
15,908,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to write the program to solve the formula 2n*(2n-1)............1 in c++ urgently Pin
Neha V11-Dec-08 22:11
Neha V11-Dec-08 22:11 
AnswerRe: How to write the program to solve the formula 2n*(2n-1)............1 in c++ urgently Pin
CPallini11-Dec-08 22:22
mveCPallini11-Dec-08 22:22 
AnswerRe: How to write the program to solve the formula 2n*(2n-1)............1 in c++ urgently Pin
Manish K. Agarwal11-Dec-08 22:25
Manish K. Agarwal11-Dec-08 22:25 
GeneralRe: How to write the program to solve the formula 2n*(2n-1)............1 in c++ urgently Pin
Rick York11-Dec-08 22:42
mveRick York11-Dec-08 22:42 
QuestionEnumerating COM port Pin
bhanu_850911-Dec-08 22:04
bhanu_850911-Dec-08 22:04 
QuestionProblem with retrieveing number of characters in a multiline edit control Pin
gabbana11-Dec-08 22:00
gabbana11-Dec-08 22:00 
AnswerRe: Problem with retrieveing number of characters in a multiline edit control Pin
gabbana11-Dec-08 22:11
gabbana11-Dec-08 22:11 
AnswerRe: Problem with retrieveing number of characters in a multiline edit control Pin
CPallini11-Dec-08 22:19
mveCPallini11-Dec-08 22:19 
EM_LINELENGTH message wants the index of a character (of the wanted line) as WPARAM, hence, if you need the lenght of the third line, use:
INT iCharIndex = SendDlgItemMessage(hwnd,IDC_INPUT,EM_LINEINDEX,(WPARAM)2,(LPARAM)0);
INT iLineLen = SendDlgItemMessage(hwnd,IDC_INPUT,EM_LINELENGTH,(WPARAM)iCharIndex,(LPARAM)0);

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

QuestionShort cut help Pin
Davitor11-Dec-08 21:18
Davitor11-Dec-08 21:18 
AnswerRe: Short cut help Pin
Jijo.Raj11-Dec-08 21:26
Jijo.Raj11-Dec-08 21:26 
QuestionSplit Form view Pin
kiranin11-Dec-08 20:37
kiranin11-Dec-08 20:37 
AnswerRe: Split Form view Pin
Nishad S11-Dec-08 23:03
Nishad S11-Dec-08 23:03 
QuestionCompare input date with current date! Pin
krajah1011-Dec-08 20:06
krajah1011-Dec-08 20:06 
AnswerRe: Compare input date with current date! Pin
Nishad S11-Dec-08 21:03
Nishad S11-Dec-08 21:03 
GeneralRe: Compare input date with current date! Pin
krajah1011-Dec-08 21:31
krajah1011-Dec-08 21:31 
GeneralRe: Compare input date with current date! Pin
Nishad S11-Dec-08 21:49
Nishad S11-Dec-08 21:49 
AnswerRe: Compare input date with current date! Pin
Jijo.Raj11-Dec-08 21:19
Jijo.Raj11-Dec-08 21:19 
QuestionSingle instance of application Pin
Hungry Developer11-Dec-08 19:15
Hungry Developer11-Dec-08 19:15 
AnswerRe: Single instance of application Pin
Jijo.Raj11-Dec-08 19:56
Jijo.Raj11-Dec-08 19:56 
GeneralRe: Single instance of application [modified] Pin
Malli_S11-Dec-08 20:31
Malli_S11-Dec-08 20:31 
AnswerRe: Single instance of application Pin
Stuart Dootson11-Dec-08 21:29
professionalStuart Dootson11-Dec-08 21:29 
QuestionDebugging Services on Vista(UAC Off)- Visual Studio 2005 "Attach to Process" Pin
NiceNaidu11-Dec-08 19:05
NiceNaidu11-Dec-08 19:05 
AnswerRe: Debugging Services on Vista(UAC Off)- Visual Studio 2005 "Attach to Process" Pin
Mark Salsbery12-Dec-08 6:52
Mark Salsbery12-Dec-08 6:52 
GeneralRe: Debugging Services on Vista(UAC Off)- Visual Studio 2005 "Attach to Process" Pin
NiceNaidu18-Dec-08 2:01
NiceNaidu18-Dec-08 2:01 
QuestionAdd Checkbox or button in header of List Ctrl? Pin
Le@rner11-Dec-08 18:30
Le@rner11-Dec-08 18:30 

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.