LebGeeks

A community for technology geeks in Lebanon.

You are not logged in.

#1 August 4 2008

crazy
Member

C++ Issue

Hello:)

I have something fun for you guys, (not for me:p)

I have a const char *community;
I want to cast it into a u_char so I can use it in a specific function, and until now, everything I tried didn't work.

Can you offer a bit of help? It's in C++ now, I converted all my project to that, C was driving me nuts!

Crazy

Offline

#2 August 4 2008

crazy
Member

Re: C++ Issue

Comme un grand, I found it^^

u_char *testpublic;
    testpublic=(u_char*)hp->community;

here hp->community is the const char*

Offline

Board footer