CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2010
    Posts
    4

    using MsgQ in Microsoft

    Hi gurus,
    Almost all my experiance in programming is under linux. I have to devlop a ThreadPool under MS VB2008.....
    Though, i have no clue about msgQ in MS and msdn talks only about MSMQ (What is that???? Something about MsgQs in distributed applications...), and unfortunatly doesent supply the most important thing: API???? What is up with them?

    I begin to think that there isnt any thing like msgQ in MS.....and they wany u to write it yourself (Is that fun or what???!!@#@)

    I would appriciate any help, Thank you all!
    hoshmy.

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: using MsgQ in Microsoft

    Quote Originally Posted by hoshmy View Post
    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
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  3. #3
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: using MsgQ in Microsoft

    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++ .

    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.

  4. #4
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: using MsgQ in Microsoft

    Quote Originally Posted by Skizmo View Post
    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?
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  5. #5
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: using MsgQ in Microsoft

    Quote Originally Posted by hoshmy View Post
    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 View Post
    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 View Post
    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 View Post
    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 View Post
    ..and they wany u to write it yourself (Is that fun or what???!!@#@)
    They certainly do not.

  6. #6
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: using MsgQ in Microsoft

    Are we talking about the same stuff here?
    I think so

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured