[#138] Thread Problems — Reimer Behrends <behrends@...>

I have been looking at the thread implementation of Ruby for the past

21 messages 1998/12/23
[#164] Re: Thread Problems — matz@... (Yukihiro Matsumoto) 1999/01/05

Hi.

[#167] Makefiles and -lcurses — Klaus.Schilling@... 1999/01/05

Julian Fondren writes:

[#168] Re: Makefiles and -lcurses — Julian Fondren <julian@...> 1999/01/05

OpenBSD has ncurses and it's own ocurses, and I prefer the latter.

[ruby-talk:00155] Re: undefined method 'call'... help please

From: "Bryce" <crowdog@...>
Date: 1998-12-28 04:08:17 UTC
List: ruby-talk #155
Here is my source for the "init" function:

// START HERE
VALUE AppInit ( VALUE obj )
{
    // Declarations
    WNDCLASS wndclass;

    // GO !
    hApp = 0;

    wndclass.style         = CS_HREDRAW | CS_VREDRAW;
    wndclass.lpfnWndProc   = &AppDefProc;
    wndclass.cbClsExtra    = 0;
    wndclass.cbWndExtra    = 0;
    wndclass.hInstance     = GetModuleHandle ( NULL );
    wndclass.hIcon         = LoadIcon ( NULL, IDI_WINLOGO ); //
IDI_APPLICATION) ;
    wndclass.hCursor       = LoadCursor ( NULL, IDC_ARROW );
                                // API docs state that 1 must be
                                // added to the color constant!
    wndclass.hbrBackground = (HBRUSH) ( COLOR_BTNFACE+1 );
    wndclass.lpszMenuName  = NULL;
    wndclass.lpszClassName = __WINGKR_CLASS_NAME;

    if ( RegisterClass (&wndclass) )
    {
        printf ("\n b4 CreateWindow");
  hApp = CreateWindow ( __WINGKR_CLASS_NAME, /* window class name */
        NULL,           /* window caption */
        WS_OVERLAPPEDWINDOW,  /* window style */
        CW_USEDEFAULT,  /* initial x position */
        CW_USEDEFAULT,  /* initial y position */
        CW_USEDEFAULT,  /* initial x size */
        CW_USEDEFAULT,  /* initial y size */
        NULL,           /* parent window handle */
        NULL,           /* window menu handle */
        GetModuleHandle ( NULL ),              /* program instance handle */
        NULL) ;                 /* creation parameters */
  printf ("\n after CreateWindow");
  if ( !hApp )
  {
   printf ( "\n Failure to create window" );
  }
 }
 else
 {
  printf ( "\n Failure to register class" );
 }

 return Qnil;
}
// END HERE

Hope this helps.
Thanks.
Bryce

In This Thread

Prev Next