473,434 Members | 1,394 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,434 software developers and data experts.

NETSEND Application in VB6

Hello,

I am bored with the NETSEND Command Line interface. Hence, I have
written a NetSend application using VB6. This program internally
calls the Shell command to send the message. How can I know the
SUCCESS/FAILURE of the NETSEND command from VB? If the msg was not
sent successfully, I want to trap it and give an alert in my NetSend
User Interface.

Any help on the above would be appreciated. Is there any other way to
develop the NET SEND application in better way.

Regards,
Kamlesh
Jul 17 '05 #1
4 7951

"Kamlesh" <ka*********@yahoo.com> wrote in message
news:26**************************@posting.google.c om...
Hello,

I am bored with the NETSEND Command Line interface. Hence, I have
written a NetSend application using VB6. This program internally
calls the Shell command to send the message. How can I know the
SUCCESS/FAILURE of the NETSEND command from VB? If the msg was not
sent successfully, I want to trap it and give an alert in my NetSend
User Interface.

Any help on the above would be appreciated. Is there any other way to
develop the NET SEND application in better way.

Regards,
Kamlesh


If you want a status report, look up NetMessageBufferSend using netapi32..
so you can get status like:

returnCode = NetMessageBufferSend(.sServerName, _
.sSendTo, _
.sSendFrom, _
.sMessage, _
ByVal Len(.sMessage))
Jul 17 '05 #2
Kamlesh <ka*********@yahoo.com> schreef in berichtnieuws
26**************************@posting.google.com...
Hello,
Hello Kamlesh,
I am bored with the NETSEND Command Line interface. Hence,
I have written a NetSend application using VB6. This program
internally calls the Shell command to send the message. How can
I know the SUCCESS/FAILURE of the NETSEND command
from VB? If the msg was not sent successfully, I want to trap it
and give an alert in my NetSend User Interface.
I would advice you, just like Raoul did, to take a peek at the
NetMessageBufferSend API-call, as interfacing with a command-line program
(and retrieving it's output) is mostly more difficult and more work than
understanding this, relativily simple, API-call is.
Any help on the above would be appreciated. Is there any other way to
develop the NET SEND application in better way.


Jup. Use the force Luke ! .... I mean use the API-call Kamlesh :-)

Regards,
Rudy Wieser

Jul 17 '05 #3
Here is a link showing the function in use...

http://vbnet.mvps.org/code/network/n...buffersend.htm

Rick - MVP
"Raoul Watson" <Wa*****@IntelligenCIA.com> wrote in message
news:qu*****************@nwrdny02.gnilink.net...

"Kamlesh" <ka*********@yahoo.com> wrote in message
news:26**************************@posting.google.c om...
Hello,

I am bored with the NETSEND Command Line interface. Hence, I have
written a NetSend application using VB6. This program internally
calls the Shell command to send the message. How can I know the
SUCCESS/FAILURE of the NETSEND command from VB? If the msg was not
sent successfully, I want to trap it and give an alert in my NetSend
User Interface.

Any help on the above would be appreciated. Is there any other way to
develop the NET SEND application in better way.

Regards,
Kamlesh
If you want a status report, look up NetMessageBufferSend using

netapi32.. so you can get status like:

returnCode = NetMessageBufferSend(.sServerName, _
.sSendTo, _
.sSendFrom, _
.sMessage, _
ByVal Len(.sMessage))

Jul 17 '05 #4
"R.Wieser" <rw***************@xs4all.nl> wrote in message news:<40*********************@dreader5.news.xs4all .nl>...
Kamlesh <ka*********@yahoo.com> schreef in berichtnieuws
26**************************@posting.google.com...
Hello,


Hello Kamlesh,
I am bored with the NETSEND Command Line interface. Hence,
I have written a NetSend application using VB6. This program
internally calls the Shell command to send the message. How can
I know the SUCCESS/FAILURE of the NETSEND command
from VB? If the msg was not sent successfully, I want to trap it
and give an alert in my NetSend User Interface.


I would advice you, just like Raoul did, to take a peek at the
NetMessageBufferSend API-call, as interfacing with a command-line program
(and retrieving it's output) is mostly more difficult and more work than
understanding this, relativily simple, API-call is.
Any help on the above would be appreciated. Is there any other way to
develop the NET SEND application in better way.


Jup. Use the force Luke ! .... I mean use the API-call Kamlesh :-)

Regards,
Rudy Wieser

I thank everyone (Watson, Rothstien, Wieser) for the replies and
suggestions. NetMessageBufferSend API works fine.

Going forward, I am anxious to know how the chat programs like
Yahoo/MSN are developed? Does any of you guys are aware of it? I am
interested in studying the chat programs and write one which works on
Internet. Please recommend me any websites/books.

Best Regards,
Kamlesh
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: J. Baute | last post by:
I'm caching data in the Application object to speed up certain pages on a website The main reason is that the retrieval of this data takes quite a while (a few seconds) and fetching the same data...
3
by: Amit Dedhia | last post by:
Hi I am developing a Dot net application (involving image processing) on a uni processor. It works well on my machine. I then take all my code on a multi processor, build and run the application...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
20
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in...
6
by: Josef Brunner | last post by:
Hi, I published my application (VS 2005) and am now trying to install it when I get this error message. It worked before...even on a different machine. Here is the detailed description: ...
9
by: jeff | last post by:
Hi All. I realize that when my Deployed winforms application starts, Windows needs to load the .net 2 framework before control is given to my application.... Is there anyway to either ... -...
3
by: asadikhan | last post by:
Hi, I have written a windows application with a GUI (let's call it MENU). I own the code for this application and have access to it. We have another application that is a third-part windows...
2
by: Michael Kalika | last post by:
Hi, We have developed a VSTO 2005 Excel application and we would like to leverage ClickOnce deployment mechanism for distribution of this application. How can we do that? I was digging in MSDN...
7
YarrOfDoom
by: YarrOfDoom | last post by:
Hi, I'm trying to find something like netsend (removed from Vista), preferably without having to install something on the "target"-pc. Can somebody help? Yarr Of Doom
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.