IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Visual C++ Discussion :

Des méthodes déclarés static dans la classe ne sont pas reconnues


Sujet :

Visual C++

  1. #1
    Débutant
    Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2008
    Messages
    1 022
    Détails du profil
    Informations personnelles :
    Localisation : France, Mayenne (Pays de la Loire)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Décembre 2008
    Messages : 1 022
    Points : 332
    Points
    332
    Par défaut Des méthodes déclarés static dans la classe ne sont pas reconnues
    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

  2. #2
    Expert éminent
    Homme Profil pro
    Ingénieur développement matériel électronique
    Inscrit en
    Décembre 2015
    Messages
    1 584
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 61
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Ingénieur développement matériel électronique
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Décembre 2015
    Messages : 1 584
    Points : 7 721
    Points
    7 721
    Par défaut
    Bonjour,

    Dans la déclaration, il ne faut pas rappeler le nom de la classe devant le nom de la méthode.

    p.e : static CAnalysedWord* CProposition :: PoseMark( std::wstring str, enPOS pos, int ulLength);
    doit être : static CAnalysedWord* PoseMark( std::wstring str, enPOS pos, int ulLength);

  3. #3
    Débutant
    Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2008
    Messages
    1 022
    Détails du profil
    Informations personnelles :
    Localisation : France, Mayenne (Pays de la Loire)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Décembre 2008
    Messages : 1 022
    Points : 332
    Points
    332
    Par défaut J'ai suivi votre conseil
    J'ai suivi votre conseil mais ça n'a rien changé

  4. #4
    Expert éminent sénior
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Février 2005
    Messages
    5 175
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 52
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Conseil

    Informations forums :
    Inscription : Février 2005
    Messages : 5 175
    Points : 12 302
    Points
    12 302
    Par défaut
    Montrez vos modifications.

  5. #5
    Débutant
    Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2008
    Messages
    1 022
    Détails du profil
    Informations personnelles :
    Localisation : France, Mayenne (Pays de la Loire)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Décembre 2008
    Messages : 1 022
    Points : 332
    Points
    332
    Par défaut Je les met
    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();
    			static CAnalysedWord* PoseMark( std::wstring str, enPOS pos, int ulLength);
    			static void 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 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 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 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 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 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 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 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 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 */

  6. #6
    Expert éminent sénior
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Février 2005
    Messages
    5 175
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 52
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Conseil

    Informations forums :
    Inscription : Février 2005
    Messages : 5 175
    Points : 12 302
    Points
    12 302
    Par défaut
    Ok pour les déclarations, mais les définitions et les messages d'erreurs ???

  7. #7
    Débutant
    Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2008
    Messages
    1 022
    Détails du profil
    Informations personnelles :
    Localisation : France, Mayenne (Pays de la Loire)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Décembre 2008
    Messages : 1 022
    Points : 332
    Points
    332
    Par défaut ce que je sais
    Je vous met le 1° appel, quant au message d'erreur il est déjà dans le post
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    							processed = false;
    							CProposition::AnalysePrecondition( itChunk, itWord, pProposition, pSegment, wsNextUnivers, pChunk, pChunkSujet, Curpos, Step, bTitle, pbNewSegment, bIsInList, bPivoted, bNounPending, processed, iPredicate, wsChunk, pWord, pPreviousChunk, pCurrentChunk, pNextChunk, pNext2Chunk, pNext3Chunk);
    							pPreviousChunk = pCurrentChunk;

  8. #8
    Expert éminent sénior
    Avatar de Médinoc
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Septembre 2005
    Messages
    27 381
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2005
    Messages : 27 381
    Points : 41 582
    Points
    41 582
    Par défaut
    Plus quelques-uns des appels...

  9. #9
    Débutant
    Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2008
    Messages
    1 022
    Détails du profil
    Informations personnelles :
    Localisation : France, Mayenne (Pays de la Loire)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Décembre 2008
    Messages : 1 022
    Points : 332
    Points
    332
    Par défaut je vous met
    Je vous met deux autres appels
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    				   pWord = new CAnalysedWord();
    	                           pWord = CProposition::PoseMark( L",", POS_COMMA, 1);
    		                   pWord->wsPronunciation = L"in a syntagme";
    				   pCurrentChunk = new CAnalysedChunk();
    				   pCurrentChunk->ullChunkID = 0;
    	                           pCurrentChunk->pListWord->push_back( pWord);
    		                   pCurrentChunk->ChunkType = CHUNKTYPE_OTHER;
    			           pCurrentChunk->DrivingPos = POS_COMMA;
    				   pProposition->pListChunk->push_back( pCurrentChunk);
    et
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    		pWord = CProposition::PoseMark( L".", POS_STOPMARK, 1);
    		pWord->wsPronunciation = L"in a syntagme";
    		pCurrentChunk = new CAnalysedChunk();
    		pCurrentChunk->ChunkType = CHUNKTYPE_OTHER;
    		pCurrentChunk->DrivingPos = POS_STOPMARK;
    		pCurrentChunk->TypeFonction = FONCTION_NONE;
    		pCurrentChunk->pListWord->push_back( pWord);
    		pSegment->pLinguisticSegment->pListWord->push_back( pWord);
    		pSegment->pLinguisticSegment->pListChunk->push_back( pCurrentChunk);

  10. #10
    Expert éminent sénior
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Février 2005
    Messages
    5 175
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 52
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Conseil

    Informations forums :
    Inscription : Février 2005
    Messages : 5 175
    Points : 12 302
    Points
    12 302
    Par défaut
    Ok pour les déclarations, mais les définitions et les messages d'erreurs ??? (BIS)

  11. #11
    Débutant
    Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2008
    Messages
    1 022
    Détails du profil
    Informations personnelles :
    Localisation : France, Mayenne (Pays de la Loire)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Décembre 2008
    Messages : 1 022
    Points : 332
    Points
    332
    Par défaut Les Meesages d'Erruer
    Les Messages d’Erreurs sont dans le premier post
    Ce problème est bloquant car il impacte plusieurs classes
    J'ajoute donc le message d'erreur de l'autre classe:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    1>..\..\..\..\DBMS\MissionDBManager\src\MissionDatabaseManager.cpp(378): error C2352: 'SpecificationLoader::CInterbaseManager::ConnectServer'*: appel non conforme d'une fonction membre non static
    1>          D:\usr\Memoria\dev\DBMS\DBMSManager\com\InterbaseManagerM.hpp(80)*: voir la déclaration de 'SpecificationLoader::CInterbaseManager::ConnectServer'

  12. #12
    Expert éminent
    Homme Profil pro
    Ingénieur développement matériel électronique
    Inscrit en
    Décembre 2015
    Messages
    1 584
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 61
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Ingénieur développement matériel électronique
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Décembre 2015
    Messages : 1 584
    Points : 7 721
    Points
    7 721
    Par défaut
    Une idée me viens,

    n'y a-t-il pas quelque part une ligne du type :
    #define static
    ?

  13. #13
    Débutant
    Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2008
    Messages
    1 022
    Détails du profil
    Informations personnelles :
    Localisation : France, Mayenne (Pays de la Loire)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Décembre 2008
    Messages : 1 022
    Points : 332
    Points
    332
    Par défaut J'ai fait une recherche ...
    J'ai fait une recherche static et elle n'a rien trouvé .Je te met le fichier header pour que tu puisse vérifier.
    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
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    /*******************************************************************************
     * NOM: 
     * ROLE: 
     * HISTORIQUE:
        * 05/05/2001, xxx, initial version
    *******************************************************************************/
    #ifndef INTERBASEMANAGER_H
    #define INTERBASEMANAGER_H
    /*_____INCLUDE-FILES__________________________________________________________*/
     
    #pragma managed
     
    //extern 
    //extern 
    //
    //extern IBPP::Transaction                 m_pSelectTransaction;
    //extern IBPP::Transaction                 m_pStartedSelectTransaction;
    /*_____GLOBAL-DEFINE__________________________________________________________*/
    #define    VENDOR_LIB                 "gds32.dll"
    #define    LIBRARY_NAME               "dbexpint.dll"
    #define    GET_DRIVER_FUNC            "getSQLDriverINTERBASE"
    #define    DRIVER_NAME                "Interbase"
    #define    ROLE_NAME                  "RoleName"
    #define    SERVER_CHARSET             ""
    #define    SQL_DIALECT                "3"
    #define    BLOB_SIZE                  "-1"
    #define    COMMIT_RETAIN              "False"
    #define    WAIT_ON_LOCKS              "True"
    #define    ERROR_RESOURCE_FILE        ""
    #define    LOCALE_CODE                "0000"
    #define    INTERBASE_TRANSISOLATION   "Real Commited"
    #define    STATE_CLOSED               csStateClosed
    #define    STATE_OPENED               csStateOpen
    /*_____GLOBAL-TYPES___________________________________________________________*/
    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;
    	using namespace System::Data::Sql;
    	using namespace System::Data::SqlClient;
    	using namespace System::Runtime::InteropServices;
    	using namespace msclr::interop;
     
    	ref class CInterbaseManager
    	{
    	private:
    	enum class enDBMS
    	{
    		DBMS_CINTERBASE_MANAGER = 1,
    	};
     
    	enum class enCinterbaseManagermethod
    	{
    		CONNECT_SERVER = 1,
    		DISCONNECT_SERVER,
    		INITIALIZE_INTERBASE_MANAGER,
    		CREATE_DATABASE,
    		DELETE_DATABASE,
    		CONNECT_DATABASE,
    		DISCONNECT_DATABASE,
    		GET_IDENTIFIER,
    		EXECUTE_SELECT_REQUEST,
    		EXECUTE_REQUEST,
    		EXECUTE_SCRIPT,
    		START_TRANSACTION,
    		COMMIT_TRANSACTION,
    		ROLLBACK_TRANSACTION,
    		FIRST,
    		NEXT,
    		GET_HIDDB,
    		GET_INTEGER,
    		GET_WIDESTRING,
    	};
     
    public:
      static SqlCommand^ myCommand;
      static SqlConnection^ myConnection;
      static SqlTransaction^ myTransaction;
      static SqlDataReader^ myReader;
      static IBPP::Transaction*                 m_pTransaction;
      static IBPP::Statement*                   m_pTSQLStatement;
      static IBPP::Database*                    PtrDatabase;
      static bool m_bServerConnected;
      static Exception^ ex;
      CInterbaseManager();
      ~CInterbaseManager();
      static erc InitializeInterbaseManager(std::wstring wsDatabaseName);
      static erc CreateDatabase(std::wstring wsDatabaseName);
      static erc DeleteDatabase(std::wstring wsDatabaseName);
      static erc ConnectDatabase(std::wstring wsDatabaseName);
      static erc InititiateDatabase(std::wstring wsDatabaseName);
      static erc initConnectionServer();
      static erc DisconnectDatabase();
      static erc DisconnectServer();
      static erc ConnectServer( std::wstring wsUserName, std::wstring wsPassword, std::wstring wsHost);
      static erc ExecuteScript(std::wstring wsHostName, std::wstring wsDatabaseName, std::wstring wsUserName, std::wstring wsPassword, std::wstring wsScriptName);
      static int GetIdentifier(std::wstring wsNameId, std::wstring wsPadName, std::wstring wsNewIdentifier);
      static erc ExecuteStartedSelectRequest(std::wstring wsRequest, unsigned long* dwNbResultFound);
      static erc ExecuteSelectRequest( SqlCommand^ wsRequest, unsigned long* dwNbResultFound);
      static erc ExecuteRequest( SqlCommand^ wsRequest, unsigned long * dwNbResultFound);
      static erc StartTransaction( SqlCommand^ Text);
      static void StartInsertion( System::String^ wsTable_Name);
      static void CloseInsertion( System::String^ wsTable_Name);
      static bool IsConnected();
      static erc CommitStartedTransaction();
      static erc CommitTransaction();
      static erc RollbackTransaction();
      static void CloseReader();
      static erc First();
      static erc Next(bool& bEndReached);
      static int GetInteger( int shIndexField);
      static System::String^ GetString( int row);
      static erc GetWideString(short shIndexField, std::wstring& wsStringValue);
      static erc GetHidDB(short shIndexField, int64_t& hidID);
      static void edit( char* final_err_buff);
      static void Display( Exception^ ex);
    };
    };
    /*_____GLOBAL-DATA____________________________________________________________*/
     
    /*_____GLOBAL-MACROS__________________________________________________________*/
    /*_____GLOBAL-FUNCTIONS-PROTOTYPES____________________________________________*/
     
    #endif /* INTERBASEMANAGER_H */

  14. #14
    Expert éminent sénior
    Avatar de Médinoc
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Septembre 2005
    Messages
    27 381
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2005
    Messages : 27 381
    Points : 41 582
    Points
    41 582
    Par défaut
    1. Es-tu sûr que c'est bien InterbaseManagerM.hpp ? Car la ligne 80 du code que tu as posté n'est pas celle où se trouve la déclaration de ConnectServer()...
    2. Vu que tu implémentes CInterbaseManager comme une classe statique, autant la déclarer comme telle: supprime le constructeur&destructeur, et déclare-la comme ref class CInterbaseManager abstract sealed {...

  15. #15
    Débutant
    Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2008
    Messages
    1 022
    Détails du profil
    Informations personnelles :
    Localisation : France, Mayenne (Pays de la Loire)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Décembre 2008
    Messages : 1 022
    Points : 332
    Points
    332
    Par défaut le fichier s'appelle...
    le fichier s'appelle InterbaseManager.h
    il a été mis dans le précédent post
    il est managé.
    les modifications que tu as proposé solutionne le problème sur le dernier fichier
    je regarde si on peut avoir la mème solution dans l'autre cas. Vérification faite et modifications faites le premier problème reste entier

  16. #16
    Débutant
    Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2008
    Messages
    1 022
    Détails du profil
    Informations personnelles :
    Localisation : France, Mayenne (Pays de la Loire)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Décembre 2008
    Messages : 1 022
    Points : 332
    Points
    332
    Par défaut ce problème est bloquant
    Je ne peux pas finir la compilation; c'est le seul problème qui reste

  17. #17
    Expert éminent sénior
    Avatar de Médinoc
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Septembre 2005
    Messages
    27 381
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2005
    Messages : 27 381
    Points : 41 582
    Points
    41 582
    Par défaut
    J'ai l'impression que tu as deux fichiers, InterbaseManager.h et InterbaseManagerM.hpp, et que tu passe ton temps à confondre les deux.

  18. #18
    Débutant
    Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2008
    Messages
    1 022
    Détails du profil
    Informations personnelles :
    Localisation : France, Mayenne (Pays de la Loire)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Décembre 2008
    Messages : 1 022
    Points : 332
    Points
    332
    Par défaut La solution
    il y a un seul fichier InterbaseManagerM.cpp
    il compile maintenant.Je ne sais pas pourquoi. J'ai du retirer un scorie

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Utiliser une méthode non-static dans une autre classe?
    Par trexiic dans le forum Débuter avec Java
    Réponses: 6
    Dernier message: 30/09/2015, 18h37
  2. Redéfinir une méthode static dans une classe dérivée
    Par michelp3 dans le forum Général Java
    Réponses: 5
    Dernier message: 06/05/2015, 22h28
  3. variable Static dans une classe
    Par cubitus91 dans le forum Delphi
    Réponses: 3
    Dernier message: 29/11/2006, 00h07
  4. fonction static dans une class
    Par Stany dans le forum C++
    Réponses: 3
    Dernier message: 16/06/2006, 14h43
  5. [C++] Pb avec les variable static dans les classe
    Par quantik-revolution dans le forum C++
    Réponses: 3
    Dernier message: 03/03/2006, 18h40

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo