473,804 Members | 3,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB6 to VB .NET Terminal Server APIs

Hi.
I need to use Windows Terminal Server APIs in my app.
The only sample code i've found is written in VB6, but I understand VB .NET.
I've found a sample app which contains all the code I need, but when
converted to VB .NET it won't build because if many errors in code, which i
can't fix.

Can someone help me?
Can someone rewrite it in VB .NET?
The sample app can be found at:
http://www.mentalis.org/vbexamples/v...mple=GETINFOTS

Thanks in advance
Nov 20 '05 #1
5 2134
1.) The API is in on the MSDN site. you can look it up easy enough.
2.) For code converter from C# to VB.NET
http://authors.aspalliance.com/aldot...translate.aspx

HTH

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Nikolay Petrov" <jo******@mail. bg> wrote in message
news:OJ******** ******@TK2MSFTN GP11.phx.gbl...
Hi.
I need to use Windows Terminal Server APIs in my app.
The only sample code i've found is written in VB6, but I understand VB ..NET. I've found a sample app which contains all the code I need, but when
converted to VB .NET it won't build because if many errors in code, which i can't fix.

Can someone help me?
Can someone rewrite it in VB .NET?
The sample app can be found at:
http://www.mentalis.org/vbexamples/v...mple=GETINFOTS

Thanks in advance

Nov 20 '05 #2
Scrub the second bit of my reply, I was having a mad moment there and
thought you said C#

OK When you have imported a VB6 project , there is a number of TODO's which
it constructs for you to point to where errors are. Can you post these along
with the corresponding code snippets to the NG and someone will take a look.

Also

If there are any bits of code ( Other than that ) which wont compile, you
can post this too.
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Nikolay Petrov" <jo******@mail. bg> wrote in message
news:OJ******** ******@TK2MSFTN GP11.phx.gbl...
Hi.
I need to use Windows Terminal Server APIs in my app.
The only sample code i've found is written in VB6, but I understand VB ..NET. I've found a sample app which contains all the code I need, but when
converted to VB .NET it won't build because if many errors in code, which i can't fix.

Can someone help me?
Can someone rewrite it in VB .NET?
The sample app can be found at:
http://www.mentalis.org/vbexamples/v...mple=GETINFOTS

Thanks in advance

Nov 20 '05 #3
Hi Terry,

I thought you know how to use it with dotNet on terminal server, was it not
Peter who gave you a link?

Cor
Nov 20 '05 #4
Yes thats true, but now Im not working there anymore and dont have a copy of
that message nor can I find it here in my current listings.
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Cor Ligthert" <no**********@p lanet.nl> wrote in message
news:uX******** ******@tk2msftn gp13.phx.gbl...
Hi Terry,

I thought you know how to use it with dotNet on terminal server, was it not Peter who gave you a link?

Cor

Nov 20 '05 #5
Hi,

Here you go. I didn't do much testing.
http://www.onteorasoftware.com/downloads/getuinfots.zip

Ken
------------------

"Nikolay Petrov" <jo******@mail. bg> wrote in message
news:OJ******** ******@TK2MSFTN GP11.phx.gbl:
Hi.
I need to use Windows Terminal Server APIs in my app.
The only sample code i've found is written in VB6, but I understand VB
.NET.
I've found a sample app which contains all the code I need, but when
converted to VB .NET it won't build because if many errors in code, which
i
can't fix.

Can someone help me?
Can someone rewrite it in VB .NET?
The sample app can be found at:
HYPERLINK
"http://www.mentalis.or g/vbexamples/vbexample.php?v bexample=GETINF OTS"http:/
/www.mentalis.or g/vbexamples/vbexample.php?v bexample=GETINF OTS

Thanks in advance


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.0 - Release Date: 6/12/2004
Nov 20 '05 #6

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

Similar topics

5
7582
by: TPoise! | last post by:
Using: .NET 1.1, Visual Studio 2003, C#, Microsoft Windows 2000 Server (SP4 and all latest windows updates), Terminal Server running in application mode. I have a C# application that I've deployed to our terminal server for remote users to use. However, normal users (simple domain users) can not run the application. After double clicking on the icon, an hourglass appears as if its loading then it goes back to the normal cursor. ...
8
2743
by: OHM | last post by:
Hi peoples, I dont know where to place this question, so as I know you guys are all resourceful experts, I thought I would try here. I am writing some code which will be run usingh remote desktop ( On windows 2003 Server ), I need to determine in the code the machine name and username. If I use GetUsername and GetMachineName, it simply gives me the name of the currently logged on user ( at the Server ) and the Servers Machine Name.
6
4048
by: Atley | last post by:
I have a Terminal Services server running Windows 2000 Server. I need to be able to identify, in my application on that server, which client computer is addressing that server and running that application. it can be by IP or by machine network name... Doesn't matter. I am using Visual Basic .Net 2003 Any help would be greatly appreciated.
0
1064
by: Microsoft News | last post by:
Anyone knows how to find out how many instances of Terminal Server is running? If I have a Terminal server that has 5 licenses and 4 user's logon I want to know how to find out that 4 users are logged on. I'd like to do this all through code. Right now I am using VB.Net and trying to keep track of how many instances of my application is running. However, that does not work if the users logon with different usernames. Example: John...
3
1751
by: shawn | last post by:
In the past I have had SQL and Terminal server on the same PC. With SQL and Windows 2003 Terminal server, you can not have them on the same PC. How can I make this work with SQL and Terminal and 2 different PC's? I have 30 users that need to log on to my SQL database.
5
2008
by: cityrock | last post by:
Hello friends. It has come time for me to face a dilema i have been thinking about for a long time, but actually doing nothing. Now its time to act. The situation is "simple", and i have just spent hours reading other posts regarding the advantages and disadvantages upgrading my mdb (jet engine) to an sql BE. I am the system engineer, administrator and programmer of our company's database. Our mdb FE is very complex, using hundreds of...
7
3051
by: mike | last post by:
We have numerous Access 97 apps that we run on our Terminal Server, but two apps in particular is giving us a problem. The problem we are running into is when you select a drop down menu, it errors out saying the SQL server cannot be found. This is through the terminal session and when logged on the server locally. If I run the apps on my workstation they work fine. In one of the problem apps, it runs flawless except for a similar...
10
6167
by: gary0gilbert | last post by:
An unusual spin to this recurring disk or network error in a Terminal Server environment. Access 2000, Terminal Server 2000, file server is windows 2000. All users have a separate copy of the front end db, everyone accesses the back-end db via a network share. To preface, non Terminal Server users (4 or 5 in office) never have this problem. There are two Terminal Servers running win 2000, both basically identical. This error affects...
16
4001
by: =?Utf-8?B?RHdlZWJlcmVsbGE=?= | last post by:
I created an Access 2007 application for my customer. The application is shared by three employees on a server. It maintains a contact list including financial data and social security numbers. Only the office manager generates reports in Access from this client data. Now they want to share this Access application with employees at a remote office. They expect to have a maximum of 30 employees editing the client list in both the...
0
9707
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9585
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10586
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10323
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6856
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5658
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.