can i convert HICON to char*?

can i convert HICON(for exemple) to char*?
closed account (48bpfSEw)
"char*" ist just a pointer of a size of 1 byte.
I think you can convert any type to a (void*) and cast it into (char*)

but if your compiler is strictly it would throw an error "can't convert ..."
in this case : maybe there is a compiler option to smooth it down not to be too strictly

The size of 1 byte means: using the ++ operator the next adress will be 1 byte further

Some examples:

char* p1 = $0000;
p1++; // p1 points now to $0001

int* p2 = $0000; // int has a size of 4 bytes
p2++; // p2 points now to $0004

Last edited on
i'm sorry but the HICON isn't what is on file, right?
It doesn't make sense to convert HICON to char*. You cannot obtain anything useful. If you want the data use GetObject(). See:

https://msdn.microsoft.com/en-us/library/windows/desktop/dd144904%28v=vs.85%29.aspx
thanks for correct me
Topic archived. No new replies allowed.