voilà mon petit bout de code et je pige pas ce qui ne marche pas :
si je mets un point d'arret à "return 0;", dans le watch de visual, on a :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 int main(int argc, char *argv[]) { CConfig *pConfig = new CConfig(); CCgmObjects *ooj = new CCgmObjects(pConfig, NULL); std::string inFile_str("allelm01.cgm"); int error = ooj->LoadFile(inFile_str, 1, "."); long a_long = ooj->m_metafileVersion; return 0; }
a_long = 1619568
ooj->m_metafileVersion = 1
pourquoi?
(dans d'autres projets ça fonctionne bien pourtant)
Partager