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

C / C++ / MFC

 
QuestionIs it possible to custom draw the scroll bar in CListCtrl? Pin
RobJones9-Nov-01 3:58
RobJones9-Nov-01 3:58 
GeneralDisable Help button on the "Customize Toolbar" dialog box Pin
9-Nov-01 3:45
suss9-Nov-01 3:45 
GeneralHelp.... Pin
sardinka9-Nov-01 3:42
sardinka9-Nov-01 3:42 
GeneralRe: Help.... Pin
Michael P Butler9-Nov-01 4:06
Michael P Butler9-Nov-01 4:06 
GeneralRe: Help.... Pin
sardinka9-Nov-01 5:21
sardinka9-Nov-01 5:21 
GeneralRe: Help.... Pin
#realJSOP9-Nov-01 5:49
professional#realJSOP9-Nov-01 5:49 
GeneralRe: Help.... Pin
Christian Graus9-Nov-01 8:41
protectorChristian Graus9-Nov-01 8:41 
GeneralRe: Help.... Pin
moliate9-Nov-01 16:21
moliate9-Nov-01 16:21 
This is a solution in plain C. If this is a homework, you should really make sure that you understand the code, and then rewrite it from memory. You will not learn anything otherwise. Also note that more memory than needed may be allocated (what can you do about that?).

After seeing some horrible previous posts (think calculator Poke tongue | ;-P ) I had to answer this one to show that a *little* politeless could get you far...

/moliate
starting to sound 50 year older now, better quit...

char* convert_char_modifier(char *Modifier)
{char* tmp = new char[strlen(Modifier)*2];
 char* Result = tmp;

 for (;*Modifier; Modifier++)
    {if (*Modifier >='A' && *Modifier <= 'Z')
        {*tmp++ = char((*Modifier - 'A')/10+'0');
         *tmp++ = char((*Modifier - 'A')%10+'1');
        }
     else
         *tmp++ = *Modifier;
    }

 *tmp = '\0';
 return Result;
}

int main(int argc, char* argv[])
{   char* Modifier = "A79867B987C98ZZ";
	printf("%s\n", convert_char_modifier(Modifier) ); // returns 01798670298703982626
	return 0;
}

GeneralSearching Canvas for drawing diagrams... Pin
Braulio Dez9-Nov-01 3:17
Braulio Dez9-Nov-01 3:17 
GeneralRe: Searching Canvas for drawing diagrams... Pin
9-Nov-01 16:17
suss9-Nov-01 16:17 
GeneralPassing variable from one file to another Pin
Carine9-Nov-01 2:47
Carine9-Nov-01 2:47 
GeneralRe: Passing variable from one file to another Pin
Stan Shannon9-Nov-01 3:00
Stan Shannon9-Nov-01 3:00 
GeneralRe: Passing variable from one file to another Pin
Carine9-Nov-01 3:13
Carine9-Nov-01 3:13 
GeneralRe: Passing variable from one file to another Pin
Stan Shannon9-Nov-01 6:39
Stan Shannon9-Nov-01 6:39 
GeneralRe: Passing variable from one file to another Pin
Stan Shannon9-Nov-01 6:45
Stan Shannon9-Nov-01 6:45 
QuestionEject CDROM in W98??? Pin
Jon Hulatt9-Nov-01 1:44
Jon Hulatt9-Nov-01 1:44 
AnswerRe: Eject CDROM in W98??? Pin
Tomasz Sowinski9-Nov-01 1:58
Tomasz Sowinski9-Nov-01 1:58 
AnswerRe: Eject CDROM in W98??? Pin
Carlos Antollini9-Nov-01 2:40
Carlos Antollini9-Nov-01 2:40 
AnswerRe: Check this ;) Pin
Masaaki Onishi9-Nov-01 4:17
Masaaki Onishi9-Nov-01 4:17 
GeneralRe: Check this ;) Pin
Alex Lewandowski9-Nov-01 4:40
Alex Lewandowski9-Nov-01 4:40 
GeneralRe: Ty, but... Pin
Masaaki Onishi9-Nov-01 5:23
Masaaki Onishi9-Nov-01 5:23 
GeneralWhich is faster TransparentBlt or AlphaBlend Pin
Chambers9-Nov-01 1:32
Chambers9-Nov-01 1:32 
GeneralRe: Which is faster TransparentBlt or AlphaBlend Pin
Tomasz Sowinski9-Nov-01 1:54
Tomasz Sowinski9-Nov-01 1:54 
GeneralRe: Which is faster TransparentBlt or AlphaBlend Pin
Chambers9-Nov-01 2:25
Chambers9-Nov-01 2:25 
GeneralRe: Which is faster TransparentBlt or AlphaBlend Pin
Tomasz Sowinski9-Nov-01 2:36
Tomasz Sowinski9-Nov-01 2:36 

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.