deepak patil | 1 Dec 2009 06:28
Picon

Re: Re: My Application is not listed in "Application" tab in task manager

Its a dialog based application.

On Mon, Nov 30, 2009 at 7:50 PM, Igor Tandetnik <itandetnik@...> wrote:

>
>
> deepak patil wrote:
> > this a new baby in WTL, I am writing an application that interacts with
> > a com based service, problem is when program is running it's not listed
> in
> > "Application" tab in task manager but visible as a process.
>
> Applications tab is basically a list of all visible top-level windows,
> largely unrelated to a list of running processes. If you want your
> application to appear that, have it create a window.
> --
> With best wishes,
> Igor Tandetnik
>
> With sufficient thrust, pigs fly just fine. However, this is not
> necessarily a good idea. It is hard to be sure where they are going to land,
> and it could be dangerous sitting under them as they fly overhead. -- RFC
> 1925
>
>  
>

--

-- 
Thanks and Regards,
  Patil Deepak K.
(Continue reading)

izm_ka | 1 Dec 2009 19:26
Picon
Favicon

Re: high color imagelist in treeview

> Do you mean 32-bit colour with alpha? 

Yes, this is it.

> make sure your manifest has the appropriate dependency.

Yep, I found the way to specify the depecnedcy:
#pragma comment(linker,"/manifestdependency:\"type='win32'
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86'
publicKeyToken='6595b64144ccf1df' language='*'\"")

I have included manifest into the rc file:
IDR_MANIFEST            18      DISCARDABLE     "res\\manifest.xml"

manifest.xml content:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
	processorArchitecture="x86"
	version="5.1.0.0"
	type="win32"
	name="WTLnirvana"
/>
<description>WTLnirvana</description>
<dependency>
	<dependentAssembly>
		<assemblyIdentity
			type="win32"
			name="Microsoft.Windows.Common-Controls"
			version="6.0.0.0"
(Continue reading)

Andrey Sergienko | 3 Dec 2009 15:11
Picon

WTL, GUI and Thread

Hello!

I'm writing a WTL-application.
I have some function that operates with TCP/IP.
It spends a lot of time on work.
So I want to display some status of it working on an application
window.
How I can do that? I think it is needed to put that function in a
thread. So how it can be possible that thread have an access to
application window and make some like SetText on it?
thank you

--

-- 
regards,
 Andrey                          mailto:andrey.sergienko@...

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

(Continue reading)

Dick Dievendorff | 4 Dec 2009 01:00
Picon

RE: WTL, GUI and Thread

Your long-running thread can't make UI function calls.  But it can issue
PostMessage to put user-defined status update messages onto the message
queue of your UI thread.

Dick

-----Original Message-----
From: wtl@...
[mailto:wtl@...] On Behalf Of Andrey
Sergienko
Sent: Thursday, December 03, 2009 6:12 AM
To: wtl@...
Subject: [wtl] WTL, GUI and Thread

Hello!

I'm writing a WTL-application.
I have some function that operates with TCP/IP.
It spends a lot of time on work.
So I want to display some status of it working on an application
window.
How I can do that? I think it is needed to put that function in a
thread. So how it can be possible that thread have an access to
application window and make some like SetText on it?
thank you

--

-- 
regards,
 Andrey                          mailto:andrey.sergienko@...

(Continue reading)

Andrey Sergienko | 4 Dec 2009 07:41
Picon

Re[2]: WTL, GUI and Thread

Hello.

Can you, please, put a piece of code here for example or give me a link where to read about that?
Thanks!

> Your long-running thread can't make UI function calls. But it can issue
> PostMessage to put user-defined status update messages onto the message
> queue of your UI thread.

-- 
Regards
 Andrey                          mailto:andrey.sergienko@...

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    wtl-digest@... 
    wtl-fullfeatured@...
(Continue reading)

Johann Gerell | 4 Dec 2009 08:29
Gravatar

RE: WTL, GUI and Thread

http://www.codeproject.com/KB/threads/usingworkerthreads.aspx

-----Original Message-----
From: wtl@...
[mailto:wtl@...] On Behalf Of Andrey
Sergienko
Sent: den 4 december 2009 07:42
To: Dick Dievendorff
Subject: Re[2]: [wtl] WTL, GUI and Thread

Hello.

Can you, please, put a piece of code here for example or give me a link
where to read about that?
Thanks!

> Your long-running thread can't make UI function calls. But it can issue
> PostMessage to put user-defined status update messages onto the message
> queue of your UI thread.

--

-- 
Regards
 Andrey                          mailto:andrey.sergienko@...

------------------------------------

Yahoo! Groups Links

------------------------------------

(Continue reading)

Konstantin Mironovich | 4 Dec 2009 12:08
Favicon

Re: WTL, GUI and Thread

seems overcomplicated.

volatile int statusID; // will be enough for current case.

statusID = STATUS_XXX; // is atomic operation so any lock is not needed

see also IBindStatusCallback as a good example of how a status info could be
http://msdn.microsoft.com/en-us/library/ms775060(VS.85).aspx

-km
  ----- Original Message ----- 
  From: Johann Gerell
  To: wtl@...
  Sent: Friday, December 04, 2009 10:29 AM
  Subject: RE: [wtl] WTL, GUI and Thread

  http://www.codeproject.com/KB/threads/usingworkerthreads.aspx

  -----Original Message-----
  From: wtl@...
[mailto:wtl@...] On Behalf Of Andrey
  Sergienko
  Sent: den 4 december 2009 07:42
  To: Dick Dievendorff
  Subject: Re[2]: [wtl] WTL, GUI and Thread

  Hello.

  Can you, please, put a piece of code here for example or give me a link
  where to read about that?
(Continue reading)

Johann Gerell | 4 Dec 2009 12:56
Gravatar

RE: WTL, GUI and Thread

Ehum?

Are you calling PostMessage overcomplicated and mentioning
IBindStatusCallback as a counter-example, all in the same breath?

That's a higher sense of humor.

Your example of volatile gives little information on how a GUI thread can be
notified of a change to it. You still need to communicate between the
threads. Atomically changing volatile data has some use, but it's (as you
sort of mention) limited to lock-free scenarios.

/Johann

-----Original Message-----
From: wtl@...
[mailto:wtl@...] On Behalf Of
Konstantin Mironovich
Sent: den 4 december 2009 12:09
To: wtl@...
Subject: Re: [wtl] WTL, GUI and Thread

seems overcomplicated.

volatile int statusID; // will be enough for current case.

statusID = STATUS_XXX; // is atomic operation so any lock is not needed

see also IBindStatusCallback as a good example of how a status info could be
http://msdn.microsoft.com/en-us/library/ms775060(VS.85).aspx
(Continue reading)

Konstantin Mironovich | 4 Dec 2009 13:42
Favicon

Re: WTL, GUI and Thread

counter-example (for the case) before clause "see also"

-km
  ----- Original Message ----- 
  From: Johann Gerell
  To: wtl@...
  Sent: Friday, December 04, 2009 2:56 PM
  Subject: RE: [wtl] WTL, GUI and Thread

  Ehum?

  Are you calling PostMessage overcomplicated and mentioning
  IBindStatusCallback as a counter-example, all in the same breath?

  That's a higher sense of humor.

  Your example of volatile gives little information on how a GUI thread can 
be
  notified of a change to it. You still need to communicate between the
  threads. Atomically changing volatile data has some use, but it's (as you
  sort of mention) limited to lock-free scenarios.

  /Johann

  -----Original Message-----
  From: wtl@...
[mailto:wtl@...] On Behalf Of
  Konstantin Mironovich
  Sent: den 4 december 2009 12:09
  To: wtl@...
(Continue reading)

mgrandau | 4 Dec 2009 14:19
Picon
Favicon

Re: WTL, GUI and Thread

Just PostMessage a WM_SETTEXT to the window handle of the status window. You pass that window handle to the
worker thread at init.

http://msdn.microsoft.com/en-us/library/ms632644(VS.85).aspx

Use post message instead if sendmessage. Just make sure the memory where the string is placed doesn't go
away before the Post is processed.

--- In wtl@..., "Konstantin Mironovich" <const <at> ...> wrote:
>
> counter-example (for the case) before clause "see also"
> 
> -km
>   ----- Original Message ----- 
>   From: Johann Gerell
>   To: wtl@...
>   Sent: Friday, December 04, 2009 2:56 PM
>   Subject: RE: [wtl] WTL, GUI and Thread
> 
> 
> 
>   Ehum?
> 
>   Are you calling PostMessage overcomplicated and mentioning
>   IBindStatusCallback as a counter-example, all in the same breath?
> 
>   That's a higher sense of humor.
> 
>   Your example of volatile gives little information on how a GUI thread can 
> be
(Continue reading)


Gmane