Click here to Skip to main content
15,895,656 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ASSERT(_crtIsvalidheappoint() )error, Help! Pin
orteaorme28-Apr-04 17:29
sussorteaorme28-Apr-04 17:29 
Generalgeting font from hdc (GDI) in API way Pin
ravjak28-Apr-04 1:42
ravjak28-Apr-04 1:42 
GeneralRe: geting font from hdc (GDI) in API way Pin
Roger Allen28-Apr-04 1:46
Roger Allen28-Apr-04 1:46 
GeneralRe: geting font from hdc (GDI) in API way Pin
ravjak28-Apr-04 2:41
ravjak28-Apr-04 2:41 
GeneralRe: geting font from hdc (GDI) in API way Pin
Steve S28-Apr-04 1:47
Steve S28-Apr-04 1:47 
GeneralRe: geting font from hdc (GDI) in API way Pin
ravjak28-Apr-04 2:37
ravjak28-Apr-04 2:37 
GeneralFormat string function Pin
Anonymous28-Apr-04 1:29
Anonymous28-Apr-04 1:29 
GeneralRe: Format string function Pin
toxcct28-Apr-04 1:50
toxcct28-Apr-04 1:50 
the screen driver does this automatically.
anyway, you could do the simple (according that your string is str, C-style string):
<font style="color:blue;">int</font> iCpt = 0;
<font style="color:blue;">while</font> (str[iCpt] != <font style="color:purple;">'\0'</font>) {
    <font style="color:blue;">if</font> (!(iCpt%80)) {
        printf(<font style="color:purple;">"\n"</font>);
    }
    printf(<font style="color:purple;">"%c"</font>, str[iCpt]);
    iCpt++;
}

or the more complex code below (i'm not even sure it works) :
<font style="color:blue;">int</font> iCpt = 0, iResult = 80;
<font style="color:blue;">while</font> (iResult == 80) {
    iResult = printf(<font style="color:purple;">"%80s\n"</font>, str[iCpt]);
    iCpt += iResult;
}




TOXCCT >>> GEII power


GeneralRe: Format string function Pin
Anonymous28-Apr-04 2:07
Anonymous28-Apr-04 2:07 
GeneralRe: Format string function Pin
toxcct28-Apr-04 2:19
toxcct28-Apr-04 2:19 
GeneralRe: Format string function Pin
ravjak28-Apr-04 2:33
ravjak28-Apr-04 2:33 
GeneralHelp me, please Pin
Roozbeh6928-Apr-04 1:20
professionalRoozbeh6928-Apr-04 1:20 
GeneralIsConnected to internet Pin
Member 101882328-Apr-04 0:32
Member 101882328-Apr-04 0:32 
GeneralRe: IsConnected to internet Pin
Jitendra gangwar28-Apr-04 0:56
Jitendra gangwar28-Apr-04 0:56 
GeneralRe: IsConnected to internet Pin
Antti Keskinen28-Apr-04 1:00
Antti Keskinen28-Apr-04 1:00 
GeneralRe: IsConnected to internet Pin
vcplusplus28-Apr-04 2:45
vcplusplus28-Apr-04 2:45 
GeneralRestarting a running program Pin
pma27-Apr-04 23:57
pma27-Apr-04 23:57 
GeneralRe: Restarting a running program Pin
22491728-Apr-04 0:03
22491728-Apr-04 0:03 
GeneralRe: Restarting a running program Pin
Prakash Nadar28-Apr-04 0:32
Prakash Nadar28-Apr-04 0:32 
GeneralRe: Restarting a running program Pin
22491728-Apr-04 0:57
22491728-Apr-04 0:57 
GeneralRe: Restarting a running program Pin
Jitendra gangwar28-Apr-04 0:33
Jitendra gangwar28-Apr-04 0:33 
GeneralRe: Restarting a running program Pin
22491728-Apr-04 0:51
22491728-Apr-04 0:51 
GeneralRe: Restarting a running program Pin
Jitendra gangwar28-Apr-04 1:05
Jitendra gangwar28-Apr-04 1:05 
GeneralRe: Restarting a running program Pin
Member 101882328-Apr-04 2:16
Member 101882328-Apr-04 2:16 
GeneralRe: Restarting a running program Pin
Jitendra gangwar28-Apr-04 2:33
Jitendra gangwar28-Apr-04 2:33 

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.