Re: hWnd to string



"Alex Blekhman" <xfkt@xxxxxxxxx> wrote in message
news:%23wlfsJk4GHA.4196@xxxxxxxxxxxxxxxxxxxxxxx
Oyvind Eriksen wrote:
I usually code in C# so C++ isn't my strongest side.. :-)
I'm creating a small C++ application that show a splash screen while the
C# application is loading.
My plan is to pass the splash window handle (hWnd) as a command line
argument when executing the C# application and then close the window with
the C# application when its finished loading. Everything works well
except casting (converting) the hWnd to a string. I've tried what I know
of casting, and using the sprintf function but I can't make functional
code.
If anybody could help me I would be very thankful!

Just out of curiosity, why do you need separate application [moreover,
written in C++] for splash screen? Can't you just create another window
from main C# application and show it?

The C# application will be running on some pretty old machines.
It's also somewhat large so on these machines it takes about 20 seconds to
start :-(
Several users will launch the application several times because apparently
nothing is happening...
This C++ application launches instantly and shows the splash screen until
the C# application is finished loading.

Btw, I'm very embarrassed about this question now I'm finished... :-)


Regards,
Oyvind Eriksen


.



Relevant Pages

  • Re: How add buton onto title bar of any external active window?
    ... I want to add buttons ontoany active window. ... int sm_CXSIZE; ... static int WindowsFeaturesWidth(HWND hwnd, DWORD style) ... LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Are VBA userforms always child of Windows desktop?
    ... I only need this Hwnd of the parent, ... GetAncestor API (with GA_PARENT) to get Parent. ... I suppose which window you need will depend on the overall objective. ... Private Declare Function GetDesktopWindow Lib "user32" As Long ...
    (microsoft.public.excel.programming)
  • Slow Soft-RAID 5 performance
    ... The Kernel boot log is attached as boot.msg ... MEM window: disabled. ... registered new interface driver usbfs ... Loading ide-core ...
    (Linux-Kernel)
  • Re: Why doesnt this recursive function return the right value?
    ... sClassName Like ClassName & "*" Then FindWindowHwndLike_B = hwnd lHolder = hwnd ... Couldn't find anything for the ClassName comparison. ... Dim s1 As String, s2 As String ... 'finds the first window where the class name start with ClassName ...
    (microsoft.public.excel.programming)
  • Re: Creating new appointment & setting its properties
    ... The window and process subclassing I've seen with WordMail is horrendous, it's miles of code just to get a true hWnd for a WordMail window usually. ... Private Declare Function GetForegroundWindow Lib "User32.dll" As Long ... Private Declare Function FindWindowEx Lib "User32.dll" Alias "FindWindowExA" (ByVal hwndParent As Long, ByVal hwndChildAfter As Long, ByVal lpszClass As String, ByVal lpszWindow As String) As Long ...
    (microsoft.public.outlook.program_vba)