Click here to Skip to main content
15,884,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: creating an array of the corect size Pin
David Crow30-Jun-03 8:22
David Crow30-Jun-03 8:22 
GeneralRe: creating an array of the corect size Pin
Dean Goodman30-Jun-03 8:52
Dean Goodman30-Jun-03 8:52 
GeneralRe: creating an array of the corect size Pin
johnstonsk30-Jun-03 9:13
johnstonsk30-Jun-03 9:13 
GeneralRe: creating an array of the corect size Pin
johnstonsk30-Jun-03 9:21
johnstonsk30-Jun-03 9:21 
GeneralRe: creating an array of the corect size Pin
johnstonsk30-Jun-03 9:26
johnstonsk30-Jun-03 9:26 
GeneralCOnvert CEdit to string Pin
keegan30-Jun-03 7:15
keegan30-Jun-03 7:15 
GeneralRe: COnvert CEdit to string Pin
David Crow30-Jun-03 7:25
David Crow30-Jun-03 7:25 
GeneralRe: COnvert CEdit to string Pin
keegan30-Jun-03 7:57
keegan30-Jun-03 7:57 
ok, thanks for that. it accepted passing CEdit variable into a function that takes a LPCTSTR string.

However, i still cant infile >> a LPCTSTR.

Ie, here's my code:

void function(LPCTSTR stringthing)
{
string filename = "stringdata.dat";
ifstream inFile(filename.c_str());
inFile >> stringthing;
}

this returns the error
error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'LPCTSTR' (or there is no acceptable conversion)

i tried using inFile >> into a string variable, then setting my LPCTSTR = to that string contents...but that said it cant convert.

Frown | :(

*.*
GeneralRe: COnvert CEdit to string Pin
David Crow30-Jun-03 8:20
David Crow30-Jun-03 8:20 
GeneralRe: COnvert CEdit to string Pin
keegan30-Jun-03 9:09
keegan30-Jun-03 9:09 
GeneralRe: COnvert CEdit to string Pin
David Crow30-Jun-03 9:53
David Crow30-Jun-03 9:53 
GeneralRe: COnvert CEdit to string Pin
keegan30-Jun-03 9:58
keegan30-Jun-03 9:58 
GeneralDirectDraw Palette Pin
Kuniva30-Jun-03 6:07
Kuniva30-Jun-03 6:07 
GeneralDebugger won't startup when app crashes Pin
John Oliver30-Jun-03 6:01
John Oliver30-Jun-03 6:01 
GeneralRe: Debugger won't startup when app crashes Pin
David Crow30-Jun-03 7:32
David Crow30-Jun-03 7:32 
GeneralRe: Debugger won't startup when app crashes Pin
John Oliver30-Jun-03 21:44
John Oliver30-Jun-03 21:44 
GeneralVirtual KeyCodes error: undeclared identifier Pin
fluxt30-Jun-03 5:48
fluxt30-Jun-03 5:48 
GeneralRe: Virtual KeyCodes error: undeclared identifier Pin
valikac30-Jun-03 6:33
valikac30-Jun-03 6:33 
GeneralComparison in Preprocessor Pin
chris_mccc30-Jun-03 4:59
chris_mccc30-Jun-03 4:59 
GeneralRe: Comparison in Preprocessor Pin
João Paulo Figueira30-Jun-03 5:14
professionalJoão Paulo Figueira30-Jun-03 5:14 
GeneralRe: Comparison in Preprocessor Pin
Ryan Binns30-Jun-03 5:14
Ryan Binns30-Jun-03 5:14 
General(URGENT !!!!) Sharing Memory between CV++ 6.0 and VB 6.0 Pin
Carlo30-Jun-03 4:07
Carlo30-Jun-03 4:07 
GeneralRe: (URGENT !!!!) Sharing Memory between CV++ 6.0 and VB 6.0 Pin
basementman30-Jun-03 4:27
basementman30-Jun-03 4:27 
GeneralRe: (URGENT !!!!) Sharing Memory between CV++ 6.0 and VB 6.0 Pin
Carlo30-Jun-03 5:01
Carlo30-Jun-03 5:01 
GeneralList Control in ATL/WTL Pin
YaronNir30-Jun-03 4:05
YaronNir30-Jun-03 4:05 

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.