Click here to Skip to main content
15,919,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow do I call a Child window from a Dialog? Pin
TMaxwell8620-Mar-05 10:21
TMaxwell8620-Mar-05 10:21 
AnswerRe: How do I call a Child window from a Dialog? Pin
Renjith Ramachandran20-Mar-05 15:57
Renjith Ramachandran20-Mar-05 15:57 
GeneralAccessing the gui controls of other applications Pin
modshah_one20-Mar-05 7:08
modshah_one20-Mar-05 7:08 
GeneralRe: Accessing the gui controls of other applications Pin
David Crow21-Mar-05 4:26
David Crow21-Mar-05 4:26 
GeneralRe: Accessing the gui controls of other applications Pin
modshah_one21-Mar-05 7:12
modshah_one21-Mar-05 7:12 
GeneralRe: Accessing the gui controls of other applications Pin
David Crow21-Mar-05 7:21
David Crow21-Mar-05 7:21 
GeneralPLBYTE to int * Pin
samhwang20-Mar-05 6:41
samhwang20-Mar-05 6:41 
GeneralRe: PLBYTE to int * Pin
John R. Shaw20-Mar-05 11:10
John R. Shaw20-Mar-05 11:10 
// in C
int* makeIntArrayFromByteArrary(LPBYTE *pByte,size_t cbByte)
{
    int* pInt = (int*)malloc(cbByte * sizeof(int));
    if( pInt ) {
        int i;
        for( i=0; i<cbByte; ++i )
            pInt[i] = pByte[i];
    }
    return pInt;
}
// in C++
int* makeIntArrayFromByteArrary(LPBYTE *pByte,size_t cbByte)
{
    int* pInt = new int[cbByte];
    if( pInt ) { // incase new does not throw
        for( int i=0; i<cbByte; ++i )
            pInt[i] = int(pByte[i]);
    }
    return pInt;
}
Do not forget, you are responsible for freeing memory after you are finished using the allocated arrary of intergers.

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
GeneralRe: PLBYTE to int * Pin
samhwang20-Mar-05 14:45
samhwang20-Mar-05 14:45 
GeneralRe: PLBYTE to int * Pin
David Crow21-Mar-05 4:28
David Crow21-Mar-05 4:28 
GeneralRe: PLBYTE to int * Pin
John R. Shaw30-Mar-05 6:00
John R. Shaw30-Mar-05 6:00 
Generalamstream.h Pin
Verolix20-Mar-05 6:15
Verolix20-Mar-05 6:15 
GeneralRe: amstream.h Pin
Christian Graus20-Mar-05 12:01
protectorChristian Graus20-Mar-05 12:01 
Generalsimple program Pin
mpapeo20-Mar-05 4:05
mpapeo20-Mar-05 4:05 
GeneralRe: simple program Pin
Chris Losinger20-Mar-05 4:26
professionalChris Losinger20-Mar-05 4:26 
GeneralRe: simple program Pin
eli1502197920-Mar-05 4:30
eli1502197920-Mar-05 4:30 
GeneralRe: simple program Pin
Ravi Bhavnani20-Mar-05 5:39
professionalRavi Bhavnani20-Mar-05 5:39 
GeneralRe: simple program Pin
eli1502197920-Mar-05 20:26
eli1502197920-Mar-05 20:26 
GeneralRe: simple program Pin
mpapeo20-Mar-05 10:59
mpapeo20-Mar-05 10:59 
GeneralRe: simple program Pin
marinme20-Mar-05 11:25
marinme20-Mar-05 11:25 
GeneralRe: simple program Pin
mpapeo20-Mar-05 11:43
mpapeo20-Mar-05 11:43 
GeneralRe: simple program Pin
David Crow21-Mar-05 4:30
David Crow21-Mar-05 4:30 
GeneralRe: simple program Pin
mpapeo21-Mar-05 8:45
mpapeo21-Mar-05 8:45 
GeneralCSocket &amp; closed connection Pin
pand_pl20-Mar-05 3:34
pand_pl20-Mar-05 3:34 
GeneralRe: CSocket &amp; closed connection Pin
eli1502197920-Mar-05 4:40
eli1502197920-Mar-05 4:40 

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.