473,322 Members | 1,714 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,322 software developers and data experts.

Visual Basic PortDelete problems in Vista

I am having problems with adding a deleting a printer port in code for Windows Vista. I am creating the port with AddPortEx() (I know this is obsolete, but the adding works in Vista, so I have no motivation to find something that works in Vista). To delete the port, I call DeletePort(). In OS's previous to Vista, this delete works, however in Vista, i get the error message "The requested resource is in use." Is there a different way to do this in Vista so it will work? I know there is a way, I just don't know what it is. :-P

Thanks!
Aug 19 '08 #1
1 1352
Sorry, I meant DeletePort, not PortDelete. Sorry. Any thoughts?
Aug 25 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Ralph | last post by:
I used to have Visual Basic .net std. 2003 installed on WinXP SP1A. But I found it too hard to upgrade WinXP to SP2. Now, I do have WinXP SP2 installed, but I am having problems installing...
5
by: Microsoft | last post by:
Hi, I have Visual Basic .net 2003 (Standard Edition) & SQL Server 2000 Developer Edition. When trying to create a connection in the server explorer from the .net IDE I get a number of problems;...
13
by: Mark Rae | last post by:
Hi, On Friday I attended the Microsoft EVO conference in London where they talked about Vista, Office 2007 and Exchange 2007 and how they all work together beautifully, how they were all...
97
by: Master Programmer | last post by:
An friend insider told me that VB is to be killled off within 18 months. I guess this makes sence now that C# is here. I believe it and am actualy surprised they ever even included it in VS 2003 in...
25
by: Marco | last post by:
Hi everyone. I've been trying to move some small applications written in vb.net 2003 to vb.net 2005 express just for testing purposes. I have noticed so far that the applications seem to run ...
1
by: =?Utf-8?B?QWpheSBTaGFyZGE=?= | last post by:
Is there any way by which we can make visual basic C++ compatible with WIndows vista
9
by: | last post by:
Does anyone know which edition of Vista you have to buy if you use Visual Studio and probably will upgrade to Visual Studio 2008? Is the Ultimate edition necessary, or will the home or business...
2
by: =?Utf-8?B?amVmZmVyeQ==?= | last post by:
have a problem installing visual basic 2008 express edition web install on vista it completed installing the runtime components successfully and then it says ".net framework 3.5 and the other...
2
by: =?Utf-8?B?TWlrZSBNaWtl?= | last post by:
Multiple problems I believe are related. First SqlDatasource in designer "Object reference not set to an instance of an object." I believe problems is caused by unable to read and bind the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.