sorry for the dummy question, how about change the main to WinMain in
the code below when running on windows?


int main( int argc, char * argv[] )
{
    if( gtk_init_check( &argc, &argv ) )
    {
        hb_cmdargInit( argc, argv );
        hb_vmInit( TRUE );
        xhgtk_clean_items();
        hb_vmQuit();
    }
    else
        fprintf( stderr, "%s\n", "GTK+ Initilization Error" );

    return 0;
}

Regards,
Rodrigo

On Wed, Jan 21, 2009 at 4:34 PM, Lorenzo Fiorini
<lorenzo.fior...@gmail.com> wrote:
> On Wed, Jan 21, 2009 at 7:33 PM, Przemyslaw Czerpak <dru...@acn.waw.pl> wrote:
>
>> Just simply xhgtk/source/general.c contains main() function which is
>> detected by MinGW linker so it ignores -mwindows switch and creates
>> application with main() startup entry do it's not possible to use
>> any code which needs WinMain() (f.e. GTWVT) with MinGW when XHGTK
>> is linked. It should be fixed in XHGTK library probably using some
>> startup/cleanup code instead of creating wrapper to hb_vmInit()/
>> hb_vmQuit()
>
> Many thanks for the time.
>
> I'll forward the info to the xhgtk list.
>
> best rergards,
> Lorenzo
> _______________________________________________
> Harbour mailing list
> Harbour@harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to