πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #570

Re: MSMQ and C++ builder

#570
From: Darko Miletic
Date: Wed, 27 Feb 2008 19:33
25 lines
1897 bytes
TomaοΏ½ wrote:
> I'm trying to find an example code for using MSMQ for Builder 5 or 6. Can 
> anyone help me, please ?
> 

All the samples are generaly available as part of MSDN documentation. 
What you need is just set of header files and lib files for borland and 
these are already included with both BCB5 and BCB6.

To use MSMQ API you just need to add this header:

#include <windows.h>
#include <mq.h>
#pragma comment(lib,"mqrt.lib")

Here is doc location:

Writing a Message Queuing Application using C/C++
http://msdn2.microsoft.com/en-us/library/ms707133(VS.85).aspx

Using Message Queuing
http://msdn2.microsoft.com/en-us/library/ms705205(VS.85).aspx

Message Queuing Reference
http://msdn2.microsoft.com/en-us/library/ms700112%28VS.85%29.aspx
Technical Details
Message-ID: <47c5ad12@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <47c532c3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,fac3526abfcb0ccb
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII
Date: Wed, 27 Feb 2008 16:33:47 -0300
From: Darko Miletic <kiklop@fibertel.com.ar>
Reply-To: Darko Miletic <kiklop@fibertel.com.ar>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: MSMQ and C++ builder
References: <47c532c3@newsgroups.borland.com>
In-Reply-To: <47c532c3@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Antivirus: avast! (VPS 080227-0, 27/02/2008), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 200.49.157.165
Message-ID: <47c5ad12@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1204137234 200.49.157.165 (27 Feb 2008 10:33:54 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail