Click here to Skip to main content
15,888,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSize of DialogBox Pin
Rolf Faßler5-Aug-04 5:07
Rolf Faßler5-Aug-04 5:07 
GeneralRe: Size of DialogBox Pin
David Crow5-Aug-04 9:53
David Crow5-Aug-04 9:53 
GeneralRe: Size of DialogBox Pin
Rolf Faßler9-Aug-04 2:42
Rolf Faßler9-Aug-04 2:42 
GeneralRe: Size of DialogBox Pin
David Crow9-Aug-04 3:19
David Crow9-Aug-04 3:19 
GeneralUse to convert a specific File to a Bitmap Pin
codefire5-Aug-04 2:58
codefire5-Aug-04 2:58 
GeneralRe: Use to convert a specific File to a Bitmap Pin
Chris Losinger5-Aug-04 9:04
professionalChris Losinger5-Aug-04 9:04 
GeneralRe: Use to convert a specific File to a Bitmap Pin
codefire6-Aug-04 2:44
codefire6-Aug-04 2:44 
GeneralCFile and std::string Pin
ns5-Aug-04 2:56
ns5-Aug-04 2:56 
I get this error:

'__thiscall CFile::CFile(const char *,unsigned int)' : cannot convert parameter 1 from 'const char *(void) const' to 'const char *'


when I try to do :

CFile filePort(m_outputFileName[0].c_str, CFile::modeRead);


m_outputFileName[0] is a std::string.

Will I have to strcpy m_outputFileName[0] into a char temp[256] and put that into CFile?
I'm not sure how to make the std::string behave for the CFile. Is there a simpler way?

Thanks,
sb

Added:

I get the same error if I do:

char file1[256];

strncpy ( file1, m_outputFileName[0].c_str, 256);

GeneralRe: CFile and std::string Pin
jmkhael5-Aug-04 3:13
jmkhael5-Aug-04 3:13 
GeneralRe: CFile and std::string Pin
ns5-Aug-04 3:16
ns5-Aug-04 3:16 
GeneralConversion Pin
Pazzuzu5-Aug-04 2:43
Pazzuzu5-Aug-04 2:43 
GeneralRe: Conversion Pin
Jaime Stuardo5-Aug-04 3:31
Jaime Stuardo5-Aug-04 3:31 
GeneralRe: Conversion Pin
Pazzuzu5-Aug-04 3:34
Pazzuzu5-Aug-04 3:34 
GeneralRe: Conversion Pin
Jaime Stuardo5-Aug-04 4:43
Jaime Stuardo5-Aug-04 4:43 
GeneralRe: Conversion Pin
Pazzuzu5-Aug-04 4:46
Pazzuzu5-Aug-04 4:46 
GeneralNFS Protokol information Pin
satucha5-Aug-04 2:13
satucha5-Aug-04 2:13 
GeneralRe: NFS Protokol information Pin
David Crow5-Aug-04 2:20
David Crow5-Aug-04 2:20 
GeneralWin32 API to know about the current logged in user Pin
Hashim Saleem5-Aug-04 1:34
Hashim Saleem5-Aug-04 1:34 
GeneralRe: Win32 API to know about the current logged in user Pin
Shiva Prasad5-Aug-04 2:06
Shiva Prasad5-Aug-04 2:06 
GeneralRe: Win32 API to know about the current logged in user Pin
Hashim Saleem5-Aug-04 2:08
Hashim Saleem5-Aug-04 2:08 
GeneralRe: Win32 API to know about the current logged in user Pin
David Crow5-Aug-04 2:22
David Crow5-Aug-04 2:22 
GeneralRe: Win32 API to know about the current logged in user Pin
Hashim Saleem5-Aug-04 2:27
Hashim Saleem5-Aug-04 2:27 
GeneralRe: Win32 API to know about the current logged in user Pin
David Crow5-Aug-04 2:24
David Crow5-Aug-04 2:24 
Generalmake this variable global Pin
sweep1235-Aug-04 1:20
sweep1235-Aug-04 1:20 
GeneralRe: make this variable global Pin
Jaime Stuardo5-Aug-04 6:30
Jaime Stuardo5-Aug-04 6: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.