Re: using MsgQ in Microsoft
Quote:
Originally Posted by
hoshmy
Almost all my experiance in programming is under linux
But only shell applications?
I've never done any windowed application for linux but I guess it's pretty much the same approach as in Windows.
Yes there is a message queue for every window in a windows application. You don't have to implement it though, MS has already done that for you. :)
http://msdn.microsoft.com/en-us/libr...90(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms141227.aspx
Re: using MsgQ in Microsoft
Quote:
I have to devlop a ThreadPool under MS VB2008.....
VB ? in that case you are in the wrong place. VB isn't the same as C++ ;).
Quote:
I've never done any windowed application for linux but I guess it's pretty much the same approach as in Windows.
There is one big difference. Windows uses messages and messagequeues to dispatch messages. Linux doesn't know what a message server is, it uses slots and signals to connect callback functions to objects.
Re: using MsgQ in Microsoft
Quote:
Originally Posted by
Skizmo
There is one big difference. Windows uses messages and messagequeues to dispatch messages. Linux doesn't know what a message server is, it uses slots and signals to connect callback functions to objects.
Are we talking about the same stuff here? Is this so even in a GUI application using KDE or similar?
Re: using MsgQ in Microsoft
Quote:
Originally Posted by
hoshmy
Hi gurus,
Almost all my experiance in programming is under linux. I have to devlop a ThreadPool under MS VB2008.....
This is the Visual C++ forum, so you are posting in the wrong forum.
At any rate, VB2008 is managed code. As such there is already a built-in thread pool class, called ThreadPool.
If you don't want managed code, then the only alternatives in VB is VB6. If you use VB6, you can call the Win32 thread pool api, QueueUserWorkItem.
Quote:
Originally Posted by
hoshmy
Though, i have no clue about msgQ in MS and msdn talks only about MSMQ (What is that???? Something about MsgQs in distributed applications...),
Windows is an event based system and uses messages and queues to communicate with the Windowy applications. Window size, repaint, mouse movements, etc are passed via with windows messages.
The Windows messaging system is different than MSMQ, which is a Message Queue system used to pass data between computers (or across the internet).
In terms of coding, both managed code and native code has classes or api's that work with MSMQ.
Quote:
Originally Posted by
hoshmy
and unfortunatly doesent supply the most important thing: API???? What is up with them?
There is plenty of documentation on all Windows api's. A good place to start is Msdn.
Quote:
Originally Posted by
hoshmy
I begin to think that there isnt any thing like msgQ in MS...
If you are talking about something like JMS (Java Messaging System), there certainly is. It's called MSMQ.
Quote:
Originally Posted by
hoshmy
..and they wany u to write it yourself (Is that fun or what???!!@#@) :)
They certainly do not.
Re: using MsgQ in Microsoft
Quote:
Are we talking about the same stuff here?
I think so ;)
Quote:
Is this so even in a GUI application using KDE or similar?
The slots and signals was created by QT, and KDE is build on QT.