Click here to Skip to main content
15,900,589 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionConversion of DLL from VS6 to VS 2005 Pin
Member 188188830-Oct-08 19:57
Member 188188830-Oct-08 19:57 
Questionerror C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CTextProgressCtrl::* )(UINT,LPCTSTR)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)' Pin
VCProgrammer30-Oct-08 19:22
VCProgrammer30-Oct-08 19:22 
AnswerRe: error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CTextProgressCtrl::* )(UINT,LPCTSTR)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)' Pin
CPallini30-Oct-08 23:17
mveCPallini30-Oct-08 23:17 
Questionno stdint.h in VC9 Pin
followait30-Oct-08 18:42
followait30-Oct-08 18:42 
Questionfunction help Pin
jonig1930-Oct-08 18:23
jonig1930-Oct-08 18:23 
AnswerRe: function help Pin
SandipG 30-Oct-08 21:20
SandipG 30-Oct-08 21:20 
GeneralRe: function help Pin
Garth J Lancaster30-Oct-08 21:27
professionalGarth J Lancaster30-Oct-08 21:27 
AnswerRe: function help Pin
Garth J Lancaster30-Oct-08 21:26
professionalGarth J Lancaster30-Oct-08 21:26 
not sure what the issue is - you're most of the way there.

Assuming you define MAX_WIDTH to be 10, you could look at replacing the

cout << setw(4) << grades[i] << endl;

with something like :-

cout << setw(4) << grades[i];

then you need to check if i is an even multiple of MAX_WIDTH, and print

cout << endl;

if that is true, inside the for loop of course - hint, look at the '%' operator for the modulus function

That should be enough - see what you can do ..

'g'
GeneralRe: function help Pin
jonig1931-Oct-08 6:35
jonig1931-Oct-08 6:35 
Questionmultiple iterators within custom stl container Pin
mellib30-Oct-08 18:17
mellib30-Oct-08 18:17 
QuestionAutomated builds Pin
bigcivilmelon30-Oct-08 13:50
bigcivilmelon30-Oct-08 13:50 
AnswerRe: Automated builds Pin
Rolf Kristensen30-Oct-08 14:24
Rolf Kristensen30-Oct-08 14:24 
QuestionSystem owned process that is accessible through a UI from differed Windows user Pin
Darrel Q Pham30-Oct-08 10:40
Darrel Q Pham30-Oct-08 10:40 
AnswerRe: System owned process that is accessible through a UI from differed Windows user Pin
bigcivilmelon30-Oct-08 22:19
bigcivilmelon30-Oct-08 22:19 
GeneralRe: System owned process that is accessible through a UI from differed Windows user Pin
Darrel Q Pham31-Oct-08 9:35
Darrel Q Pham31-Oct-08 9:35 
QuestionHow to get currently windows logged on users profile directory. Pin
WindowsPistha30-Oct-08 8:03
WindowsPistha30-Oct-08 8:03 
AnswerRe: How to get currently windows logged on users profile directory. Pin
Mark Salsbery30-Oct-08 8:31
Mark Salsbery30-Oct-08 8:31 
GeneralRe: How to get currently windows logged on users profile directory. Pin
WindowsPistha30-Oct-08 8:34
WindowsPistha30-Oct-08 8:34 
QuestionRe: How to get currently windows logged on users profile directory. Pin
David Crow30-Oct-08 9:07
David Crow30-Oct-08 9:07 
GeneralRe: How to get currently windows logged on users profile directory. [modified] Pin
WindowsPistha30-Oct-08 18:58
WindowsPistha30-Oct-08 18:58 
QuestionRe: How to get currently windows logged on users profile directory. Pin
David Crow31-Oct-08 2:45
David Crow31-Oct-08 2:45 
GeneralRe: How to get currently windows logged on users profile directory. Pin
Mark Salsbery30-Oct-08 9:52
Mark Salsbery30-Oct-08 9:52 
GeneralRe: How to get currently windows logged on users profile directory. Pin
WindowsPistha30-Oct-08 19:04
WindowsPistha30-Oct-08 19:04 
QuestionProbem adding a null character to std::string Pin
santiageitorx30-Oct-08 7:17
santiageitorx30-Oct-08 7:17 
AnswerRe: Probem adding a null character to std::string Pin
santiageitorx30-Oct-08 7:41
santiageitorx30-Oct-08 7:41 

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.