bonjour
J'ai déclarés des méthodes static dans la classe qui me sont pas reconnus par le compilateur
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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*******************************************************************************
 * NOM: Propositions.h
 * ROLE:
 * HISTORIQUE:
 * 05/05/2003, yab, initial version
*******************************************************************************/
#ifndef PROPOSITION_H
#define PROPOSITION_H
/*_____INCLUDE-FILES__________________________________________________________*/
/*_____GLOBAL-DEFINE__________________________________________________________*/
/*_____GLOBAL-TYPES___________________________________________________________*/
/*_____GLOBAL-DATA____________________________________________________________*/
 
/*_____GLOBAL-MACROS__________________________________________________________*/
/*_____GLOBAL-FUNCTIONS-PROTOTYPES____________________________________________*/
/*_____CLASS-DEFINITION_______________________________________________________*/
namespace SpecificationLoader
{
    using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;
	using namespace System::IO;
	namespace Word = Microsoft::Office::Interop::Word;
 
	class CProposition
	{
		public:
			CProposition::CProposition();
			CProposition::~CProposition();
			static CAnalysedWord* CProposition::PoseMark( std::wstring str, enPOS pos, int ulLength);
			static void CProposition::AnalysePrecondition( std::list<CAnalysedChunk *>::iterator itChunk, std::list<CAnalysedWord *>::iterator  itWord, CElementSemantique *pCurrentElement, CAnalysedSegment* pSegment, std::wstring wsNextUnivers, CAnalysedChunk* pChunk, CAnalysedChunk* pChunkSujet, enChunkType Curpos, int &Step, bool bTitle, bool* pbNewSegment, bool &bIsInList, bool bPivoted, bool &bNounPending, bool &processed, int &iPredicate, std::wstring wsChunk, CAnalysedWord *pWord, CAnalysedChunk *pPreviousChunk, CAnalysedChunk *pCurrentChunk, CAnalysedChunk *pNextChunk, CAnalysedChunk *pNext2Chunk, CAnalysedChunk *pNext3Chunk);
			static void CProposition::AnalyseQualificateur( std::list<CAnalysedChunk *>::iterator itChunk, std::list<CAnalysedWord *>::iterator  itWord, CAnalysedSegment* pSegment, std::wstring wsNextUnivers, CElementSemantique *pCurrentElement, CElementSemantique *pPreviousElement, CLinguisticSegment* pLinguisticSegment, CAnalysedChunk* pChunk, CAnalysedChunk* pChunkSujet, enChunkType Curpos, int &Step, bool bTitle, bool &bMarkDeleted, bool &bNewSegmentOngoing, bool* pbNewSegment, bool &bIsInList, bool bPivoted, bool &bNounPending, bool &processed, int &iPredicate, std::wstring wsChunk, CAnalysedWord *pWord, CAnalysedChunk *pPreviousChunk, CAnalysedChunk *pCurrentChunk, CAnalysedChunk *pNextChunk, CAnalysedChunk *pNext2Chunk, CAnalysedChunk *pNext3Chunk);
			static void CProposition::AnalysePredicat( std::list<CAnalysedChunk *>::iterator itChunk, std::list<CAnalysedWord *>::iterator  itWord, CAnalysedSegment* pSegment, std::wstring wsNextUnivers, CElementSemantique *pCurrentElement, CElementSemantique *pPreviousElement, CLinguisticSegment* pLinguisticSegment, CAnalysedChunk* pChunk, CAnalysedChunk* pChunkSujet, enChunkType Curpos, int &Step, bool bTitle, bool &bIsStopped, bool* pbNewSegment, bool &bIsInList, bool &bNewSegmentOngoing, bool &bIsPredicatAllocated, bool &bMarkDeleted, bool bPivoted, bool &bNounPending, bool &processed, int &iPredicate, std::wstring wsChunk, CAnalysedWord *pWord, CAnalysedChunk *pPreviousChunk, CAnalysedChunk *pCurrentChunk, CAnalysedChunk *pNextChunk, CAnalysedChunk *pNext2Chunk, CAnalysedChunk *pNext3Chunk);
			static void CProposition::AnalyseOther( std::list<CAnalysedChunk *>::iterator itChunk, std::list<CAnalysedWord *>::iterator  itWord, CElementSemantique *pCurrentElement, CElementSemantique *pPreviousElement, CLinguisticSegment* pLinguisticSegment, std::wstring wsNextUnivers ,CAnalysedChunk* pChunk, CAnalysedChunk* pChunkSujet, enChunkType Curpos, int &Step, bool bTitle, bool* pbNewSegment, bool &bIsInList, bool &bNewSegmentOngoing, bool &bIsPredicatAllocated, bool &bMarkDeleted, bool bPivoted, bool &bNounPending, bool &processed, int &iPredicate, std::wstring wsChunk, CAnalysedWord *pWord, CAnalysedChunk *pPreviousChunk, CAnalysedChunk *pCurrentChunk, CAnalysedChunk *pNextChunk, CAnalysedChunk *pNext2Chunk);
			static void CProposition::InitiateProposition( std::list<CAnalysedChunk *>::iterator itChunk, CAnalysedSegment* pSegment, CElementSemantique *pCurrentElement, CElementSemantique *pPreviousElement, CLinguisticSegment* pLinguisticSegment, CAnalysedChunk* pChunk, bool* pbNewSegment, bool &bNounPending, bool &bIsInList, bool &bIsPredicatAllocated, bool &bIsPreconditionAllocated , bool &bWasPredicatAllocated, bool &bWasPreconditionAllocated, enChunkType &Curpos, int &iAlloc, int &Step, std::wstring &wsChunk, CAnalysedWord *pWord, CAnalysedChunk *pPreviousChunk, CAnalysedChunk *pCurrentChunk, CAnalysedChunk *pNextChunk, CAnalysedChunk *pNext2Chunk);
			static void CProposition::ProcessPassiveFromPresentParticiple( std::list<CAnalysedChunk *>::iterator itChunk, std::list<CAnalysedWord *>::iterator  itWord, CAnalysedSegment * pSegment, std::wstring wsNextUnivers, CElementSemantique *pProposition, CLinguisticSegment* pLinguisticSegment, CAnalysedChunk* pChunkSujet, int Step, bool bTitle, bool * pbNewSegment, bool &bIsStopped, CAnalysedChunk *pCurrentChunk, CAnalysedChunk *pPreviousChunk);
			static bool CProposition::ProcessPassiveFromPassive(  std::list<CAnalysedWord *>::iterator  itWord, CAnalysedSegment * pSegment, std::wstring wsNextUnivers, CElementSemantique *pProposition, CLinguisticSegment* pLinguisticSegment, CAnalysedChunk* pChunkSujet, int Step, bool bTtitle, bool * pbNewSegment, bool &bIsStopped, std::list<CAnalysedChunk *>::iterator itChunk, CAnalysedChunk *pCurrentChunk, CAnalysedChunk *pPreviousChunk);
			static void CProposition::ExecutePassiveAndFormatResult(  std::list<CAnalysedChunk *>::iterator itChunk, std::list<CAnalysedWord *>::iterator  itWord, CAnalysedSegment * pSegment, std::wstring wsNextUnivers, CAnalysedSegment* pInternalSegment, CElementSemantique *pProposition, CLinguisticSegment* pLinguisticSegment, CLinguisticSegment *pNewLinguisticSegment, CAnalysedChunk* pChunkSujet, int Step, bool bTitle, bool * pbNewSegment, bool &bIsStopped, CAnalysedChunk *pCurrentChunk, CAnalysedChunk *pPreviousChunk);
			static erc CProposition::ExtractQPCA( std::list<CAnalysedChunk *>::iterator itChunk, std::list<CAnalysedWord *>::iterator  itWord, CAnalysedSegment* pSegment, std::wstring wsNextUnivers, CAnalysedChunk* pChunkSujet, bool bTitle, bool* pbNewSegment, int iIdDoc);
	};
	extern SpecificationLoader::CProposition objProposition;
};
#endif /* PROPOSITION_H */
et le compilateur me réponds:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
1>..\..\..\..\Linguistic\Analyser\src\ngramer.cpp(196): error C2352: 'SpecificationLoader::CProposition::AnalysePrecondition'*: appel non conforme d'une fonction membre non static
1>          D:\usr\Memoria\dev\Linguistic\Analyser\com\Proposition.h(34)*: voir la déclaration de 'SpecificationLoader::CProposition::AnalysePrecondition'
1>..\..\..\..\Linguistic\Analyser\src\ngramer.cpp(419): error C2352: 'SpecificationLoader::CProposition::AnalysePrecondition'*: appel non conforme d'une fonction membre non static
1>          D:\usr\Memoria\dev\Linguistic\Analyser\com\Proposition.h(34)*: voir la déclaration de 'SpecificationLoader::CProposition::AnalysePrecondition'
1>..\..\..\..\Linguistic\Analyser\src\ngramer.cpp(572): error C2352: 'SpecificationLoader::CProposition::AnalysePrecondition'*: appel non conforme d'une fonction membre non static
1>          D:\usr\Memoria\dev\Linguistic\Analyser\com\Proposition.h(34)*: voir la déclaration de 'SpecificationLoader::CProposition::AnalysePrecondition'
1>..\..\..\..\Linguistic\Analyser\src\ngramer.cpp(628): error C2352: 'SpecificationLoader::CProposition::PoseMark'*: appel non conforme d'une fonction membre non static
1>          D:\usr\Memoria\dev\Linguistic\Analyser\com\Proposition.h(33)*: voir la déclaration de 'SpecificationLoader::CProposition::PoseMark'
1>..\..\..\..\Linguistic\Analyser\src\ngramer.cpp(1870): warning C4018: '>'*: incompatibilité signed/unsigned
1>..\..\..\..\Linguistic\Analyser\src\ngramer.cpp(1901): error C2352: 'SpecificationLoader::CProposition::PoseMark'*: appel non conforme d'une fonction membre non static
1>          D:\usr\Memoria\dev\Linguistic\Analyser\com\Proposition.h(33)*: voir la déclaration de 'SpecificationLoader::CProposition::PoseMark'
qui m'aidera sera