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
    Membre extr�mement actif
    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
    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 confirm�
    Homme Profil pro
    Ing�nieur d�veloppement mat�riel �lectronique
    Inscrit en
    D�cembre 2015
    Messages
    1 599
    D�tails du profil
    Informations personnelles :
    Sexe : Homme
    �ge : 62
    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 599
    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
    Membre extr�mement actif
    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
    Par d�faut J'ai suivi votre conseil
    J'ai suivi votre conseil mais �a n'a rien chang�

  4. #4
    Expert confirm�
    Homme Profil pro
    D�veloppeur informatique
    Inscrit en
    F�vrier 2005
    Messages
    5 503
    D�tails du profil
    Informations personnelles :
    Sexe : Homme
    �ge : 53
    Localisation : France, Val de Marne (�le de France)

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

    Informations forums :
    Inscription : F�vrier 2005
    Messages : 5 503
    Par d�faut
    Montrez vos modifications.

  5. #5
    Membre extr�mement actif
    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
    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 confirm�
    Homme Profil pro
    D�veloppeur informatique
    Inscrit en
    F�vrier 2005
    Messages
    5 503
    D�tails du profil
    Informations personnelles :
    Sexe : Homme
    �ge : 53
    Localisation : France, Val de Marne (�le de France)

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

    Informations forums :
    Inscription : F�vrier 2005
    Messages : 5 503
    Par d�faut
    Ok pour les d�clarations, mais les d�finitions et les messages d'erreurs ???

  7. #7
    Membre extr�mement actif
    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
    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
    Avatar de M�dinoc
    Homme Profil pro
    D�veloppeur informatique
    Inscrit en
    Septembre 2005
    Messages
    27 397
    D�tails du profil
    Informations personnelles :
    Sexe : Homme
    �ge : 41
    Localisation : France

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

    Informations forums :
    Inscription : Septembre 2005
    Messages : 27 397
    Par d�faut
    Plus quelques-uns des appels...
    SVP, pas de questions techniques par MP. Surtout si je ne vous ai jamais parl� avant.

    "Aw, come on, who would be so stupid as to insert a cast to make an error go away without actually fixing the error?"
    Apparently everyone.
    -- Raymond Chen.
    Traduction obligatoire: "Oh, voyons, qui serait assez stupide pour mettre un cast pour faire disparaitre un message d'erreur sans vraiment corriger l'erreur?" - Apparemment, tout le monde. -- Raymond Chen.

  9. #9
    Membre extr�mement actif
    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
    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 confirm�
    Homme Profil pro
    D�veloppeur informatique
    Inscrit en
    F�vrier 2005
    Messages
    5 503
    D�tails du profil
    Informations personnelles :
    Sexe : Homme
    �ge : 53
    Localisation : France, Val de Marne (�le de France)

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

    Informations forums :
    Inscription : F�vrier 2005
    Messages : 5 503
    Par d�faut
    Ok pour les d�clarations, mais les d�finitions et les messages d'erreurs ??? (BIS)

  11. #11
    Membre extr�mement actif
    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
    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 confirm�
    Homme Profil pro
    Ing�nieur d�veloppement mat�riel �lectronique
    Inscrit en
    D�cembre 2015
    Messages
    1 599
    D�tails du profil
    Informations personnelles :
    Sexe : Homme
    �ge : 62
    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 599
    Par d�faut
    Une id�e me viens,

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

  13. #13
    Membre extr�mement actif
    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
    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
    Avatar de M�dinoc
    Homme Profil pro
    D�veloppeur informatique
    Inscrit en
    Septembre 2005
    Messages
    27 397
    D�tails du profil
    Informations personnelles :
    Sexe : Homme
    �ge : 41
    Localisation : France

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

    Informations forums :
    Inscription : Septembre 2005
    Messages : 27 397
    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 {...
    SVP, pas de questions techniques par MP. Surtout si je ne vous ai jamais parl� avant.

    "Aw, come on, who would be so stupid as to insert a cast to make an error go away without actually fixing the error?"
    Apparently everyone.
    -- Raymond Chen.
    Traduction obligatoire: "Oh, voyons, qui serait assez stupide pour mettre un cast pour faire disparaitre un message d'erreur sans vraiment corriger l'erreur?" - Apparemment, tout le monde. -- Raymond Chen.

  15. #15
    Membre extr�mement actif
    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
    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
    Membre extr�mement actif
    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
    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
    Avatar de M�dinoc
    Homme Profil pro
    D�veloppeur informatique
    Inscrit en
    Septembre 2005
    Messages
    27 397
    D�tails du profil
    Informations personnelles :
    Sexe : Homme
    �ge : 41
    Localisation : France

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

    Informations forums :
    Inscription : Septembre 2005
    Messages : 27 397
    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.
    SVP, pas de questions techniques par MP. Surtout si je ne vous ai jamais parl� avant.

    "Aw, come on, who would be so stupid as to insert a cast to make an error go away without actually fixing the error?"
    Apparently everyone.
    -- Raymond Chen.
    Traduction obligatoire: "Oh, voyons, qui serait assez stupide pour mettre un cast pour faire disparaitre un message d'erreur sans vraiment corriger l'erreur?" - Apparemment, tout le monde. -- Raymond Chen.

  18. #18
    Membre extr�mement actif
    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
    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