by masCh » Nov 1, 2002 @ 5:53pm
I am literally pulling hair outta my head. I read Conan's idea about making our own SIP but i cant for the life of me figure out HOW to do it.
All I have now is I can detect what box is being hit on my simple SIP but I cant put that char in a string. I always get 'cant convert char * to const char' and things like that.
Okay lets say i hit the letter T on the sip, how do i assign char keyhit="T"? and if i hit Y then keyhit="Y"? The only idea is to test each rect using "if" but that would make more than 36 "if" statements.
Then how to save that char in a string? I tried..
char *dname;
strcat(dname[strlen(dname)],keyhit);
and it doesnt give the slightest indication of it working.
All I need is a dialog to popup that asks "what is your name?" and the user can enter text and the value saved to a string called dname after pressing enter. I dont even know how to display what the current value of dname is on the screen..(current value means before pressing enter)
Is there any sample code that can achieve this? I can only learn by example not by theory. I wont know how to pocketfrog if there was no blitsample.
Please please point me in the right direction. Keep in mind I dont know C++, I only know pocketfrog. And not much at that either. =(
Thanks a million in advance for ANY help you can give me!
masCh