1. RE: Windows program error

Thanks for the advice, but that doesn't fix it.

xanax at bellsouth.net wrote:
> Hello Phillip D.
> 
> Thats been brought up several times on the list.
> Derek has re-written Win32lib's mem routines
> and has just about got all the bugs out in Win32lib
> version 0.57.9
> 
> You might want to grab a copy of 0.57.9 and
> see if this doesnt correct the problem you're 
> having.
> 
> DO NOT however D/L version 0.57.11 or 12
> because these are extreme beta versions that
> could crash your machine.
> 
> http://www.users.bigpond.com/ddparnell/euphoria/w3205709.zip
> Derek says this is a beta version on his site but its much more
> clean than the version you're using now.
> 
> Try it out and get back to us...
> 
> Xanax
> 
> 
> ----- Original Message ----- 
> From: "Philip D." <philip1987 at hotmail.com>
> To: "EUforum" <EUforum at topica.com>
> Sent: Monday, December 09, 2002 6:11 PM
> Subject: Windows program error
> 
> 
> : 
> : I finished a windows program today with Win32 Library, but I get this 
> : error message when I try to start it.
> : 
> : Win32Lib AppWindow - Fatal Error                 [X]
> : 
> : Error code 461
> : Failed to acquire a hWnd when creating a control.
> : 
> : Win32Lib v0.55.1
> : 
> :              [OK]
> : 
> : If you know what the problem is, please tell me.  
> : 
> : Thank you.
> : 
> : 
> : 
> : 
> : 
> 
>

new topic     » topic index » view message » categorize

2. RE: Windows program error

here is ex.err



C:\EUPHORIA\include\win32lib.ew:598 in procedure fShowError() 
attempt to divide by 0 
    pParams = {{70'F',97'a',105'i',108'l',101'e',100'd',32' 
',116't',111'o',
32' ',97'a',99'c',113'q',117'u',105'i',114'r',101'e',32' ',97'a',32' ',
104'h',87'W',110'n',100'd',32' ',119'w',104'h',101'e',110'n',32' 
',99'c',
114'r',101'e',97'a',116't',105'i',110'n',103'g',32' ',97'a',32' ',99'c',
111'o',110'n',116't',114'r',111'o',108'l',46'.'},461}
    pMode = 2
    lErrCode = 461
    lResponse = 1
    lStyle = 16
    s = {70'F',97'a',105'i',108'l',101'e',100'd',32' ',116't',111'o',32' 
',
97'a',99'c',113'q',117'u',105'i',114'r',101'e',32' ',97'a',32' ',104'h',
87'W',110'n',100'd',32' ',119'w',104'h',101'e',110'n',32' 
',99'c',114'r',
101'e',97'a',116't',105'i',110'n',103'g',32' ',97'a',32' ',99'c',111'o',
110'n',116't',114'r',111'o',108'l',46'.'}
    lDispMsg = {69'E',114'r',114'r',111'o',114'r',32' 
',99'c',111'o',100'd',
101'e',32' 
',52'4',54'6',49'1',10,70'F',97'a',105'i',108'l',101'e',100'd',
32' ',116't',111'o',32' 
',97'a',99'c',113'q',117'u',105'i',114'r',101'e',
32' ',97'a',32' ',104'h',87'W',110'n',100'd',32' ',119'w',104'h',101'e',
110'n',32' ',99'c',114'r',101'e',97'a',116't',105'i',110'n',103'g',32' 
',
97'a',32' ',99'c',111'o',110'n',116't',114'r',111'o',108'l',46'.',10,
10,87'W',105'i',110'n',51'3',50'2',76'L',105'i',98'b',32' 
',118'v',48'0',
46'.',53'5',55'7',46'.',57'9',32' 
',50'2',52'4',45'-',74'J',117'u',110'n',
101'e',45'-',50'2',48'0',48'0',50'2'}
    lTitle = {87'W',105'i',110'n',51'3',50'2',76'L',105'i',98'b',32' ',
65'A',112'p',112'p',87'W',105'i',110'n',100'd',111'o',119'w',32' 
',45'-',
32' ',70'F',97'a',116't',97'a',108'l',32' ',69'E',114'r',114'r',111'o',
114'r'}
    lLibVersion = {87'W',105'i',110'n',51'3',50'2',76'L',105'i',98'b',
32' ',118'v',48'0',46'.',53'5',55'7',46'.',57'9',32' 
',50'2',52'4',45'-',
74'J',117'u',110'n',101'e',45'-',50'2',48'0',48'0',50'2'}

... called from C:\EUPHORIA\include\win32lib.ew:634 in procedure 
abortErr()  
    pParams = {{70'F',97'a',105'i',108'l',101'e',100'd',32' 
',116't',111'o',
32' ',97'a',99'c',113'q',117'u',105'i',114'r',101'e',32' ',97'a',32' ',
104'h',87'W',110'n',100'd',32' ',119'w',104'h',101'e',110'n',32' 
',99'c',
114'r',101'e',97'a',116't',105'i',110'n',103'g',32' ',97'a',32' ',99'c',
111'o',110'n',116't',114'r',111'o',108'l',46'.'},461}

... called from C:\EUPHORIA\include\win32lib.ew:13609 in function 
createEx()  
    pControl = 28
    caption = {83'S',99'c',111'o',114'r',101'e',58':',32' '}
    pOwner = 3
    x = 0
    y = 0
    cx = 0
    cy = 0
    styleFlags = {3}
    exFlags = 0
    id = 25
    at = <no value>
    hotkey = <no value>
    bgControl = <no value>
    style = <no value>
    result = <no value>
    hWnd = 0
    flags = 3
    extendedflags = 0
    lParenthWnd = 1376660
    szClassName = 8724232
    szCaption = 8724144
    hMenu = 3
    newhWnd = <no value>
    pstr = <no value>
    struct = <no value>
    ok = <no value>
    newobj = <no value>
    lvcol = <no value>
    BBox = <no value>
    sbPanels = -1
    lHintText = {}

... called from C:\EUPHORIA\include\win32lib.ew:13932 in function 
create()  
    pControl = 28
    caption = {83'S',99'c',111'o',114'r',101'e',58':',32' '}
    pOwner = 3
    x = 0
    y = 0
    cx = 0
    cy = 0
    styleFlags = {3}

... called from C:\EUPHORIA\My Programs\Snake 3.exw:57 

Global & Local Variables

 C:\EUPHORIA\include\machine.e:
    check_calls = 1

 C:\EUPHORIA\include\msgbox.e:
    lib = 2010382336
    msgbox_id = 0
    get_active_id = 1

 C:\EUPHORIA\include\file.e:
    SLASH = 92'\'
    my_dir = -2

 C:\EUPHORIA\include\get.e:
    input_file = <no value>
    input_string = <no value>
    string_next = <no value>
    ch = <no value>

 C:\EUPHORIA\include\graphics.e:
    BLUE = 1
    CYAN = 3
    RED = 4
    BROWN = 6
    BRIGHT_BLUE = 9
    BRIGHT_CYAN = 11
    BRIGHT_RED = 12
    YELLOW = 14

 C:\EUPHORIA\include\image.e:
    fn = <no value>
    error_code = <no value>
    numXPixels = <no value>
    numYPixels = <no value>
    bitCount = <no value>
    numRowBytes = <no value>
    startXPixel = <no value>
    startYPixel = <no value>
    endYPixel = <no value>

 C:\EUPHORIA\include\tk_mem.e:
    pAbortRtn = 0
    pAllocationCounter = 0
    pAllocated = {{},{}}
    pAllotted = 0
    pStringSet = 0
    pHeap = 0
    pPeekStringBufSize = 256

 C:\EUPHORIA\include\win32lib.ew:
    VOID = 0
    vWinMainState = 2
    r_getText = 8
    r_setPenPos = 5
    r_doEvents = 49'1'
    r_setFocus = 14
    r_getItem = 10
    r_destroy = 4
    r_activateTabItems = 13
    r_createEx = 3
    r_setSubFields = 7
    r_lvSortitems = 15
    r_isVisible = 9
    r_openWindow = 48'0'
    r_setHintEx = 50'2'
    r_loadBitmapFromFile = 11
    r_setBitmap = 12
    r_CleanUp = 53'5'
    r_getClientRect = 6
    r_Pause = -1
    r_Break = -1
    gtMsg = {}
    vDuringPaint = {}
    idStack = {3,0,0,0,0,0,0,0,0,0}
    returnStack = {0,0,0,0,0,0,0,0,0,0}
    SP = 0
    vFontResolution = 1
    showWarnings = 1
    xUserCleanUp = -1
    vMsgsToIgnore = {}
    vAppName = {87'W',105'i',110'n',51'3',50'2',76'L',105'i',98'b',32' 
',
65'A',112'p',112'p',87'W',105'i',110'n',100'd',111'o',119'w'}
    vw32Libraries = {{{1,2010382336},{117'u',115's',101'e',114'r',51'3',
50'2',46'.',100'd',108'l',108'l'}},{{1,2009530368},{103'g',100'd',105'i',

51'3',50'2',46'.',100'd',108'l',108'l'}},{{0,0},{119'w',105'i',110'n',
109'm',109'm',46'.',100'd',108'l',108'l'}},{{0,0},{99'c',111'o',109'm',
100'd',108'l',103'g',51'3',50'2',46'.',100'd',108'l',108'l'}},{{1,1999896576},

{99'c',111'o',109'm',99'c',116't',108'l',51'3',50'2',46'.',100'd',108'l',

108'l'}},{{0,0},{107'k',101'e',114'r',110'n',101'e',108'l',51'3',50'2',
46'.',100'd',108'l',108'l'}},{{0,0},{115's',104'h',101'e',108'l',108'l',
51'3',50'2',46'.',100'd',108'l',108'l'}},{{1,1961033728},{{114'r',105'i',

99'c',104'h',101'e',100'd',50'2',48'0',46'.',100'd',108'l',108'l'},{114'r',

105'i',99'c',104'h',101'e',100'd',51'3',50'2',46'.',100'd',108'l',108'l'}}}}

    vw32Routines = 
{11,17,19,{-1,{85'U',110'n',114'r',101'e',103'g',105'i',
115's',116't',101'e',114'r',67'C',108'l',97'a',115's',115's',65'A'},{33554436,

33554436},16777220},20,{-1,{83'S',104'h',111'o',119'w',87'W',105'i',110'n',

100'd',111'o',119'w'},{33554436,16777220},16777220},{-1,{85'U',112'p',
100'd',97'a',116't',101'e',87'W',105'i',110'n',100'd',111'o',119'w'},
{33554436}},{-1,{83'S',101'e',116't',70'F',111'o',114'r',101'e',103'g',
114'r',111'o',117'u',110'n',100'd',87'W',105'i',110'n',100'd',111'o',
119'w'},{33554436},33554436},18,{-1,{83'S',101'e',116't',67'C',117'u',
114'r',115's',111'o',114'r'},{33554436},16777220},{-1,{83'S',101'e',116't',

67'C',117'u',114'r',115's',111'o',114'r',80'P',111'o',115's'},{16777220,
16777220}},{-1,{109'm',111'o',117'u',115's',101'e',95'_',101'e',118'v',
101'e',110'n',116't'},{16777220,16777220,16777220,16777220,16777220}},
{-1,{83'S',104'h',111'o',119'w',67'C',117'u',114'r',115's',111'o',114'r'},

{16777220},16777220},{-1,{67'C',114'r',101'e',97'a',116't',101'e',67'C',
117'u',114'r',115's',111'o',114'r'},{33554436,16777220,16777220,16777220,

16777220,33554436,33554436},33554436},{-1,{68'D',101'e',115's',116't',
114'r',111'o',121'y',67'C',117'u',114'r',115's',111'o',114'r'},{33554436},

16777220},{-1,{71'G',101'e',116't',67'C',108'l',97'a',115's',115's',76'L',

111'o',110'n',103'g',65'A'},{33554436,16777220},33554436},25,{-1,{80'P',
101'e',101'e',107'k',77'M',101'e',115's',115's',97'a',103'g',101'e',65'A'},

{33554436,33554436,33554436,33554436,33554436},16777220},{-1,{71'G',101'e',

116't',77'M',101'e',115's',115's',97'a',103'g',101'e',65'A'},{33554436,
33554436,33554436,33554436},16777220},{-1,{84'T',114'r',97'a',110'n',
115's',108'l',97'a',116't',101'e',77'M',101'e',115's',115's',97'a',103'g',

101'e'},{16777220}},{-1,{68'D',105'i',115's',112'p',97'a',116't',99'c',...

    vNextRtn = 249
    WC_RICHEDIT = 
{82'R',73'I',67'C',72'H',69'E',68'D',73'I',84'T',50'2',
48'0',65'A'}
    classes = 50'2'
    Screen = 1
    Printer = 2
    className = {{},{98'b',117'u',116't',116't',111'o',110'n'},{98'b',
117'u',116't',116't',111'o',110'n'},{98'b',117'u',116't',116't',111'o',
110'n'},{98'b',117'u',116't',116't',111'o',110'n'},{98'b',117'u',116't',
116't',111'o',110'n'},{98'b',117'u',116't',116't',111'o',110'n'},{108'l',

105'i',115's',116't',98'b',111'o',120'x'},{108'l',105'i',115's',116't',
98'b',111'o',120'x'},{99'c',111'o',109'm',98'b',111'o',98'b',111'o',120'x'},

{99'c',111'o',109'm',98'b',111'o',98'b',111'o',120'x'},{99'c',111'o',
109'm',98'b',111'o',98'b',111'o',120'x'},{99'c',111'o',109'm',98'b',111'o',

98'b',111'o',120'x'},{101'e',100'd',105'i',116't'},{101'e',100'd',105'i',

116't'},{115's',116't',97'a',116't',105'i',99'c'},{115's',116't',97'a',
116't',105'i',99'c'},{115's',116't',97'a',116't',105'i',99'c'},{115's',
99'c',114'r',111'o',108'l',108'l',98'b',97'a',114'r'},{115's',99'c',114'r',

111'o',108'l',108'l',98'b',97'a',114'r'},{115's',116't',97'a',116't',
105'i',99'c'},{115's',116't',97'a',116't',105'i',99'c'},{},{},{},{},{84'T',

111'o',111'o',108'l',98'b',97'a',114'r',87'W',105'i',110'n',100'd',111'o',

119'w',51'3',50'2'},{109'm',115's',99'c',116't',108'l',115's',95'_',115's',

116't',97'a',116't',117'u',115's',98'b',97'a',114'r',51'3',50'2'},{98'b',

117'u',116't',116't',111'o',110'n'},{98'b',117'u',116't',116't',111'o',
110'n'},{98'b',117'u',116't',116't',111'o',110'n'},{109'm',115's',99'c',
116't',108'l',115's',95'_',116't',114'r',97'a',99'c',107'k',98'b',97'a',
114'r',51'3',50'2'},{109'm',115's',99'c',116't',108'l',115's',95'_',116't',

114'r',97'a',99'c',107'k',98'b',97'a',114'r',51'3',50'2'},{83'S',121'y',
115's',84'T',97'a',98'b',67'C',111'o',110'n',116't',114'r',111'o',108'l',

51'3',50'2'},0,{109'm',115's',99'c',116't',108'l',115's',95'_',112'p',
114'r',111'o',103'g',114'r',101'e',115's',115's',51'3',50'2'},{83'S',...
    classType = {0,1,1,1,1,1,1,4,4,2,2,2,2,3,3,6,6,6,5,5,6,6,7,8,9,10,
11,11,1,1,1,11,11,11,0,11,11,0,11,11,11,11,11,0,11,11,1,11,0,0}
    classStyle = {13565952,1342242816,1342242817,1342242819,1342242822,
1342242825,1342177287,1352728577,1352728579,1344340482,1344340738,1342243331,

1344340483,1350631552,1352728580,1342177280,1342177282,1342177281,1342242816,

1342242817,1342177283,1342177294,0,0,0,0,1417674757,1409286147,1342242944,

1342246915,1342247043,1342242849,1342242851,1375797248,0,1342177280,1350631488,

0,1350631424,1352769604,1350631424,1342177280,1451294752,0,1,1417742597,
1,1342243842,0,0}
    classStyleEx = {16,0,0,0,0,0,0,528,528,512,512,512,512,528,528,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,512,0,512,512,1,0,512,0,8,1,0,0,
0,0}
    classAttr = {1,0,0,0,0,0,1,1,1,1,1,1,1,0,8,0,0,0,0,0,0,0,2,2,2,2,3,
1,4,0,4,1,1,1,0,1,1,0,0,8,0,0,2,0,2,3,3,1,2,2}
    classBGColor = 
{14215660,14215660,14215660,-1,14215660,14215660,14215660,
16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,
-1,-1,-1,14215660,14215660,14215660,14215660,14215660,14215660,14215660,
14215660,14215660,14215660,14215660,14215660,14215660,14215660,14215660,
14215660,14215660,14215660,16777215,14215660,16777215,16777215,14215660,
14215660,14215660,14215660,14215660,14215660,14215660,16777215,14215660,
14215660}
    vWindowClassStyle = {8}
    lv_id = {}
    lvitem_data = {}
    ilicon_list = {}
    lvInsertWhere = 1
    vNextLVItemID = 0
    ILlarge = 0
    ILsmall = 0
    tv_id = {}
    tvitem_data = {}
    tvitem_owner = {}
    tvitem_parent = {}
    tvitem_handle = {}
    himlFTBDefault = 0
    himlFTBHot = 0
    himlFTBDisabled = 0
    FTB_images = {}
    WndProcAddress = 11684808
    SubProcAddress = 11684912
    vOnXXXSupport = 1
    onMouse = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    onClick = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    onKeyPress = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    onKeyUp = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    onKeyDown = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    onResize = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    onChange = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    onGotFocus = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    onLostFocus = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    onScroll = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    onOpen = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    onActivate = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    onClose = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    onDestroy = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    onTimer = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    onPaint = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    onDragAndDrop = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    onEvent = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    mainWindow = 0
    modalWindow = 0
    modalStyle = 0
    modalDepth = 0
    modalhWnd = 0
    modalStack = {}
    window_handle = {-1,-1,1376660,11338195,11338195,11338195,11338195,
11338195,13697415,1508305,1508305,1508305,1508305,1508305,7930723,7930723,

7930723,7930723,7930723,7930723,7930723,328663,328663,328663,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1}
    window_handle_type = {-1,-1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
3,3,3,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_destroyed = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_func = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_family = {0,0,0,7,9,9,9,9,7,7,9,9,9,9,7,9,9,9,9,9,9,7,9,9,11,
-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_type = {49'1',50'2',1,23,25,25,25,25,23,23,25,25,25,25,23,25,
25,25,25,25,25,23,25,25,28,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_focus_order = {{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},
{},{},{},{},{},{},{},{},{},{},-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_focus = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_owner = {0,0,0,3,4,4,4,4,3,9,10,10,10,10,9,15,15,15,15,15,15,
3,22,22,3,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_menu = {0,0,4653655,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_toolbar = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_statusbar = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_tooltip = {{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},
{},{},{},{},{},{},{},{},{},-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_tooltipwid = 
{200,200,200,200,200,200,200,200,200,200,200,200,
200,200,200,200,200,200,200,200,200,200,200,200,200,-1,-1,-1,-1,-1,-1,
-1,-1,-1}
    window_font = {{{97'a',114'r',105'i',97'a',108'l'},10,0,0},{{97'a',
114'r',105'i',97'a',108'l'},10,0,0},{{},10,0,0},{{97'a',114'r',105'i',
97'a',108'l'},10,0,0},{{97'a',114'r',105'i',97'a',108'l'},10,0,0},{{97'a',

114'r',105'i',97'a',108'l'},10,0,0},{{97'a',114'r',105'i',97'a',108'l'},
10,0,0},{{97'a',114'r',105'i',97'a',108'l'},10,0,0},{{97'a',114'r',105'i',

97'a',108'l'},10,0,0},{{97'a',114'r',105'i',97'a',108'l'},10,0,0},{{97'a',

114'r',105'i',97'a',108'l'},10,0,0},{{97'a',114'r',105'i',97'a',108'l'},
10,0,0},{{97'a',114'r',105'i',97'a',108'l'},10,0,0},{{97'a',114'r',105'i',

97'a',108'l'},10,0,0},{{97'a',114'r',105'i',97'a',108'l'},10,0,0},{{97'a',

114'r',105'i',97'a',108'l'},10,0,0},{{97'a',114'r',105'i',97'a',108'l'},
10,0,0},{{97'a',114'r',105'i',97'a',108'l'},10,0,0},{{97'a',114'r',105'i',

97'a',108'l'},10,0,0},{{97'a',114'r',105'i',97'a',108'l'},10,0,0},{{97'a',

114'r',105'i',97'a',108'l'},10,0,0},{{97'a',114'r',105'i',97'a',108'l'},
10,0,0},{{97'a',114'r',105'i',97'a',108'l'},10,0,0},{{97'a',114'r',105'i',

97'a',108'l'},10,0,0},{{97'a',114'r',105'i',97'a',108'l'},10,0,0},-1,
-1,-1,-1,-1,-1,-1,-1,-1}
    window_fcolor = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_bcolor = 
{14215660,14215660,14215660,14215660,14215660,14215660,
14215660,14215660,14215660,14215660,14215660,14215660,14215660,14215660,
14215660,14215660,14215660,14215660,14215660,14215660,14215660,14215660,
14215660,14215660,14215660,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_pen = {{0,0,0,13,1,1,14215660},{0,0,0,13,1,1,14215660},{0,0,
0,13,1,1,14215660},{0,0,0,13,1,1,14215660},{0,0,0,13,1,1,14215660},{0,
0,0,13,1,1,14215660},{0,0,0,13,1,1,14215660},{0,0,0,13,1,1,14215660},
{0,0,0,13,1,1,14215660},{0,0,0,13,1,1,14215660},{0,0,0,13,1,1,14215660},
{0,0,0,13,1,1,14215660},{0,0,0,13,1,1,14215660},{0,0,0,13,1,1,14215660},
{0,0,0,13,1,1,14215660},{0,0,0,13,1,1,14215660},{0,0,0,13,1,1,14215660},
{0,0,0,13,1,1,14215660},{0,0,0,13,1,1,14215660},{0,0,0,13,1,1,14215660},
{0,0,0,13,1,1,14215660},{0,0,0,13,1,1,14215660},{0,0,0,13,1,1,14215660},
{0,0,0,13,1,1,14215660},{0,0,0,13,1,1,14215660},-1,-1,-1,-1,-1,-1,-1,
-1,-1}
    window_x = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,-1,
-1,-1,-1,-1,-1,-1,-1}
    window_y = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,-1,
-1,-1,-1,-1,-1,-1,-1}
    window_scroll = {{1,10},{1,10},{1,10},{1,10},{1,10},{1,10},{1,10},
{1,10},{1,10},{1,10},{1,10},{1,10},{1,10},{1,10},{1,10},{1,10},{1,10},
{1,10},{1,10},{1,10},{1,10},{1,10},{1,10},{1,10},{1,10},-1,-1,-1,-1,-1,
-1,-1,-1,-1}
    window_range = 
{{0,100'd'},{0,100'd'},{0,100'd'},{0,100'd'},{0,100'd'},
{0,100'd'},{0,100'd'},{0,100'd'},{0,100'd'},{0,100'd'},{0,100'd'},{0,
100'd'},{0,100'd'},{0,100'd'},{0,100'd'},{0,100'd'},{0,100'd'},{0,100'd'},

{0,100'd'},{0,100'd'},{0,100'd'},{0,100'd'},{0,100'd'},{0,100'd'},{0,
100'd'},-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_tabitems = {{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},
{},{},{},{},{},{},{},{},{},-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_group = {{},{},{4,9,22,25},{5,6,7,8},{},{},{},{},{10,15},{11,
12,13,14},{},{},{},{},{16,17,18,19,20,21},{},{},{},{},{},{},{23,24},{},
{},{},-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_cursor = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_hotkey_keys = {{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},
{},{},{},{},{},{},{},{},{},{},-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_hotkey_ids = {{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},
{},{},{},{},{},{},{},{},{},{},-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_textalign = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_closed = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_tabenabled = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_eventhandler = {{{},{},{},{},{},{},{},{},{},{},{},{},{},{},
{},{},{},{},{},{},{}},{{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},
{},{},{},{},{}},{{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},
{},{},{}},{{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},
{}},{{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}},
{{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}},{{},
{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}},{{},{},{},
{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}},{{},{},{},{},{},
{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}},{{},{},{},{},{},{},{},
{},{},{},{},{},{},{},{},{},{},{},{},{},{}},{{},{},{},{},{},{},{},{},{},
{},{},{},{},{},{},{},{},{},{},{},{}},{{},{},{},{},{},{},{},{},{},{},{},
{},{},{},{},{},{},{},{},{},{}},{{},{},{},{},{},{},{},{},{},{},{},{},{},
{},{},{},{},{},{},{},{}},{{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},
{},{},{},{},{},{}},{{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},
{},{},{},{}},{{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},
{},{}},{{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}},
{{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}},{{},
{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}},{{},{},{},
{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}},{{},{},{},{},{},
{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}},{{},{},{},{},{},{},{},
{},{},{},{},{},{},{},{},{},{},{},{},{},{}},{{},{},{},{},{},{},{},{},{},
{},{},{},{},{},{},{},{},{},{},{},{}},{{},{},{},{},{},{},{},{},{},{},{},
{},{},{},{},{},{},{},{},{},{}},{{},{},{},{},{},{},{},{},{},{},{},{},{},
{},{},{},{},{},{},{},{}},-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_bbrush = {0,0,-1911551904,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,-1,-1,-1,-1,-1,-1,-1,-1,-1}
    window_tag = 
{{{},{},{}},{{},{},{}},{{},{},{}},{{},{},{}},{{},{},{}},
{{},{},{}},{{},{},{}},{{},{},{}},{{},{},{}},{{},{},{}},{{},{},{}},{{},
{},{}},{{},{},{}},{{},{},{}},{{},{},{}},{{},{},{}},{{},{},{}},{{},{},
{}},{{},{},{}},{{},{},{}},{{},{},{}},{{},{},{}},{{},{},{}},{{},{},{}},
{{},{},{}},-1,-1,-1,-1,-1,-1,-1,-1,-1}
    tooltipControl = 0
    transColor = 16711935
    DefaultFontID = 25821223
    heldResource = {}
    heldCursor = {}
    vPens = {}
    vPensHandle = {}
    vBrushes = {}
    vBrushesHandle = {}
    vFontWeight = 700
    vStockResources = {25821223,28311575,26214421,0,1,2,3,4,5,6,7,8,9,
10,11,12,13,14,15,16}
    i = 16
    grabbedHDC = {}
    paintDC = {}
    printerDC = 0
    vShowChars = 0
    vStreamCallbackBuffer = {}
    vStreamCBPosn = 1
    regCount = 2
    vEmptySlots = 16
    vOpenedFlags = 0
    customColors = 8724160
    i = 63'?'
    vTabKeyCodes = {9}
    hintFontSize = 8
    hintFontAttrib = 0
    hintFontName = {77'M',83'S',32' ',83'S',97'a',110'n',115's',32' ',
83'S',101'e',114'r',105'i',102'f'}
    pfnCompare = 10977104
    dragData = {}
    vLMB_id = {-1,-1,-1,-1}
    vMaxClickTime = 0.5
    vMaxClickXDelta = 3
    vMaxClickYDelta = 3
    ActiveEL = {}
    cnt = 0
    vNotifications = {-551,-108,-150,-109,-403,-402,-409,-520,-749,-700,
-706,-707,-101,-2}
    vNotifyHandlers = {17,18,19,20,21,22,23,24,25,26,27,28,29,30}
    vEventsHandled = {512,513,516,514,517,515,518,522,5,7,8,256,258,257,
273,563,15,277,276,275,21,309,312,307,308,16,2,78'N',260,49422}
    vHandler = {31,31,31,31,31,31,31,31,32' ',33'!',34'"',35'#',35'#',
35'#',36'$',37'%',38'&',39''',39''',40'(',41')',42'*',42'*',42'*',42'*',
43'+',44',',45'-',46'.',47'/'}
    xpmErrFlag = <no value>
    transTuple = {255,0,255}
    pm = 0

 C:\EUPHORIA\include\compat01.ew:
    VOID = 0

 C:\EUPHORIA\My Programs\Snake 3.exw:
    kbc = <no value>
    sd = <no value>
    redo = <no value>
    x = <no value>
    board_size = 15
    counter = <no value>
    first = <no value>
    again = <no value>
    level = 2
    score = <no value>
    result = <no value>
    pause = 1
    done = <no value>
    t = <no value>
    board = <no value>
    sl = <no value>
    al = <no value>
    prev_al = <no value>
    y = <no value>
    pause_text = {80'P',97'a',117'u',115's',101'e'}
    status_text = {83'S',99'c',111'o',114'r',101'e',58':',32' '}
    score_text = <no value>
    text = <no value>


Traced lines leading up to the failure:

C:\EUPHORIA\include\win32lib.ew:23323	    if id = 0 then
C:\EUPHORIA\include\win32lib.ew:23328	    gtMsg = prepend(gtMsg, 
{pSource, hWnd, iMsg, wParam, lParam})
C:\EUPHORIA\include\win32lib.ew:23330	    if   onEvent[ id ] >= 0
C:\EUPHORIA\include\win32lib.ew:23344	    lHandledEvent = find(iMsg, 
vEventsHandled)
C:\EUPHORIA\include\win32lib.ew:23345	    if lHandledEvent = 0 or
C:\EUPHORIA\include\win32lib.ew:23348	        if pSource = kReturnNow 
then
C:\EUPHORIA\include\win32lib.ew:23349	            result = w32Func( 
xDefWindowProc, { hWnd, iMsg, wParam, lParam } )
C:\EUPHORIA\include\win32lib.ew:23385	    gtMsg = gtMsg[2 .. 
length(gtMsg)]
C:\EUPHORIA\include\win32lib.ew:23386	    VOID = invokeHandler(id, 
w32HAfterEvent, {iMsg, wParam, lParam, result} )
C:\EUPHORIA\include\win32lib.ew:23387	    return result
C:\EUPHORIA\include\win32lib.ew:589	   if pMode = 2
C:\EUPHORIA\include\win32lib.ew:593	      fCleanUp(lErrCode, lDispMsg)
C:\EUPHORIA\include\win32lib.ew:502	   if sequence(xUserCleanUp) 
C:\EUPHORIA\include\win32lib.ew:520	    if r_CleanUp > -1 then
C:\EUPHORIA\include\win32lib.ew:521	    call_proc( r_CleanUp, {} )
C:\EUPHORIA\include\win32lib.ew:8354	    held = heldResource          
C:\EUPHORIA\include\win32lib.ew:8357	    for i = 1 to length( held ) do
C:\EUPHORIA\include\win32lib.ew:8363	    for i = 1 to length( heldCursor 
) do
C:\EUPHORIA\include\win32lib.ew:8367	    heldCursor = {}
C:\EUPHORIA\include\win32lib.ew:8370	    release_all_mem()
C:\EUPHORIA\include\win32lib.ew:8372	    vWinMainState = kFinished
C:\EUPHORIA\include\win32lib.ew:8374	end procedure
C:\EUPHORIA\include\win32lib.ew:523	end procedure
C:\EUPHORIA\include\win32lib.ew:595	      if pMode = 2
C:\EUPHORIA\include\win32lib.ew:598	     abort(1/0) -- Force the ex.err 
to be created.

If you need the source code, just tell me.

Derek Parnell wrote:
> Can you supply the ex.err file and or the source code? Without these, 
> it is quite difficult to know what you are doing.
> 
> --------
> cheers,
> Derek
> 
> ----- Original Message -----
> From: "Philip D." <philip1987 at hotmail.com>
> Date: Tuesday, December 10, 2002 10:11 am
> Subject: Windows program error
> 
> > 
> > I finished a windows program today with Win32 Library, but I get 
> > this 
> > error message when I try to start it.
> > 
> > Win32Lib AppWindow - Fatal Error                 [X]
> > 
> > Error code 461
> > Failed to acquire a hWnd when creating a control.
> > 
> > Win32Lib v0.55.1
> > 
> >             [OK]
> > 
> > If you know what the problem is, please tell me.  
> > 
> > Thank you.
> > 
> >

new topic     » goto parent     » topic index » view message » categorize

3. RE: Windows program error

I e-mailed you the source code.

xanax at bellsouth.net wrote:
> Phillip,
> 
> Is hWin your Main Window?
> is the control within a group control?
> 
> perhaps you have given a grouped contol
> such as a tabitem a hWin not the tabcontrol
> 
> as Derek said, this might take sending some
> code to someone to check out.
> 
> Xanax
> 
> ----- Original Message ----- 
> From: "Philip D." <philip1987 at hotmail.com>
> To: "EUforum" <EUforum at topica.com>
> Sent: Monday, December 09, 2002 6:11 PM
> Subject: Windows program error
> 
> 
> : 
> : I finished a windows program today with Win32 Library, but I get this 
> : error message when I try to start it.
> : 
> : Win32Lib AppWindow - Fatal Error                 [X]
> : 
> : Error code 461
> : Failed to acquire a hWnd when creating a control.
> : 
> : Win32Lib v0.55.1
> : 
> :              [OK]
> : 
> : If you know what the problem is, please tell me.  
> : 
> : Thank you.
> : 
> : 
> : 
> : 
> : 
> 
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: RE: Windows program error

Philip,
you were trying to create a StatusBar control. I'm guessing you are 
using an old version of Windows, maybe earlier than Win98 2nd Edition.

Does this program work...

------------
include win32lib.ew
constant w = create(Window, "", 0, 0, 0, 300, 300, 0),
         s = create(StatusBar, "", w, 0, 0, 0, 0, 0)
WinMain(w, Normal)

------------
If not, you may need to move to a more modern version of Windows.

I'm not saying for certain this is the problem; I'm still probing...
--------
cheers,
Derek

----- Original Message -----
From: "Philip D." <philip1987 at hotmail.com>
Date: Tuesday, December 10, 2002 11:16 am
Subject: RE: Windows program error

new topic     » goto parent     » topic index » view message » categorize

5. Re: RE: Windows program error

Derek, this worked fine on Win95c & Win98SE

Xanax

----- Original Message ----- 
From: "Derek Parnell" <ddparnell at bigpond.com>
To: "EUforum" <EUforum at topica.com>
Subject: Re: RE: Windows program error


: 
: Philip,
: you were trying to create a StatusBar control. I'm guessing you are 
: using an old version of Windows, maybe earlier than Win98 2nd Edition.
: 
: Does this program work...
: 
: ------------
: include win32lib.ew
: constant w = create(Window, "", 0, 0, 0, 300, 300, 0),
:          s = create(StatusBar, "", w, 0, 0, 0, 0, 0)
: WinMain(w, Normal)
: 
: ------------
: If not, you may need to move to a more modern version of Windows.
: 
: I'm not saying for certain this is the problem; I'm still probing...
: --------
: cheers,
: Derek
: 
: ----- Original Message -----
: From: "Philip D." <philip1987 at hotmail.com>
: Date: Tuesday, December 10, 2002 11:16 am
: Subject: RE: Windows program error
: 
: 
:  
: 
: 
: 
: 
:

new topic     » goto parent     » topic index » view message » categorize

6. Re: RE: Windows program error

Even worked on an old, creaky, archaic, cobwebed non-modern Win98 1st ed  :)

Dan Moyer

----- Original Message ----- 
From: "Derek Parnell" <ddparnell at bigpond.com>
To: "EUforum" <EUforum at topica.com>
Subject: Re: RE: Windows program error


> 
> Philip,
> you were trying to create a StatusBar control. I'm guessing you are 
> using an old version of Windows, maybe earlier than Win98 2nd Edition.
> 
> Does this program work...
> 
> ------------
> include win32lib.ew
> constant w = create(Window, "", 0, 0, 0, 300, 300, 0),
>          s = create(StatusBar, "", w, 0, 0, 0, 0, 0)
> WinMain(w, Normal)
> 
> ------------
> If not, you may need to move to a more modern version of Windows.
> 
> I'm not saying for certain this is the problem; I'm still probing...
> --------
> cheers,
> Derek
> 
> ----- Original Message -----
> From: "Philip D." <philip1987 at hotmail.com>
> Date: Tuesday, December 10, 2002 11:16 am
> Subject: RE: Windows program error
> 
> 
> 
> 
>

new topic     » goto parent     » topic index » view message » categorize

7. RE: Windows program error

ahh... I see.

The error was that CCS_BOTTOM is an extended flag. The docs don't say that.

To use CCS_BOTTOM as a flag, you have to do this:

status_bar=createEx(StatusBar,status_text,snake_window,0,0,0,0,0,{CCS_BOTTOM})
                  ^                                            ^
Ex, not just create                          An extra zero as
                  a parameter before the extended flags.
--------
MrTrick


-----Original Message-----
From: Barnes Patrick 
Sent: Tuesday, 10 December 2002 13:58
To: 'EUforum at topica.com'
Subject: RE: RE: Windows program error


The part of the code that made that error appear was this:

include Win32Lib.ew
constant Window1 = createEx( Window, "Window1", 0, Default, Default, 400, 300,
0, 0 )
constant status_bar=create(StatusBar,"test",Window1,0,0,0,0,{CCS_BOTTOM})
WinMain( Window1,Normal )

Is CCS_BOTTOM supposed to be a statusbar flag?

-----Original Message-----
From: Dan Moyer [mailto:DANIELMOYER at prodigy.net]
Sent: Tuesday, 10 December 2002 13:48
To: EUforum
Subject: Re: RE: Windows program error



Even worked on an old, creaky, archaic, cobwebed non-modern Win98 1st ed  :)

Dan Moyer

----- Original Message ----- 
From: "Derek Parnell" <ddparnell at bigpond.com>
To: "EUforum" <EUforum at topica.com>
Sent: Monday, December 09, 2002 5:08 PM
Subject: Re: RE: Windows program error


> 
> Philip,
> you were trying to create a StatusBar control. I'm guessing you are 
> using an old version of Windows, maybe earlier than Win98 2nd Edition.
> 
> Does this program work...
> 
> ------------
> include win32lib.ew
> constant w = create(Window, "", 0, 0, 0, 300, 300, 0),
>          s = create(StatusBar, "", w, 0, 0, 0, 0, 0)
> WinMain(w, Normal)
> 
> ------------
> If not, you may need to move to a more modern version of Windows.
> 
> I'm not saying for certain this is the problem; I'm still probing...
> --------
> cheers,
> Derek
> 
> ----- Original Message -----
> From: "Philip D." <philip1987 at hotmail.com>
> Date: Tuesday, December 10, 2002 11:16 am
> Subject: RE: Windows program error
> 
> 





***********************************************************************




***********************************************************************

new topic     » goto parent     » topic index » view message » categorize

8. Re: RE: Windows program error

----- Original Message -----
From: Patrick.Barnes at transgrid.com.au
Subject: RE: Windows program error

> 
> ahh... I see.
> 
> The error was that CCS_BOTTOM is an extended flag. The docs don't 
> say that.
> 
> To use CCS_BOTTOM as a flag, you have to do this:
> 
> status_bar=createEx(StatusBar,status_text,snake_window,0,0,0,0,0,
{CCS_BOTTOM})
>                  ^                                            ^
>                  Ex, not just create                          An 
> extra zero as a parameter before the extended flags.
> --------
> MrTrick
> 

Sorry Patrick, 
I explained to Philip the full reason for the fault. It went something 
like this...

CCS_BOTTOM is a normal (not extended) flag for status bars and it is 
the default in win32lib. However, by placing it in a sequence on the 
create() call, it had the effect of removing the other default flags. 
The key one was WS_CHILD. This meant that he was trying to create a non-
Child control but was specifying a parent control at the same time. 
Windows didn't like that so it didn't create a new hWnd value.

In win32lib, if flags are used in the create or createEx calls, and 
they are in sequences, they replace ALL the default flags for the 
control type. To add flags to the defaults, you must provide them as an 
atom in the create call.

     -- This replaces the default flags...
     x = create(whatever, ...., {flag1, flag2})

     -- This merges with the default flags...
     x = create(whatever, ...., or_all({flag1, flag2}) )

In the upshot, there is no need to have CCS_BOTTOM explicitly mentioned 
in this program.

--------
cheers,
Derek

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu