Click here to Skip to main content
15,916,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Linking Error Pin
30-May-02 18:19
suss30-May-02 18:19 
GeneralRe: Linking Error Pin
Nish Nishant30-May-02 19:56
sitebuilderNish Nishant30-May-02 19:56 
Questionhow to add a new toolbar to vs.net ide in the vs.net add-in? Pin
G.Richard30-May-02 15:57
G.Richard30-May-02 15:57 
AnswerRe: how to add a new toolbar to vs.net ide in the vs.net add-in? Pin
James R. Twine31-May-02 10:34
James R. Twine31-May-02 10:34 
GeneralDev Studio... Pin
Max Santos30-May-02 15:17
Max Santos30-May-02 15:17 
GeneralRe: Dev Studio... Pin
benjymous30-May-02 22:35
benjymous30-May-02 22:35 
GeneralRe: Dev Studio... Pin
Max Santos31-May-02 0:34
Max Santos31-May-02 0:34 
Generalexperimenting... "to understand pointers more" Pin
SilverShalkin30-May-02 15:20
SilverShalkin30-May-02 15:20 
this is my code:

#include <iostream>

using namespace std;

char *pchar[6];
char character[6] = "hello";

int main()
{
strcpy(pchar, &character);
return 0;
}

that is "all" my code, no more no less. the problem accures on line:

strcpy(pchar, &character);

im not very sure on what this'll do, what i am trying to do is, have pchar point to the address of character. i thought that if there was more than one character i should use strcpy(), but im not very sure.

how would i accomplish this? "see any problems, or better way of doing things, just note it Smile | :) "

Thanks!

~SilverShalkin
GeneralRe: experimenting... "to understand pointers more" Pin
Paul M Watt30-May-02 16:02
mentorPaul M Watt30-May-02 16:02 
GeneralRe: experimenting... "to understand pointers more" Pin
SilverShalkin30-May-02 16:18
SilverShalkin30-May-02 16:18 
GeneralRe: experimenting... "to understand pointers more" Pin
Roger Broomfield30-May-02 18:04
Roger Broomfield30-May-02 18:04 
GeneralRe: experimenting... "to understand pointers more" Pin
Nish Nishant30-May-02 17:56
sitebuilderNish Nishant30-May-02 17:56 
GeneralRe: experimenting... "to understand pointers more" Pin
SilverShalkin30-May-02 18:11
SilverShalkin30-May-02 18:11 
GeneralRe: experimenting... "to understand pointers more" Pin
Nish Nishant30-May-02 18:18
sitebuilderNish Nishant30-May-02 18:18 
GeneralRe: experimenting... "to understand pointers more" Pin
Matt Gullett30-May-02 19:55
Matt Gullett30-May-02 19:55 
GeneralRe: experimenting... "to understand pointers more" Pin
SilverShalkin31-May-02 11:19
SilverShalkin31-May-02 11:19 
GeneralIs it me, or does there seem to be a bubble of questions with long subjects and nothing of any merit in the actual body of the message. Pin
Tim Smith30-May-02 13:38
Tim Smith30-May-02 13:38 
Generalall fixed :) Pin
SilverShalkin30-May-02 15:39
SilverShalkin30-May-02 15:39 
GeneralRe: Is it me, or does there seem to be a bubble of questions with long subjects and nothing of any merit in the actual body of the message. Pin
Nish Nishant30-May-02 17:57
sitebuilderNish Nishant30-May-02 17:57 
Generaldevice context of picture box control Pin
Speedy30-May-02 13:10
Speedy30-May-02 13:10 
QuestionHow do i catch when the user selects an item in a listview control with the RIGHT mouse button? Pin
redeemer30-May-02 13:03
redeemer30-May-02 13:03 
AnswerRe: How do i catch when the user selects an item in a listview control with the RIGHT mouse button? Pin
Tomasz Sowinski30-May-02 13:05
Tomasz Sowinski30-May-02 13:05 
GeneralRe: How do i catch when the user selects an item in a listview control with the RIGHT mouse button? Pin
redeemer30-May-02 13:28
redeemer30-May-02 13:28 
GeneralOveriding mouse events Pin
30-May-02 11:51
suss30-May-02 11:51 
GeneralVariable issues Pin
Stew30-May-02 11:37
Stew30-May-02 11:37 

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.