Click here to Skip to main content
15,920,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to view a large image? Pin
Hamid_RT23-Feb-08 1:54
Hamid_RT23-Feb-08 1:54 
GeneralShared Files and Folders Pin
Bram van Kampen21-Feb-08 12:55
Bram van Kampen21-Feb-08 12:55 
GeneralRe: Shared Files and Folders Pin
Mark Salsbery21-Feb-08 13:05
Mark Salsbery21-Feb-08 13:05 
GeneralRe: Shared Files and Folders Pin
Bram van Kampen21-Feb-08 13:51
Bram van Kampen21-Feb-08 13:51 
GeneralRe: Shared Files and Folders Pin
David Crow22-Feb-08 3:00
David Crow22-Feb-08 3:00 
Questioncopying textbox information Pin
Adnan Merter21-Feb-08 11:59
Adnan Merter21-Feb-08 11:59 
GeneralRe: copying textbox information Pin
Mark Salsbery21-Feb-08 12:06
Mark Salsbery21-Feb-08 12:06 
QuestionRe: copying textbox information Pin
Adnan Merter21-Feb-08 12:08
Adnan Merter21-Feb-08 12:08 
GeneralRe: copying textbox information Pin
Mark Salsbery21-Feb-08 12:15
Mark Salsbery21-Feb-08 12:15 
QuestionRe: copying textbox information Pin
Adnan Merter21-Feb-08 12:17
Adnan Merter21-Feb-08 12:17 
GeneralRe: copying textbox information [modified] Pin
Mark Salsbery21-Feb-08 12:29
Mark Salsbery21-Feb-08 12:29 
GeneralRe: copying textbox information Pin
Michael Schubert21-Feb-08 12:19
Michael Schubert21-Feb-08 12:19 
GeneralRe: copying textbox information Pin
Adnan Merter21-Feb-08 12:20
Adnan Merter21-Feb-08 12:20 
GeneralRe: copying textbox information Pin
Michael Schubert21-Feb-08 12:22
Michael Schubert21-Feb-08 12:22 
GeneralRe: copying textbox information Pin
Adnan Merter21-Feb-08 12:23
Adnan Merter21-Feb-08 12:23 
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 

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.