Bonjour,

Je suis en train de compiler un projet en visual c++,et quand je l'ai compilé voila l'erreur qui m'a donné:

error C2065: 'i'*: identificateur non déclaré
et voila le code source:

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
 void CDWGUI::PrepareData(char *sDir) // destination temp directory, terminate with "\\"
{
	//- copy source to temp dir in preparing CDWrite
	char sSrc[MAX_PATH],sDest[MAX_PATH],s[70],sName[64],*ps;
	mNbSource = GetPrivateProfileInt("CDWrite","SourceNb",0,gIniFile);
	for (int i=0;i<mNbSource;i++) { //- copy data to temp dir
		sprintf(s,"DataSource%d",i);
		if(GetPrivateProfileString(s,"Source","",sSrc,MAX_PATH,gIniFile)) {
			//sprintf(s,"DestName%d",i);
			if (!GetPrivateProfileString(s,"DestName","",sName,34,gIniFile))
			{ // if dest name doesn't exist, extract it from the source path
				ps=strrchr(sSrc,'\\'); //- get the short path name
				if (ps) ps++;
				else ps = sSrc;
			} else ps = sName;
			sprintf(sDest,"%s%s",sDir,ps);
			CopyDir(sDest,sSrc);
		}		
	}
	//- add the directory to the cd write buffer
	CString oDest= "\\FLASHPRINT\\DATA\\";
	CString oSrc = sDir;
	oSrc += "*.*";
	i = mCdw.CloneDirectoryToISO(oDest,oSrc);
 
	//d23-- enumerate the parent destination dir
	UpdateImage(); // mCdw.EnumerateISOItems("\\FLASHPRINT\\");
}
 
//-- prepare viewer FlashPrint related directory
Ou est l'erreur dans ce code?

Et merci pour vos réponse.