Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2574 connectés 

  FORUM HardWare.fr
  Programmation
  C++

  instanciation de classe impossible c++/cli

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

instanciation de classe impossible c++/cli

n°1826470
Wimy
Posté le 13-12-2008 à 14:49:35  profilanswer
 

Bonjour,
Je développe une application c++/cli via l'outil visual c++, auquel je ne suis pas très habituée. Et là je suis bloquée à une erreur que je comprends pas trop, et j'ai déjà presque tout tester mais rien n'y fais. Bref, j'ai deux class : Form1 et Matrice, qui ont le même namespace, le problème c'est que je n'arrive pas à accéder à la classe Matrice depuis From1, (les deux classes chacune dans un fichier).
 
Form1.h:

Code :
  1. #pragma once
  2. #include <string>
  3. using namespace System;
  4. using namespace System::ComponentModel;
  5. using namespace System::Collections;
  6. using namespace System::Windows::Forms;
  7. using namespace System::Data;
  8. using namespace System::Drawing;
  9. using namespace std;
  10. namespace Mon_Projet{
  11. public ref class Form1: public System::Windows::Forms::Form
  12. {
  13.  public:
  14.   Form1(void)
  15.   {
  16.    InitializeComponent();
  17.    //
  18.    //TODO : ajoutez ici le code du constructeur
  19.    //
  20.   }
  21.  protected:
  22.   /// <summary>
  23.   /// Nettoyage des ressources utilisées.
  24.   /// </summary>
  25.   ~Form1()
  26.   {
  27.    if (components)
  28.    {
  29.     delete components;
  30.    }
  31.   }
  32.  private: System::Windows::Forms::Label^  label1;
  33.  private: System::Windows::Forms::Panel^  panel1;
  34.  private: System::Windows::Forms::Panel^  pan_sett;
  35.  private: System::Windows::Forms::Timer^  timer1;
  36. private: System::Windows::Forms::Button^  button2;
  37. private: System::Windows::Forms::Button^  button1;
  38. private: System::Windows::Forms::Panel^  panel2;
  39. private: System::Windows::Forms::Button^  button3;
  40. private: System::Windows::Forms::Button^  button8;
  41. private: System::Windows::Forms::Button^  button7;
  42. private: System::Windows::Forms::Button^  button6;
  43. private: System::Windows::Forms::Button^  button5;
  44. private: System::Windows::Forms::Button^  button4;
  45. private: System::Windows::Forms::Button^  button12;
  46. private: System::Windows::Forms::Button^  button11;
  47. private: System::Windows::Forms::Button^  button10;
  48. private: System::Windows::Forms::Button^  button9;
  49. private: System::Windows::Forms::Label^  label2;
  50. private: System::Windows::Forms::Label^  label4;
  51. private: System::Windows::Forms::Label^  label3;
  52. private: System::Windows::Forms::Label^  label6;
  53. private: System::Windows::Forms::Label^  label8;
  54. private: System::Windows::Forms::Label^  label7;
  55. private: System::Windows::Forms::Label^  label5;
  56. private: System::Windows::Forms::Button^  button14;
  57. private: System::Windows::Forms::Button^  button13;
  58. private: System::Windows::Forms::Button^  button15;
  59. private: System::ComponentModel::IContainer^  components;
  60.  protected:
  61.  private:
  62.   /// <summary>
  63.   /// Variable nécessaire au concepteur.
  64.   /// </summary>
  65. #pragma region Windows Form Designer generated code...
  66.         #pragma endregion
  67.        
  68.          System::Void deplace(){
  69.                Matrice m;   //Erreur !
  70.          }
  71.     };
  72. }


 
Form1.cpp :
 

Code :
  1. #include "StdAfx.h"
  2. #include "Form1.h"


 
 
Matrice.cpp:

Code :
  1. #pragma once
  2. #include "StdAfx.h"
  3. #include "Matrice.h"
  4. namespace MonProjet{
  5. public class Matrice{
  6.   static char mat[4][5];
  7.                         ....
  8.         };


 
 
Et merci. :jap:
 

mood
Publicité
Posté le 13-12-2008 à 14:49:35  profilanswer
 

n°1826491
Taz
bisounours-codeur
Posté le 13-12-2008 à 16:33:53  profilanswer
 

MonProjet::Matrice

n°1826494
Wimy
Posté le 13-12-2008 à 16:52:22  profilanswer
 

Slt, merci pour votre réponse mais ça marche toujours pas, voici les erreurs que me relève le compilateur :
 
------ Début de la génération : Projet : MonProjet, Configuration : Debug Win32 ------
Compilation en cours...
Form1.cpp
error C2871: 'MonProjet' : un espace de noms avec ce nom n'existe pas
error C2039: 'Matrice' : n'est pas membre de 'MonProjet'
error C2065: 'Matrice' : identificateur non déclaré
error C2146: erreur de syntaxe : absence de ';' avant l'identificateur 'm'
error C2065: 'm' : identificateur non déclaré

n°1826507
Wimy
Posté le 13-12-2008 à 17:31:44  profilanswer
 

Est ce que quelqu'un pourrait me corriger ça SVP !!  :??:  
 
J'ai créé un petit projet très basique, qui contient deux Forms, et j'ai commenté là où j'obtiens l'erreur (sur le Form2).
 
http://rapidshare.com/files/173021 [...] t.rar.html
 
Merci d'avance.

n°1826687
Wimy
Posté le 14-12-2008 à 00:43:41  profilanswer
 

Merci de m'avoir répondu.  
Je tiens à préciser que je débute en c++, et que j'ai déjà essayé ce que vous me proposez, c'est pour cette raison que j'ai poster mon application en pièce jointe, car je pense que le problème vient peut être de la manière par laquelle j'ai instancié mon objet.
 
Si quelqu'un a une autre soluce à me proposer je suis prenante. :jap:

n°1826718
Taz
bisounours-codeur
Posté le 14-12-2008 à 10:42:34  profilanswer
 

Commence déjà par faire un programme beaucoup plus simple avec 3 fichiers, ensuite tu pourra y balancer des tes interfaces graphiques

n°1826848
Wimy
Posté le 14-12-2008 à 15:43:19  profilanswer
 

Au fait mon problème venait d'une inclusion infinie que j'ai loupé.
 
Et Taz on parle pas pour ne rien dire, t'as même pas pris la peine de vérifier pour comprendre.

n°1826870
Taz
bisounours-codeur
Posté le 14-12-2008 à 16:18:52  profilanswer
 

Euh je m'en cogne de ton C++ .Net. T'arrives pas à compiler un projet en 2/3 fichiers, c'est pas la peine de nous balancer du #   private: System::Windows::Forms::Label^  label1;
#  private: System::Windows::Forms::Panel^  panel1;
#  private: System::Windows::Forms::Panel^  pan_sett;
#
#  private: System::Windows::Forms::Timer^  timer1;
# private: System::Windows::Forms::Button^  button2;
# private: System::Windows::Forms::Button^  button1;
# private: System::Windows::Forms::Panel^  panel2;
# private: System::Windows::Forms::Button^  button3;
# private: System::Windows::Forms::Button^  button8;
# private: System::Windows::Forms::Button^  button7;
# private: System::Windows::Forms::Button^  button6;
# private: System::Windows::Forms::Button^  button5;
# private: System::Windows::Forms::Button^  button4;
# private: System::Windows::Forms::Button^  button12;
# private: System::Windows::Forms::Button^  button11;
# private: System::Windows::Forms::Button^  button10;
# private: System::Windows::Forms::Button^  button9;
# private: System::Windows::Forms::Label^  label2;
# private: System::Windows::Forms::Label^  label4;
# private: System::Windows::Forms::Label^  label3;
#
#
# private: System::Windows::Forms::Label^  label6;
# private: System::Windows::Forms::Label^  label8;
# private: System::Windows::Forms::Label^  label7;
#
#
#
#
#
#
#
# private: System::Windows::Forms::Label^  label5;
# private: System::Windows::Forms::Button^  button14;
# private: System::Windows::Forms::Button^  button13;
# private: System::Windows::Forms::Button^  button15;
#
# private: System::ComponentModel::IContainer^  components;
#  protected:
#   private: System::Windows::Forms::Label^  label1;
#  private: System::Windows::Forms::Panel^  panel1;
#  private: System::Windows::Forms::Panel^  pan_sett;
#
#  private: System::Windows::Forms::Timer^  timer1;
# private: System::Windows::Forms::Button^  button2;
# private: System::Windows::Forms::Button^  button1;
# private: System::Windows::Forms::Panel^  panel2;
# private: System::Windows::Forms::Button^  button3;
# private: System::Windows::Forms::Button^  button8;
# private: System::Windows::Forms::Button^  button7;
# private: System::Windows::Forms::Button^  button6;
# private: System::Windows::Forms::Button^  button5;
# private: System::Windows::Forms::Button^  button4;
# private: System::Windows::Forms::Button^  button12;
# private: System::Windows::Forms::Button^  button11;
# private: System::Windows::Forms::Button^  button10;
# private: System::Windows::Forms::Button^  button9;
# private: System::Windows::Forms::Label^  label2;
# private: System::Windows::Forms::Label^  label4;
# private: System::Windows::Forms::Label^  label3;
#
#
# private: System::Windows::Forms::Label^  label6;
# private: System::Windows::Forms::Label^  label8;
# private: System::Windows::Forms::Label^  label7;
#
#
#
#
#
#
#
# private: System::Windows::Forms::Label^  label5;
# private: System::Windows::Forms::Button^  button14;
# private: System::Windows::Forms::Button^  button13;
# private: System::Windows::Forms::Button^  button15;
#
# private: System::ComponentModel::IContainer^  components;
#  protected:
#   private: System::Windows::Forms::Label^  label1;
#  private: System::Windows::Forms::Panel^  panel1;
#  private: System::Windows::Forms::Panel^  pan_sett;
#
#  private: System::Windows::Forms::Timer^  timer1;
# private: System::Windows::Forms::Button^  button2;
# private: System::Windows::Forms::Button^  button1;
# private: System::Windows::Forms::Panel^  panel2;
# private: System::Windows::Forms::Button^  button3;
# private: System::Windows::Forms::Button^  button8;
# private: System::Windows::Forms::Button^  button7;
# private: System::Windows::Forms::Button^  button6;
# private: System::Windows::Forms::Button^  button5;
# private: System::Windows::Forms::Button^  button4;
# private: System::Windows::Forms::Button^  button12;
# private: System::Windows::Forms::Button^  button11;
# private: System::Windows::Forms::Button^  button10;
# private: System::Windows::Forms::Button^  button9;
# private: System::Windows::Forms::Label^  label2;
# private: System::Windows::Forms::Label^  label4;
# private: System::Windows::Forms::Label^  label3;
#
#
# private: System::Windows::Forms::Label^  label6;
# private: System::Windows::Forms::Label^  label8;
# private: System::Windows::Forms::Label^  label7;
#
#
#
#
#
#
#
# private: System::Windows::Forms::Label^  label5;
# private: System::Windows::Forms::Button^  button14;
# private: System::Windows::Forms::Button^  button13;
# private: System::Windows::Forms::Button^  button15;
#
# private: System::ComponentModel::IContainer^  components;
#  protected:
#   private: System::Windows::Forms::Label^  label1;
#  private: System::Windows::Forms::Panel^  panel1;
#  private: System::Windows::Forms::Panel^  pan_sett;
#
#  private: System::Windows::Forms::Timer^  timer1;
# private: System::Windows::Forms::Button^  button2;
# private: System::Windows::Forms::Button^  button1;
# private: System::Windows::Forms::Panel^  panel2;
# private: System::Windows::Forms::Button^  button3;
# private: System::Windows::Forms::Button^  button8;
# private: System::Windows::Forms::Button^  button7;
# private: System::Windows::Forms::Button^  button6;
# private: System::Windows::Forms::Button^  button5;
# private: System::Windows::Forms::Button^  button4;
# private: System::Windows::Forms::Button^  button12;
# private: System::Windows::Forms::Button^  button11;
# private: System::Windows::Forms::Button^  button10;
# private: System::Windows::Forms::Button^  button9;
# private: System::Windows::Forms::Label^  label2;
# private: System::Windows::Forms::Label^  label4;
# private: System::Windows::Forms::Label^  label3;
#
#
# private: System::Windows::Forms::Label^  label6;
# private: System::Windows::Forms::Label^  label8;
# private: System::Windows::Forms::Label^  label7;
#
#
#
#
#
#
#
# private: System::Windows::Forms::Label^  label5;
# private: System::Windows::Forms::Button^  button14;
# private: System::Windows::Forms::Button^  button13;
# private: System::Windows::Forms::Button^  button15;
#
# private: System::ComponentModel::IContainer^  components;
#  protected:
#   private: System::Windows::Forms::Label^  label1;
#  private: System::Windows::Forms::Panel^  panel1;
#  private: System::Windows::Forms::Panel^  pan_sett;
#
#  private: System::Windows::Forms::Timer^  timer1;
# private: System::Windows::Forms::Button^  button2;
# private: System::Windows::Forms::Button^  button1;
# private: System::Windows::Forms::Panel^  panel2;
# private: System::Windows::Forms::Button^  button3;
# private: System::Windows::Forms::Button^  button8;
# private: System::Windows::Forms::Button^  button7;
# private: System::Windows::Forms::Button^  button6;
# private: System::Windows::Forms::Button^  button5;
# private: System::Windows::Forms::Button^  button4;
# private: System::Windows::Forms::Button^  button12;
# private: System::Windows::Forms::Button^  button11;
# private: System::Windows::Forms::Button^  button10;
# private: System::Windows::Forms::Button^  button9;
# private: System::Windows::Forms::Label^  label2;
# private: System::Windows::Forms::Label^  label4;
# private: System::Windows::Forms::Label^  label3;
#
#
# private: System::Windows::Forms::Label^  label6;
# private: System::Windows::Forms::Label^  label8;
# private: System::Windows::Forms::Label^  label7;
#
#
#
#
#
#
#
# private: System::Windows::Forms::Label^  label5;
# private: System::Windows::Forms::Button^  button14;
# private: System::Windows::Forms::Button^  button13;
# private: System::Windows::Forms::Button^  button15;
#
# private: System::ComponentModel::IContainer^  components;
#  protected:
#   private: System::Windows::Forms::Label^  label1;
#  private: System::Windows::Forms::Panel^  panel1;
#  private: System::Windows::Forms::Panel^  pan_sett;
#
#  private: System::Windows::Forms::Timer^  timer1;
# private: System::Windows::Forms::Button^  button2;
# private: System::Windows::Forms::Button^  button1;
# private: System::Windows::Forms::Panel^  panel2;
# private: System::Windows::Forms::Button^  button3;
# private: System::Windows::Forms::Button^  button8;
# private: System::Windows::Forms::Button^  button7;
# private: System::Windows::Forms::Button^  button6;
# private: System::Windows::Forms::Button^  button5;
# private: System::Windows::Forms::Button^  button4;
# private: System::Windows::Forms::Button^  button12;
# private: System::Windows::Forms::Button^  button11;
# private: System::Windows::Forms::Button^  button10;
# private: System::Windows::Forms::Button^  button9;
# private: System::Windows::Forms::Label^  label2;
# private: System::Windows::Forms::Label^  label4;
# private: System::Windows::Forms::Label^  label3;
#
#
# private: System::Windows::Forms::Label^  label6;
# private: System::Windows::Forms::Label^  label8;
# private: System::Windows::Forms::Label^  label7;
#
#
#
#
#
#
#
# private: System::Windows::Forms::Label^  label5;
# private: System::Windows::Forms::Button^  button14;
# private: System::Windows::Forms::Button^  button13;
# private: System::Windows::Forms::Button^  button15;
#
# private: System::ComponentModel::IContainer^  components;
#  protected:
#   private: System::Windows::Forms::Label^  label1;
#  private: System::Windows::Forms::Panel^  panel1;
#  private: System::Windows::Forms::Panel^  pan_sett;
#
#  private: System::Windows::Forms::Timer^  timer1;
# private: System::Windows::Forms::Button^  button2;
# private: System::Windows::Forms::Button^  button1;
# private: System::Windows::Forms::Panel^  panel2;
# private: System::Windows::Forms::Button^  button3;
# private: System::Windows::Forms::Button^  button8;
# private: System::Windows::Forms::Button^  button7;
# private: System::Windows::Forms::Button^  button6;
# private: System::Windows::Forms::Button^  button5;
# private: System::Windows::Forms::Button^  button4;
# private: System::Windows::Forms::Button^  button12;
# private: System::Windows::Forms::Button^  button11;
# private: System::Windows::Forms::Button^  button10;
# private: System::Windows::Forms::Button^  button9;
# private: System::Windows::Forms::Label^  label2;
# private: System::Windows::Forms::Label^  label4;
# private: System::Windows::Forms::Label^  label3;
#
#
# private: System::Windows::Forms::Label^  label6;
# private: System::Windows::Forms::Label^  label8;
# private: System::Windows::Forms::Label^  label7;
#
#
#
#
#
#
#
# private: System::Windows::Forms::Label^  label5;
# private: System::Windows::Forms::Button^  button14;
# private: System::Windows::Forms::Button^  button13;
# private: System::Windows::Forms::Button^  button15;
#
# private: System::ComponentModel::IContainer^  components;
#  protected:
#   private: System::Windows::Forms::Label^  label1;
#  private: System::Windows::Forms::Panel^  panel1;
#  private: System::Windows::Forms::Panel^  pan_sett;
#
#  private: System::Windows::Forms::Timer^  timer1;
# private: System::Windows::Forms::Button^  button2;
# private: System::Windows::Forms::Button^  button1;
# private: System::Windows::Forms::Panel^  panel2;
# private: System::Windows::Forms::Button^  button3;
# private: System::Windows::Forms::Button^  button8;
# private: System::Windows::Forms::Button^  button7;
# private: System::Windows::Forms::Button^  button6;
# private: System::Windows::Forms::Button^  button5;
# private: System::Windows::Forms::Button^  button4;
# private: System::Windows::Forms::Button^  button12;
# private: System::Windows::Forms::Button^  button11;
# private: System::Windows::Forms::Button^  button10;
# private: System::Windows::Forms::Button^  button9;
# private: System::Windows::Forms::Label^  label2;
# private: System::Windows::Forms::Label^  label4;
# private: System::Windows::Forms::Label^  label3;
#
#
# private: System::Windows::Forms::Label^  label6;
# private: System::Windows::Forms::Label^  label8;
# private: System::Windows::Forms::Label^  label7;
#
#
#
#
#
#
#
# private: System::Windows::Forms::Label^  label5;
# private: System::Windows::Forms::Button^  button14;
# private: System::Windows::Forms::Button^  button13;
# private: System::Windows::Forms::Button^  button15;
#
# private: System::ComponentModel::IContainer^  components;
#  protected:
#   private: System::Windows::Forms::Label^  label1;
#  private: System::Windows::Forms::Panel^  panel1;
#  private: System::Windows::Forms::Panel^  pan_sett;
#
#  private: System::Windows::Forms::Timer^  timer1;
# private: System::Windows::Forms::Button^  button2;
# private: System::Windows::Forms::Button^  button1;
# private: System::Windows::Forms::Panel^  panel2;
# private: System::Windows::Forms::Button^  button3;
# private: System::Windows::Forms::Button^  button8;
# private: System::Windows::Forms::Button^  button7;
# private: System::Windows::Forms::Button^  button6;
# private: System::Windows::Forms::Button^  button5;
# private: System::Windows::Forms::Button^  button4;
# private: System::Windows::Forms::Button^  button12;
# private: System::Windows::Forms::Button^  button11;
# private: System::Windows::Forms::Button^  button10;
# private: System::Windows::Forms::Button^  button9;
# private: System::Windows::Forms::Label^  label2;
# private: System::Windows::Forms::Label^  label4;
# private: System::Windows::Forms::Label^  label3;
#
#
# private: System::Windows::Forms::Label^  label6;
# private: System::Windows::Forms::Label^  label8;
# private: System::Windows::Forms::Label^  label7;
#
#
#
#
#
#
#
# private: System::Windows::Forms::Label^  label5;
# private: System::Windows::Forms::Button^  button14;
# private: System::Windows::Forms::Button^  button13;
# private: System::Windows::Forms::Button^  button15;
#
# private: System::ComponentModel::IContainer^  components;
#  protected:
#   private: System::Windows::Forms::Label^  label1;
#  private: System::Windows::Forms::Panel^  panel1;
#  private: System::Windows::Forms::Panel^  pan_sett;
#
#  private: System::Windows::Forms::Timer^  timer1;
# private: System::Windows::Forms::Button^  button2;
# private: System::Windows::Forms::Button^  button1;
# private: System::Windows::Forms::Panel^  panel2;
# private: System::Windows::Forms::Button^  button3;
# private: System::Windows::Forms::Button^  button8;
# private: System::Windows::Forms::Button^  button7;
# private: System::Windows::Forms::Button^  button6;
# private: System::Windows::Forms::Button^  button5;
# private: System::Windows::Forms::Button^  button4;
# private: System::Windows::Forms::Button^  button12;
# private: System::Windows::Forms::Button^  button11;
# private: System::Windows::Forms::Button^  button10;
# private: System::Windows::Forms::Button^  button9;
# private: System::Windows::Forms::Label^  label2;
# private: System::Windows::Forms::Label^  label4;
# private: System::Windows::Forms::Label^  label3;
#
#
# private: System::Windows::Forms::Label^  label6;
# private: System::Windows::Forms::Label^  label8;
# private: System::Windows::Forms::Label^  label7;
#
#
#
#
#
#
#
# private: System::Windows::Forms::Label^  label5;
# private: System::Windows::Forms::Button^  button14;
# private: System::Windows::Forms::Button^  button13;
# private: System::Windows::Forms::Button^  button15;
#
# private: System::ComponentModel::IContainer^  components;
#  protected:
#   private: System::Windows::Forms::Label^  label1;
#  private: System::Windows::Forms::Panel^  panel1;
#  private: System::Windows::Forms::Panel^  pan_sett;
#
#  private: System::Windows::Forms::Timer^  timer1;
# private: System::Windows::Forms::Button^  button2;
# private: System::Windows::Forms::Button^  button1;
# private: System::Windows::Forms::Panel^  panel2;
# private: System::Windows::Forms::Button^  button3;
# private: System::Windows::Forms::Button^  button8;
# private: System::Windows::Forms::Button^  button7;
# private: System::Windows::Forms::Button^  button6;
# private: System::Windows::Forms::Button^  button5;
# private: System::Windows::Forms::Button^  button4;
# private: System::Windows::Forms::Button^  button12;
# private: System::Windows::Forms::Button^  button11;
# private: System::Windows::Forms::Button^  button10;
# private: System::Windows::Forms::Button^  button9;
# private: System::Windows::Forms::Label^  label2;
# private: System::Windows::Forms::Label^  label4;
# private: System::Windows::Forms::Label^  label3;
#
#
# private: System::Windows::Forms::Label^  label6;
# private: System::Windows::Forms::Label^  label8;
# private: System::Windows::Forms::Label^  label7;
#
#
#
#
#
#
#
# private: System::Windows::Forms::Label^  label5;
# private: System::Windows::Forms::Button^  button14;
# private: System::Windows::Forms::Button^  button13;
# private: System::Windows::Forms::Button^  button15;
#
# private: System::ComponentModel::IContainer^  components;
#  protected:
#   private: System::Windows::Forms::Label^  label1;
#  private: System::Windows::Forms::Panel^  panel1;
#  private: System::Windows::Forms::Panel^  pan_sett;
#
#  private: System::Windows::Forms::Timer^  timer1;
# private: System::Windows::Forms::Button^  button2;
# private: System::Windows::Forms::Button^  button1;
# private: System::Windows::Forms::Panel^  panel2;
# private: System::Windows::Forms::Button^  button3;
# private: System::Windows::Forms::Button^  button8;
# private: System::Windows::Forms::Button^  button7;
# private: System::Windows::Forms::Button^  button6;
# private: System::Windows::Forms::Button^  button5;
# private: System::Windows::Forms::Button^  button4;
# private: System::Windows::Forms::Button^  button12;
# private: System::Windows::Forms::Button^  button11;
# private: System::Windows::Forms::Button^  button10;
# private: System::Windows::Forms::Button^  button9;
# private: System::Windows::Forms::Label^  label2;
# private: System::Windows::Forms::Label^  label4;
# private: System::Windows::Forms::Label^  label3;
#
#
# private: System::Windows::Forms::Label^  label6;
# private: System::Windows::Forms::Label^  label8;
# private: System::Windows::Forms::Label^  label7;
#
#
#
#
#
#
#
# private: System::Windows::Forms::Label^  label5;
# private: System::Windows::Forms::Button^  button14;
# private: System::Windows::Forms::Button^  button13;
# private: System::Windows::Forms::Button^  button15;
#
# private: System::ComponentModel::IContainer^  components;
#  protected:
 
 
 
ça change rien au problème.

n°1826903
Wimy
Posté le 14-12-2008 à 17:31:29  profilanswer
 

Il n'y a aucune honte à être débutant. Mais ce qui est bien ennuyeux c'est de trouver des gens qui se prennent pour des programmeurs nés.  
 
D'ailleurs si je suis ici c'est pour avoir de l'aide et non pas pour me faire chambouler avec des interventions qui servent à rien.
 
Sujet clos.

n°1826905
verdoux
And I'm still waiting
Posté le 14-12-2008 à 17:43:55  profilanswer
 

Le choix du C++/CLI est quand même surprenant pour un débutant parce que c'est quand même un environnement chimérique complexe.  
Le C# aurait été un choix plus pertinent.


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  C++

  instanciation de classe impossible c++/cli

 

Sujets relatifs
Diagramme de classeGénération de classe CS à partir d'un XSD
Déclaration de classe[java] classe abstraire, constructeur sans argument
Problème mise à jour modèle impossible Dreamweaver[Résolu] Impossible d'exécuter les migrations MySQL
Etendre une classe pour en faire un singleton[Javascript] - IE6 : Impossible d'activer le contrôle
inserer une classe dans du code php[AS3] Error #1009: Il est impossible d'accéder à la propriété ou à...
Plus de sujets relatifs à : instanciation de classe impossible c++/cli


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR