Click here to Skip to main content
15,889,849 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCreate edit control inside thread Pin
Nena19769-May-03 17:01
Nena19769-May-03 17:01 
GeneralRe: Create edit control inside thread Pin
valikac10-May-03 5:55
valikac10-May-03 5:55 
Generalcall fuction from another class Pin
aguest9-May-03 13:18
aguest9-May-03 13:18 
GeneralRe: call fuction from another class Pin
Wes Aday9-May-03 13:45
professionalWes Aday9-May-03 13:45 
GeneralRe: call fuction from another class Pin
aguest9-May-03 14:07
aguest9-May-03 14:07 
GeneralRe: call fuction from another class Pin
Toni789-May-03 14:15
Toni789-May-03 14:15 
GeneralRe: call fuction from another class Pin
aguest9-May-03 15:29
aguest9-May-03 15:29 
GeneralRe: call fuction from another class Pin
Toni789-May-03 15:44
Toni789-May-03 15:44 
aguest wrote:
void creatfoufou::setposition(int newX, int newY, int newZ)
{
-->the mistak RePaint(randomX,randomY,randomZ);
}



aguest wrote:
void foufou::RePaint(int xpos,int ypos,int zpos)

This is exactly what I stated in my previous message. Even though you declared RePaint as a public function in foufou class you can't just use it in createfoufou. You need to call it this way:
class createfoufou
{
public:
  createfoufou()
private:
  foufou *newfoufouPtr;
};

createfoufou::createfoufou()
{
   newfoufouPtr = new foufou;
};

void creatfoufou::setposition(int newX, int newY, int newZ)
{
     newfoufouPtr->RePaint(randomX,randomY,randomZ);
}



// Afterall I realized that even my comment lines have bugs
GeneralRe: call fuction from another class Pin
aguest9-May-03 15:41
aguest9-May-03 15:41 
GeneralRe: call fuction from another class Pin
Toni789-May-03 15:46
Toni789-May-03 15:46 
GeneralRe: call fuction from another class Pin
aguest9-May-03 18:19
aguest9-May-03 18:19 
GeneralRe: call fuction from another class Pin
Toni789-May-03 18:32
Toni789-May-03 18:32 
GeneralDepricating functions Pin
Jack Handy9-May-03 9:26
Jack Handy9-May-03 9:26 
GeneralRe: Depricating functions Pin
Tim Smith9-May-03 9:34
Tim Smith9-May-03 9:34 
GeneralRe: Depricating functions Pin
Jack Handy9-May-03 9:46
Jack Handy9-May-03 9:46 
GeneralRe: Depricating functions Pin
Tim Smith9-May-03 9:49
Tim Smith9-May-03 9:49 
GeneralRe: Depricating functions Pin
aguest9-May-03 15:16
aguest9-May-03 15:16 
GeneralRe: Depricating functions Pin
Jack Handy9-May-03 22:07
Jack Handy9-May-03 22:07 
Generalnamespaces and forward declarations Pin
Member 9076299-May-03 8:58
Member 9076299-May-03 8:58 
GeneralRe: namespaces and forward declarations Pin
Orhun Birsoy9-May-03 9:46
Orhun Birsoy9-May-03 9:46 
QuestionIs it possible to import a set of menus? Pin
adonisv9-May-03 8:54
adonisv9-May-03 8:54 
AnswerRe: Is it possible to import a set of menus? Pin
basementman9-May-03 9:01
basementman9-May-03 9:01 
GeneralCool, you can drag and drop even!!! Pin
adonisv9-May-03 9:20
adonisv9-May-03 9:20 
GeneralRead form serial port Pin
K. Shaffer9-May-03 8:46
K. Shaffer9-May-03 8:46 
GeneralRe: Read form serial port Pin
valikac9-May-03 9:34
valikac9-May-03 9:34 

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.