Click here to Skip to main content
15,917,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: WinCe Screen shot of windows Pin
Rajkumar R27-Apr-09 20:50
Rajkumar R27-Apr-09 20:50 
QuestionHow to add images in visual C++ Library Files Pin
Sakthi.Gs :-)27-Apr-09 20:04
Sakthi.Gs :-)27-Apr-09 20:04 
AnswerRe: How to add images in visual C++ Library Files Pin
KarstenK27-Apr-09 22:50
mveKarstenK27-Apr-09 22:50 
QuestionHow to get the handles of all the windows opened in wince? Pin
ujjawal kumar27-Apr-09 18:59
ujjawal kumar27-Apr-09 18:59 
AnswerRe: How to get the handles of all the windows opened in wince? Pin
Rajkumar R27-Apr-09 19:43
Rajkumar R27-Apr-09 19:43 
GeneralRe: How to get the handles of all the windows opened in wince? Pin
ujjawal kumar27-Apr-09 21:07
ujjawal kumar27-Apr-09 21:07 
GeneralRe: How to get the handles of all the windows opened in wince? Pin
Rajkumar R28-Apr-09 0:52
Rajkumar R28-Apr-09 0:52 
Questionsscanf: cannot convert parameter 1 'LPTSTR' to 'const char *' Pin
xzing27-Apr-09 13:37
xzing27-Apr-09 13:37 
I am new to visual studio 2008 and I am stuck. Below is a brief summary of the code and the error that accompanies it. I have tried a bunch of fixes to no avail. Perhaps I do not understand the error could someone please help me? Any suggestions would be appreciated.

CString s;

for(int i=0; i< ROIData.GetCount() ; i++)
   {
     ROIData.GetText(i,s);

     sscanf((LPTSTR)((LPCTSTR) s),_T("%s %d %d %d %d %d d"),&tmp,&temp.lbk.l,&temp.lbk.u,&temp.pk.l,&temp.pk.u,&temp.ubk.l,&temp.ubk.u);

     temp.label.Format(_T("%s"),tmp);

     m_arROI.Add(temp);
   }

The error that accompanies the is "error C2664: 'sscanf : cannot convert parameter 1 from 'LPTSTR' to 'const char *'"

I would be happy to provide any other information I can if any more is needed.

Thanks in advance!!!
AnswerRe: sscanf: cannot convert parameter 1 'LPTSTR' to 'const char *' Pin
Stuart Dootson27-Apr-09 13:49
professionalStuart Dootson27-Apr-09 13:49 
AnswerRe: sscanf: cannot convert parameter 1 'LPTSTR' to 'const char *' Pin
CPallini27-Apr-09 22:05
mveCPallini27-Apr-09 22:05 
QuestionDoc-View vs Dialog-based app - Menu Item updates Pin
john john mackey27-Apr-09 11:35
john john mackey27-Apr-09 11:35 
AnswerRe: Doc-View vs Dialog-based app - Menu Item updates Pin
led mike27-Apr-09 11:47
led mike27-Apr-09 11:47 
GeneralRe: Doc-View vs Dialog-based app - Menu Item updates Pin
john john mackey27-Apr-09 12:08
john john mackey27-Apr-09 12:08 
QuestionCalculating the Size of Rich Edit "bottomless" control Pin
ForNow27-Apr-09 9:00
ForNow27-Apr-09 9:00 
AnswerRe: Calculating the Size of Rich Edit "bottomless" control Pin
Stuart Dootson27-Apr-09 14:02
professionalStuart Dootson27-Apr-09 14:02 
GeneralRe: Calculating the Size of Rich Edit "bottomless" control Pin
ForNow27-Apr-09 16:37
ForNow27-Apr-09 16:37 
GeneralRe: Calculating the Size of Rich Edit "bottomless" control Pin
Stuart Dootson28-Apr-09 5:12
professionalStuart Dootson28-Apr-09 5:12 
GeneralRe: Calculating the Size of Rich Edit "bottomless" control Pin
ForNow28-Apr-09 9:10
ForNow28-Apr-09 9:10 
GeneralRe: Calculating the Size of Rich Edit "bottomless" control Pin
Stuart Dootson28-Apr-09 10:51
professionalStuart Dootson28-Apr-09 10:51 
GeneralRe: Calculating the Size of Rich Edit "bottomless" control Pin
ForNow28-Apr-09 11:17
ForNow28-Apr-09 11:17 
GeneralRe: Calculating the Size of Rich Edit "bottomless" control Pin
ForNow28-Apr-09 18:20
ForNow28-Apr-09 18:20 
GeneralRe: Calculating the Size of Rich Edit "bottomless" control Pin
Stuart Dootson28-Apr-09 18:58
professionalStuart Dootson28-Apr-09 18:58 
GeneralRe: Calculating the Size of Rich Edit "bottomless" control Pin
ForNow28-Apr-09 22:47
ForNow28-Apr-09 22:47 
QuestionWriteProcessMemory error 5 Pin
Snoepie27-Apr-09 6:48
Snoepie27-Apr-09 6:48 
QuestionRe: WriteProcessMemory error 5 Pin
CPallini27-Apr-09 7:13
mveCPallini27-Apr-09 7:13 

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.