Hallo
ich bin gerade bei Aufgabe 3 vom Kapitel 1.
hier mal mein script...
|
C-/C++-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
tbInit();
tbVFile* pFile1 = new tbVFile;
if(pFile1->Init(zip))
{
std::cout<<"Fehler! Bitte Beenden sie das Programm!";
}
else
{
tbVFile::SaveToFile(filename);
}
TB_SAFE_DELETE(pFile1);
tbExit();
};
|
das ist jetzt nur das ende zuvor wird der user noch aufgefordert die nötogen daten einzugeben...
und nun sagt er mit immer:
|
C-/C++-Quelltext
|
1
2
|
c:\dokumente und einstellungen\philipp reitter\eigene dateien\visual studio 2005\c++\my programms\kapitel1\aufgabe 2\aufgabe 2\main.cpp(31) : error C2352: 'tbVFile::SaveToFile' : illegal call of non-static member function
1> c:\dokumente und einstellungen\philipp reitter\eigene dateien\visual studio 2005\c++\tribase\include\tbvfile.h(55) : see declaration of 'tbVFile::SaveToFile'
|
hab keine ahnung woher das kommt obwoh ich mich wundere dass man bei tbVFile:
aveToFile(); nur eine variable braucht!
kann mir da jemand weiterhelfen
danke mal im voraus (mit einem r)
Mfg Philipp