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

MFC Discussion :

[MFC] prbleme de portabilite


Sujet :

MFC

  1. #21
    Rédacteur
    Avatar de farscape
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2003
    Messages
    9 055
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

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

    Informations forums :
    Inscription : Novembre 2003
    Messages : 9 055
    Par défaut
    Citation Envoyé par k_boy Voir le message
    oui,je vien de le generer et j'ai ajouter les fichier source du projet SV2005.
    et ça fonctionne maintenant ?

  2. #22
    Membre éclairé
    Inscrit en
    Avril 2002
    Messages
    643
    Détails du profil
    Informations forums :
    Inscription : Avril 2002
    Messages : 643
    Par défaut
    non,toujours le même message d'erreur.

  3. #23
    Membre éclairé
    Inscrit en
    Avril 2002
    Messages
    643
    Détails du profil
    Informations forums :
    Inscription : Avril 2002
    Messages : 643
    Par défaut
    j'ai pus resoudre le probleme en créant un nouveau projet en VS2003 avec le même nom du project en VS2005 ,j'ai supprimer tout les fichier generer lors de la creation du nouveau projet ,j'ai copier les source du VS2005 dans le repertoire de nouveau projet VS2003.
    puis je suis aller à l'esplorateur de solution et j'ai importer les fihiers sources et les headers.

  4. #24
    Membre extrêmement actif
    Avatar de randriano
    Homme Profil pro
    Inscrit en
    Janvier 2007
    Messages
    1 221
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Madagascar

    Informations forums :
    Inscription : Janvier 2007
    Messages : 1 221
    Par défaut Apparition d'un autre problème de portabilité 2005 vers 2003
    Bonsoir !!

    Mon truc était supprimer d'abord la solution (.sln) puis modifier une ligne dans le .vcproj comme suit : Version="8,00" en Version="7,00"
    Et ben, ça marche toujours, la conversion se fait très bien.
    Mais ça ne marche pour le projet que je travaille actuellement alors que ça a marché avant pour toutes les applications consoles et MFC (mais basiques quand même). Le problème est connu lors du build (F7) et les erreurs sont bizarres !!!
    Par ex, ici, le compilateur dit que "olListFigures" de la ligne "CRect rct = pView->GetDocument()->olListFigures.GetTail()->oPosition;" et d'autres erreurs de ce genre alors que ça existe bel et bien, les #include sont complets et lorsqu'on saisit un point ou un -> après cette instance, la liste des membres apparaît donc c'est correct
    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
    void CCondition::drawFig(CDC* pDC, CProgTreeView* pView, CPoint _pDepth)
    {
    	//we're taking 10 as font width
    	CRect rect;
    	if (this->getContent().GetLength() > 2)
    	{
    		int iTmpSize = 10 * this->getContent().GetLength();
    		rect.SetRect(_pDepth.x - (iTmpSize / 2) , _pDepth.y, _pDepth.x + (iTmpSize / 2), _pDepth.y + 80);
    	}
    	else
    		rect.SetRect(_pDepth.x - 10 , _pDepth.y, _pDepth.x + 10, _pDepth.y + 80);
    	CFigLozenge* pLoz = new CFigLozenge(rect);
    	pLoz->setText(this->getContent());
    	pLoz->Draw(pDC);
    	//pLoz->putDrawer(pDC,CFigure::selected);
    	pLoz->pCondition = this;
    	CFigure* pFig = pLoz;
    	pView->GetDocument()->Add(pFig);
    	CRect rct = pView->GetDocument()->olListFigures.GetTail()->oPosition;
    	int  y = rct.bottom + 20;
    	CRect cltRect;
    	pView->GetClientRect(&cltRect);
    	if (getWithElse() == TRUE)
    	{
    		pDC->MoveTo(pLoz->oPosition.left,_pDepth.y + 40);
    		pDC->LineTo((cltRect.Width() / 4), _pDepth.y + 40);
    		pDC->LineTo((cltRect.Width() / 4), _pDepth.y + 100);
    		pDC->ExtTextOutA((cltRect.Width() / 4),_pDepth.y + 25, ETO_CLIPPED, NULL, _T("IF"), 2 , NULL);
    		//arrow
    		pDC->LineTo((cltRect.Width() / 4) - 7, _pDepth.y + 100 - 9);
    		pDC->MoveTo((cltRect.Width() / 4), _pDepth.y + 100);
    		pDC->LineTo((cltRect.Width() / 4) + 7, _pDepth.y + 100 - 9);
    		//
    		pDC->MoveTo(pLoz->oPosition.right,_pDepth.y + 40);
    		pDC->LineTo(3 * (cltRect.Width() / 4), _pDepth.y + 40);
    		pDC->LineTo(3 * (cltRect.Width() / 4), _pDepth.y + 100);
    		pDC->ExtTextOutA(3 * (cltRect.Width() / 4), _pDepth.y + 25, ETO_CLIPPED, NULL, _T("ELSE"), 4 , NULL);
    		//arrow
    		pDC->LineTo((3 * (cltRect.Width() / 4)) - 7, _pDepth.y + 100 - 9);
    		pDC->MoveTo(3 * (cltRect.Width() / 4), _pDepth.y + 100);
    		pDC->LineTo((3 * (cltRect.Width() / 4)) + 7, _pDepth.y + 100 - 9);
    		//
    		this->IfBlock.setKind(IF);
    		this->IfBlock.setRememberLozDim(pLoz->oPosition);
    		this->IfBlock.drawFig(pDC, pView, CPoint((cltRect.Width() / 4),y));
    		this->ElseBlock.setKind(ELSE);
    		this->ElseBlock.setRememberLozDim(pLoz->oPosition);
    		this->ElseBlock.iLastDownY = pView->GetDocument()->olListFigures.GetTail()->oPosition.top;
    		this->ElseBlock.iLastUpY = pView->GetDocument()->olListFigures.GetTail()->oPosition.bottom;
    		this->ElseBlock.drawFig(pDC,pView, CPoint((cltRect.Width() / 4) * 3,y));
    	}
    	else
    	{
    		pDC->MoveTo(cltRect.Width() / 2,rct.bottom);
    		pDC->LineTo((cltRect.Width() / 2),rct.bottom + 20);
    		pDC->ExtTextOutA((cltRect.Width() / 2) + 30, rct.bottom + 3, ETO_CLIPPED, NULL, _T("IF"), 2 , NULL);
    		//arrow
    		pDC->LineTo((cltRect.Width() / 2) - 7, rct.bottom + 20 - 9 );
    		pDC->MoveTo((cltRect.Width() / 2),rct.bottom + 20);
    		pDC->LineTo((cltRect.Width() / 2) + 7, rct.bottom + 20 - 9 );
    		this->IfBlock.setKind(IFWITHOUTELSE);
    		this->IfBlock.setRememberLozDim(pLoz->oPosition);
    		this->IfBlock.drawFig(pDC, pView, CPoint((cltRect.Width() / 2),y));
    	}
    }
    randriano.dvp.com
    Développeur. Product Owner [Agile]. Sites web, mobile apps, système d'information (SI).

+ Répondre à la discussion
Cette discussion est résolue.
Page 2 sur 2 PremièrePremière 12

Discussions similaires

  1. [MFC] portabilité visual C++ sous linux
    Par ricky78 dans le forum MFC
    Réponses: 5
    Dernier message: 25/10/2005, 18h19
  2. [MFC] Portabilité XP, 2000, 98
    Par Aradesh dans le forum MFC
    Réponses: 3
    Dernier message: 06/07/2005, 16h20
  3. utiliser les tag [MFC] [Win32] [.NET] [C++/CLI]
    Par hiko-seijuro dans le forum Visual C++
    Réponses: 8
    Dernier message: 08/06/2005, 16h57
  4. Réponses: 2
    Dernier message: 10/06/2002, 12h03
  5. [MFC] ADO connection
    Par philippe V dans le forum MFC
    Réponses: 3
    Dernier message: 10/06/2002, 08h36

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