?
Solved

API call NetMessageBufferSend in VB.net

Posted on 2003-03-27
3
Medium Priority
?
552 Views
Last Modified: 2008-10-20
It was quite easy to use NetMessageBufferSend() API to broadcast a message in VB6 as the strings domainname, computername, etc were converted to Unicode using strConv. I am having problem in getting the function work in VB.net. Though I have read that the strings in vb.net are stored as unicode, it doesn't seem to accept strings in the API function.

Can someone please help me in locating some examples of NetMesageBufferSend function in vb.net?

Thanks
Souvika  
0
Comment
Question by:Souvika
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Accepted Solution

by:
tshdos earned 200 total points
ID: 8222356
If you declare the function like this:

Public Declare Unicode Function NetMessageBufferSend ...

it will force all strings to unicode.

(You can also use ...Declare Ansi... for Ansi strings)
0
 

Author Comment

by:Souvika
ID: 8222377
Thanks a lot.. it worked.

Souvika
0
 

Author Comment

by:Souvika
ID: 8222575
One problem is still there: the messenger service pop up shows funny characters after the message (eg: !???!!!). This was not there in VB6 app.

Any solutions?

Thanks
Souvika
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question