#1 How to use SmartWin with WinMain

open
nobody
None
5
2004-08-01
2004-08-01
No

Here is an example of how to use SmartWin with
WinMain and NOT with int main( Application & app )

I haven't been looking too much at it, I see that there's
is returned an Application object (not by reference) from
the CreateContext (which should be impossible since
Application is a Singleton) plus some other minor things,
but it could probably serve as a starting to someone
who just HAVE to use SmartWin WITH the WinMain
function as the entry point...

All though I suspect that there probably want bee too
much use of it now since there now is a CommandLine
object...
The lack of CommandLine parsing was the initial reason
to why Tu Nam built this version...

Thanx to Tu Nam for writing the patch and for sending it
to me!

Great work!
:)

BTW!
you need to supply a WidgetWindow derived class called
WidgetTest1 to compile it...

BTW2!
Use at OWN risk!
Neither ME nor Tu Nam will take eny responsibility
regarding the functionality in these files!

Discussion

  • Thomas Hansen

    Thomas Hansen - 2004-08-01

    Patch for using SmartWin with WinMain

     
  • Peter Kuemmel

    Peter Kuemmel - 2005-11-22

    Logged In: YES
    user_id=1159765

    This is only a test of the new configuration:
    "on changes drop a email to the list "
    Peter

     
  • Peter Kuemmel

    Peter Kuemmel - 2005-11-22

    Logged In: YES
    user_id=1159765

    Next attempt:
    This is only a test of the new configuration:
    "on changes drop a email to the list"
    Peter

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks