Jacob Kruger wrote:
> Although have looked around, haven't found too much consistent
> information relating to doing something like referencing a DLL,
> preferably using something like a relative file path, as opposed to
> having it as a registered DLL through regsvr32, etc.
>
> Is this possible/
Jacob Kruger wrote:
> How easy/simple is it to actually compile python code into a DLL to be
> used on windows by other programming languages, etc.?
>
> I can easily enough use py2exe to generate command line apps that can
> be called using command line arguments, etc., but was just wondering
> (
I have tried a lot of code found on the net such as the following:
http://pastebin.com/raw.php?i=a19kZMeQ
or also the following code:
*import win32gui, win32con*
*def wndProc(hwnd, msg, wParam, lParam):
if msg == win32con.WM_CREATE: print 'message: WM_CREATE'
if msg == win32con.WM_SIZE:
Hi,
2012/1/13 pierre baral
> and on my Windows, the message WM_CREATE is never sent.
> That's not the case for the others messages which are correctly called but
> not WM_CREATE
I found an answer from 2005 :-)
http://grokbase.com/t/python.org/python-win32/2005/04/python-win32-cant-catch-wm-cre
ARGH, too bad :)
Does anyone know a message which is send only one time during the life of
an application, just after the createwindow call? ;-p
2012/1/13 Amaury Forgeot d'Arc
> Hi,
>
> 2012/1/13 pierre baral
>
>> and on my Windows, the message WM_CREATE is never sent.
>> That's not the case
pierre baral wrote:
> ARGH, too bad :)
>
> Does anyone know a message which is send only one time during the life
> of an application, just after the createwindow call? ;-p
WM_ACTIVATE is sent when your application becomes the topmost app. You
can use a global to do something the first time you s