Click here to Skip to main content
15,921,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIs LPTSTR a char pointer? Pin
Lord Kixdemp27-Oct-06 17:41
Lord Kixdemp27-Oct-06 17:41 
AnswerRe: Is LPTSTR a char pointer? Pin
Waldermort27-Oct-06 17:59
Waldermort27-Oct-06 17:59 
GeneralRe: Is LPTSTR a char pointer? Pin
Lord Kixdemp27-Oct-06 20:03
Lord Kixdemp27-Oct-06 20:03 
GeneralRe: Is LPTSTR a char pointer? Pin
Prakash Nadar27-Oct-06 22:16
Prakash Nadar27-Oct-06 22:16 
GeneralRe: Is LPTSTR a char pointer? Pin
Lord Kixdemp28-Oct-06 12:18
Lord Kixdemp28-Oct-06 12:18 
QuestionCTreeCtrl CheckBox Pin
JBAK_CP27-Oct-06 15:19
JBAK_CP27-Oct-06 15:19 
AnswerRe: CTreeCtrl CheckBox Pin
Gary R. Wheeler29-Oct-06 1:54
Gary R. Wheeler29-Oct-06 1:54 
QuestionReturn from function Pin
Oliver12327-Oct-06 11:04
Oliver12327-Oct-06 11:04 
This code works fine, but as I learn more about VC++ I wonder if it is OK. I think index exists only within the function, but I'm not sure if it can be returned to targetPrice without problem. There has been no problem so far, but my program isn't finished yet. (basePrice is global.)

int q = GetIndexForPrice(targetPrice );
...
...
...
int CTradingdemoDlg::GetIndexForPrice(double price)
{
int index;
index = (price - basePrice)/ .0025;
return index;
}

Thanks
AnswerRe: Return from function Pin
led mike27-Oct-06 11:09
led mike27-Oct-06 11:09 
QuestionDWORD to LPCVOID Pin
Cyclone0227-Oct-06 9:27
Cyclone0227-Oct-06 9:27 
AnswerRe: DWORD to LPCVOID Pin
David Crow27-Oct-06 10:16
David Crow27-Oct-06 10:16 
QuestionRe: DWORD to LPCVOID [modified] Pin
Cyclone0228-Oct-06 7:07
Cyclone0228-Oct-06 7:07 
AnswerRe: DWORD to LPCVOID Pin
Mark Salsbery29-Oct-06 7:17
Mark Salsbery29-Oct-06 7:17 
GeneralRe: DWORD to LPCVOID Pin
Cyclone0229-Oct-06 8:59
Cyclone0229-Oct-06 8:59 
GeneralRe: DWORD to LPCVOID Pin
Mark Salsbery29-Oct-06 9:25
Mark Salsbery29-Oct-06 9:25 
GeneralRe: DWORD to LPCVOID Pin
Cyclone0230-Oct-06 5:57
Cyclone0230-Oct-06 5:57 
QuestionCan I use bits instead of bytes? Pin
Lord Kixdemp27-Oct-06 9:08
Lord Kixdemp27-Oct-06 9:08 
AnswerRe: Can I use bits instead of bytes? Pin
led mike27-Oct-06 9:16
led mike27-Oct-06 9:16 
GeneralRe: Can I use bits instead of bytes? Pin
Lord Kixdemp27-Oct-06 9:24
Lord Kixdemp27-Oct-06 9:24 
AnswerRe: Can I use bits instead of bytes? Pin
George L. Jackson27-Oct-06 12:07
George L. Jackson27-Oct-06 12:07 
GeneralRe: Can I use bits instead of bytes? Pin
Michael Dunn27-Oct-06 16:15
sitebuilderMichael Dunn27-Oct-06 16:15 
GeneralRe: Can I use bits instead of bytes? Pin
George L. Jackson27-Oct-06 16:48
George L. Jackson27-Oct-06 16:48 
GeneralRe: Can I use bits instead of bytes? Pin
Lord Kixdemp27-Oct-06 20:11
Lord Kixdemp27-Oct-06 20:11 
GeneralRe: Can I use bits instead of bytes? Pin
Prakash Nadar27-Oct-06 22:11
Prakash Nadar27-Oct-06 22:11 
GeneralRe: Can I use bits instead of bytes? Pin
Lord Kixdemp28-Oct-06 12:21
Lord Kixdemp28-Oct-06 12:21 

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.