Click here to Skip to main content
15,895,667 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCombination of connectionstring in new dataset and connectionstring in the app.config file Pin
cad-JC21-Feb-08 11:26
cad-JC21-Feb-08 11:26 
GeneralSubstring Error. Please help Pin
msogun21-Feb-08 11:14
msogun21-Feb-08 11:14 
GeneralRe: Substring Error. Please help Pin
Mark Salsbery21-Feb-08 11:37
Mark Salsbery21-Feb-08 11:37 
GeneralRe: Substring Error. Please help Pin
msogun21-Feb-08 14:45
msogun21-Feb-08 14:45 
GeneralRe: Substring Error. Please help Pin
David Crow22-Feb-08 2:50
David Crow22-Feb-08 2:50 
GeneralRe: Substring Error. Please help Pin
Mark Salsbery22-Feb-08 5:58
Mark Salsbery22-Feb-08 5:58 
GeneralRe: Substring Error. Please help Pin
Mark Salsbery21-Feb-08 11:48
Mark Salsbery21-Feb-08 11:48 
GeneralRe: Substring Error. Please help Pin
jhwurmbach21-Feb-08 23:19
jhwurmbach21-Feb-08 23:19 
msogun wrote:
char str[80000];
[...]
Mycut = str.substr(0,4); /// Error here


str is defined as a pointer to an array of 8000 chars, allocated on the stack.
Now, you call the member function substr on that pointer.
But pointers do not have member functions to call. Hence the compiler tells you that in order to call a member function, left of it must be a class/struct/union. Not a pointer.
Clearer now?

Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
Douglas Adams, "Dirk Gently's Holistic Detective Agency"

GeneralRe: Substring Error. Please help Pin
msogun23-Feb-08 20:41
msogun23-Feb-08 20:41 
GeneralUNICODE, MultiByte, and UI's Pin
masnu21-Feb-08 9:15
masnu21-Feb-08 9:15 
GeneralRe: UNICODE, MultiByte, and UI's Pin
Mark Salsbery21-Feb-08 10:49
Mark Salsbery21-Feb-08 10:49 
GeneralRe: UNICODE, MultiByte, and UI's Pin
krmed22-Feb-08 0:40
krmed22-Feb-08 0:40 
QuestionAdvise - How to make C++ Windows Form App without .NET framework Pin
alanteigne21-Feb-08 8:30
alanteigne21-Feb-08 8:30 
GeneralRe: Advise - How to make C++ Windows Form App without .NET framework Pin
TheGreatAndPowerfulOz21-Feb-08 8:33
TheGreatAndPowerfulOz21-Feb-08 8:33 
GeneralRe: Advise - How to make C++ Windows Form App without .NET framework Pin
alanteigne21-Feb-08 8:42
alanteigne21-Feb-08 8:42 
GeneralRe: Advise - How to make C++ Windows Form App without .NET framework Pin
TheGreatAndPowerfulOz21-Feb-08 8:47
TheGreatAndPowerfulOz21-Feb-08 8:47 
GeneralRe: Advise - How to make C++ Windows Form App without .NET framework Pin
alanteigne21-Feb-08 9:05
alanteigne21-Feb-08 9:05 
GeneralRe: Advise - How to make C++ Windows Form App without .NET framework Pin
alanteigne21-Feb-08 9:22
alanteigne21-Feb-08 9:22 
GeneralRe: Advise - How to make C++ Windows Form App without .NET framework Pin
Ali Rafiee21-Feb-08 9:45
Ali Rafiee21-Feb-08 9:45 
GeneralRe: Advise - How to make C++ Windows Form App without .NET framework Pin
alanteigne21-Feb-08 10:55
alanteigne21-Feb-08 10:55 
GeneralRe: Advise - How to make C++ Windows Form App without .NET framework Pin
jhwurmbach21-Feb-08 23:23
jhwurmbach21-Feb-08 23:23 
GeneralRe: Advise - How to make C++ Windows Form App without .NET framework Pin
Moak22-Feb-08 7:03
Moak22-Feb-08 7:03 
GeneralAbout DoModal failing [modified] Pin
Fernando A. Gomez F.21-Feb-08 6:22
Fernando A. Gomez F.21-Feb-08 6:22 
QuestionRe: About DoModal failing Pin
David Crow21-Feb-08 6:30
David Crow21-Feb-08 6:30 
GeneralRe: About DoModal failing Pin
Fernando A. Gomez F.21-Feb-08 6:59
Fernando A. Gomez F.21-Feb-08 6:59 

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.