Click here to Skip to main content
15,908,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTransparent bitmap (win32) Pin
Brian van der Beek9-Feb-02 0:42
Brian van der Beek9-Feb-02 0:42 
GeneralRe: Transparent bitmap (win32) Pin
Christian Graus9-Feb-02 0:48
protectorChristian Graus9-Feb-02 0:48 
GeneralRe: Transparent bitmap (win32) Pin
Brian van der Beek9-Feb-02 8:46
Brian van der Beek9-Feb-02 8:46 
GeneralRe: Transparent bitmap (win32) Pin
Christian Graus9-Feb-02 8:57
protectorChristian Graus9-Feb-02 8:57 
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 
I have a char vector allocated on the heap and want to test if one of the elements is equal with "\\" (simple \, but doen't I need to write \\ to tell the compiler that I mean a \, if you understand).

this is the if-statement...

if( localPath[i] == "\\" )
{
...
}

that gives me this error:

--------------------Configuration: Drag Hit - Win32 Release--------------------
Compiling...
source.cpp
C:\Program\Microsoft Visual Studio\MyProjects\Drag Hit\source.cpp(41) : error C2446: '==' : no conversion from 'char *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\Program\Microsoft Visual Studio\MyProjects\Drag Hit\source.cpp(41) : error C2040: '==' : 'int' differs in levels of indirection from 'char [2]'
Error executing cl.exe.

Drag Hit.exe - 2 error(s), 0 warning(s)


------------------------------------
Rickard Andersson, Suza Computing
ICQ#: 50302279
I'm from the winter country SWEDEN!

------------------------------------
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 
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 

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.