Bonjour,
J'ai un problème sur l'inclusion de .h entre eux :
Voila mon .h :
Voila mon .cpp :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 #ifndef _EXINSTANCE_H #define _EXINSTANCE_H using namespace System; #include "EX.h" #include "EXStructure.h" #include "EXProduct.h" #include "EXComponent.h" #include <stdarg.h> #include <vcclr.h> namespace EXWrapperRVI { public ref class EXInstance : EXObject { public : EXComponent GetComponent(); }; } #endif
Erreur : 1>.\EXInstance.cpp(10) : error C2143: syntax error : missing ';' before '^'
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 #include "stdafx.h" #include "EXInstance.h" EXComponent^ EXWrapperRVI::EXInstance::GetComponent() { return gcnew EXComponent(((const EX_Instance*)pObject)->AskComponent()); }
Ce qui correspond à cette ligne : EXComponent^ EXWrapperRVI::EXInstance::GetComponent()
Il ne reconnait pas le EXComponent^ dans le .cpp alors qu'il le reconnait dans le .h. Coment est-ce possible???!!!
Merci de votre aide!
Partager