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

C / C++ / MFC

 
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 
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 
i make all what u ask me ,and this mistake don't stille but other mistakes appears:
<br />
OpenGlView.obj : error LNK2005: "int  PANIC_SPEED" (?PANIC_SPEED@@3HA) already defined in creatfoufou.obj<br />
OpenGlView.obj : error LNK2005: "int  MINIMUM_SPEED" (?MINIMUM_SPEED@@3HA) already defined in creatfoufou.obj<br />
OpenGlView.obj : error LNK2005: "int  STARTINGSPEED" (?STARTINGSPEED@@3HA) already defined in creatfoufou.obj<br />
OpenGlView.obj : error LNK2005: "class std::vector<class foufou *,class std::allocator<class foufou *> >  fou_caracter" (?fou_caracter@@3V?$vector@PAVfoufou@@V?$allocator@PAVfoufou@@@std@@@std@@A) already defined in creatfoufou.obj<br />
OpenGlView.obj : error LNK2005: "int  num_fou_caracter" (?num_fou_caracter@@3HA) already defined in creatfoufou.obj<br />
Debug/OpenGl.exe : fatal error LNK1169: one or more multiply defined symbols found<br />
Error executing link.exe.<br />
Creating browse info file...<br />
<br />
OpenGl.exe - 6 error(s), 2 warning(s)<br />


this
// creatfoufou.h: interface for the creatfoufou class.<br />
//<br />
//////////////////////////////////////////////////////////////////////<br />
 <br />
#if !defined(AFX_CREATFOUFOU_H__BE7E5BDB_1815_48E7_AAC4_B30A8F281BA4__INCLUDED_)<br />
#define AFX_CREATFOUFOU_H__BE7E5BDB_1815_48E7_AAC4_B30A8F281BA4__INCLUDED_<br />
<br />
<br />
<br />
#if _MSC_VER > 1000<br />
#pragma once<br />
#endif // _MSC_VER > 1000<br />
#include "gl/glut.h"<br />
#include "foufou.h"<br />
#include <vector> <br />
<br />
int STARTINGSPEED = 150;<br />
int MINIMUM_SPEED  =80;<br />
int PANIC_SPEED   =25;<br />
<br />
using namespace std;<br />
vector< foufou * > fou_caracter;<br />
int num_fou_caracter;<br />
<br />
class creatfoufou  <br />
{<br />
<br />
<br />
public:<br />
	GLfloat randomZ;<br />
	GLfloat randomY;<br />
	GLfloat randomX;<br />
	void setposition(int newX,int newY,int newZ);<br />
	void creatfou(int amount);<br />
	<br />
	creatfoufou();<br />
	virtual ~creatfoufou();<br />
private:<br />
	foufou *ptrfoufou;<br />
<br />
};<br />
<br />
#endif // !defined(AFX_CREATFOUFOU_H__BE7E5BDB_1815_48E7_AAC4_B30A8F281BA4__INCLUDED_)<br />

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 
GeneralRe: Read form serial port Pin
K. Shaffer9-May-03 10:18
K. Shaffer9-May-03 10:18 
GeneralRe: Read form serial port Pin
Toni789-May-03 14:36
Toni789-May-03 14:36 
GeneralRe: Read form serial port Pin
daima_8879-May-03 14:57
daima_8879-May-03 14:57 

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.