I think you are misunderstanding a few basics here....
#1: I think you're confusing a pointer with a string. Pointers are not strings.
#2: a 'char', as its name suggests, holds a single character. Strings consist of multiple characters. Therefore you can't "convert" a string to a char because a char isn't large enough to hold an entire string.
What you can do is take an individual character out of the string and hold it in the char, but I doubt this is what you're going for.
Basically:
You're dealing with strings here, so use strings, not chars:
Ok i replaced the char thing(did not notice that at all, thanks for bringing that up)
But thats not the real problem, what i am trying to do is to copy the char's from a char pointer and pass it to a char.
In other words i want to somehow copy the characters that the pointer points to a normal array of characters
For some reason it prints out in the name of the drive but it doesn't print out "Drive is in"
I cant figure out why and i think its because its not comparing the char* with "MARGIN" correctly.
Sorry, i deleted the post...i somehow did the mistake of strcmp(VolumeName=="MARGIN")
(i gues it was a busy day)...
Thanks for all of you help.
And i gues i have to pick my c++ book again :/