Click here to Skip to main content
15,909,091 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Transparent bitmap (win32) Pin
Brian van der Beek9-Feb-02 11:48
Brian van der Beek9-Feb-02 11:48 
GeneralRe: Transparent bitmap (win32) Pin
Christian Graus9-Feb-02 17:29
protectorChristian Graus9-Feb-02 17:29 
GeneralRe: Transparent bitmap (win32) Pin
Brian van der Beek10-Feb-02 1:33
Brian van der Beek10-Feb-02 1:33 
Generalif(localPath[i] == "\\") Pin
Rickard Andersson209-Feb-02 0:20
Rickard Andersson209-Feb-02 0:20 
GeneralRe: if(localPath[i] == "\\") Pin
Christian Graus9-Feb-02 0:26
protectorChristian Graus9-Feb-02 0:26 
GeneralRe: if(localPath[i] == "\\") Pin
Rickard Andersson209-Feb-02 1:17
Rickard Andersson209-Feb-02 1:17 
GeneralRe: if(localPath[i] == "\\") Pin
Christian Graus9-Feb-02 1:28
protectorChristian Graus9-Feb-02 1:28 
GeneralRe: if(localPath[i] == "\\") Pin
Rickard Andersson209-Feb-02 2:08
Rickard Andersson209-Feb-02 2:08 
here is the code (it's not complete):

int GetFileName(char cPath, char* pFileName)
{
if(cPath == NULL)
{
::MessageBox(NULL,"cPath = NULL","Error",MB_OK);
return -1; // return error }

int len = strlen((char*)cPath);

char* localPath = new char[len];
strcpy(localPath,(char*)cPath);

int chars = 0;
for(int i=len; i>len; i--);
{
chars++;
if(localPath[i] == '\\')
{
char* filename = new char[chars+1];
i++;
for(int j=0; j<chars+1; j++)
{
strncpy(filename+j,(char*)localPath[j],1);
}

::MessageBox(NULL, filename,"filename",MB_OK);

delete [] filename;
}
}
delete [] localPath;

return 0;
}

------------------------------------
<b><I><B>Rickard Andersson</I></B></b>, Suza Computing
ICQ#: 50302279
I'm from the winter country SWEDEN!

------------------------------------
GeneralRe: if(localPath[i] == "\\") Pin
Rickard Andersson209-Feb-02 2:15
Rickard Andersson209-Feb-02 2:15 
GeneralRe: if(localPath[i] == "\\") Pin
Christian Graus9-Feb-02 2:33
protectorChristian Graus9-Feb-02 2:33 
GeneralRe: if(localPath[i] == "\\") Pin
Christian Graus9-Feb-02 2:45
protectorChristian Graus9-Feb-02 2:45 
GeneralRe: if(localPath[i] == "\\") Pin
Ernest Laurentin9-Feb-02 3:59
Ernest Laurentin9-Feb-02 3:59 
GeneralRe: if(localPath[i] == "\\") Pin
moliate9-Feb-02 1:54
moliate9-Feb-02 1:54 
GeneralRe: HEEEEEEEEEEELP!!!!!! Pin
Rickard Andersson209-Feb-02 5:59
Rickard Andersson209-Feb-02 5:59 
GeneralRe: HEEEEEEEEEEELP!!!!!! Pin
Nish Nishant9-Feb-02 7:09
sitebuilderNish Nishant9-Feb-02 7:09 
GeneralRe: HEEEEEEEEEEELP!!!!!! Pin
Michael Dunn9-Feb-02 7:34
sitebuilderMichael Dunn9-Feb-02 7:34 
GeneralRe: HEEEEEEEEEEELP!!!!!! Pin
Nish Nishant9-Feb-02 7:41
sitebuilderNish Nishant9-Feb-02 7:41 
GeneralRe: HEEEEEEEEEEELP!!!!!! Pin
Michael Dunn9-Feb-02 7:53
sitebuilderMichael Dunn9-Feb-02 7:53 
GeneralRe: HEEEEEEEEEEELP!!!!!! Pin
Nish Nishant9-Feb-02 7:57
sitebuilderNish Nishant9-Feb-02 7:57 
GeneralQuertyPerformanceCounter Pin
alex.barylski8-Feb-02 23:21
alex.barylski8-Feb-02 23:21 
GeneralRe: QuertyPerformanceCounter Pin
8-Feb-02 23:42
suss8-Feb-02 23:42 
GeneralFixed size Pin
Mazdak8-Feb-02 23:11
Mazdak8-Feb-02 23:11 
GeneralRe: Fixed size Pin
alex.barylski8-Feb-02 23:26
alex.barylski8-Feb-02 23:26 
GeneralRe: Fixed size Pin
Nish Nishant9-Feb-02 7:30
sitebuilderNish Nishant9-Feb-02 7:30 
GeneralRe: Fixed size Pin
alex.barylski8-Feb-02 23:41
alex.barylski8-Feb-02 23:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.