jenn hweehuangdong's Q&A profile
.NET Development Create virtual com port in C#?
I'm working on a project where I am reading from a com port to receive data from a GPS receiver. I can do this without any problems except for one. There is also another application that wants to read from the com port at the same time. I know there are com port splitters that I could use but I'd rather not have to use any 3rd party software. Is anyone aware of any way of emulating a com port so that I can point the other application to this port and have it read the data that I am spitting it Thanks, Brady I don’t believe that this is possible to emulate a com port through the SerialPort class. The only op ...Show All
Visual Studio Express Editions ShellExecute
Is there a C# alternative of C++ platform sdk function ShellExecute It's used to open a file in an associated program (among other uses). Hi Mike, Can we use the 'System.Diagnostics.Process.Start(info)' for elevated executable in Vista to support UAC Or we must use the ShellExecute() API as used in C++. My requirement is to break my existing exe into two saperate exe's as explained as "Admin Broker" Model. Warm Regards Tushar ...Show All
Visual Studio Express Editions Can I use a web page as a data source?
Can I use an html web page, such as a television listings site, and take information off of it to use in C# Express Is it possible and if it is, how hi, you can use webclient in System.Net namespace, then you can parse the page text, this page has example to get webpage source http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=306109&SiteID=1 hope this helps ...Show All
Visual Basic TSweb modifications
This will sound pretty simple to most but for a Sysadmin I'm missing something basic. I want to edit the default.htm of the tsweb page to launch a program on connection. I have tried to follow the following:- http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwts/html/w2ktsac.asp Can anyone dumb it down for me as the following is not clear:- How do I edit the IMsTscSecuredSettings interface properties and Where is before the connect method The following sample VBScript can be used to launch Microsoft Notepad upon connection. It should be called before the Connect method is called. if MsTsc.SecuredSettingsEnabled then ...Show All
Visual Basic What's the Difference between Visual Basic Express and Visual Basic 2005
Are there more commands Faster compiling Faster code I read that Visual Studio 2005 also has a 64bit compiler... does that include Visual Basic 2005 I understand that VB wasn't going 64bit - but that's a shame because MS is pushing us to move to 64bit. Well, we certainly need the compilers for it, don't we >Are there more commands Yes, there are more features. You can see a feature comparison here http://msdn.microsoft.com/vstudio/products/compare/default.aspx >Faster compiling Faster code No they use the same compiler. >I read that Visual Studio 2005 also has a ...Show All
Windows Forms SelectedIndexChanged in C# WinFrms databind listbox
I am having a problem with coding the SelectedIndexChange event on a listbox that's bound to data from a database. When I code the SelectedIndexChange event, it is fired when the listbox is populated with the data from the database, which results in a never ending loop and the application gets stuck. I really only want the event to fire wh ...Show All
Visual Studio SqlConnection.Open - debugging problem
Hi, I'm trying to move my projects to .Net 2.0 with VS 2005. I've got a problem trying to debug SQL related methods. At runtime sqlConnection.Open works fine (!) while under debugger it throws exception " The connection was not closed. The connection's current state is open ". What I do is: 1) create new SqlConnection object 2) assign connection string 3) assign the object to Connection property of newly created and set SqlCommand 4) call SqlConnection.Open. Before step 4 I checked connection state ...Show All
Visual Basic Access or SQL Which one is better
Hi I'm wondering, which one would be better, i'm creating 2 medical programs, that are going to be running on a local machine, I Use visual Basic 2005 express and don't know if I should develop with access or SQL 2005 express. Which one is better and faster Any suggestions or comments will come in handy. PS. Future versions might have network connections, like for a secretary or interoffice connections. So should i work on access or SQL express SQLE is *better* in that it does more. The real question is, which is the appropriate tool fo hte job. If you expect to run the database on a seperate ma ...Show All
Visual Studio Team System Code analysis reports on Visual Studio generated code
Heya, I have a problem with the Code Analysis (FxCop I assume). Its reporting warnings on code generated by Visual Studio, such as code in the xForm.Designer.cs files. For example: Warning 99 CA1303 : Microsoft.Globalization : FLogOn.InitializeComponent():Void passes a literal as parameter 1 of a call to Control.set_Text(String):Void. Retrieve the following string argument from a resource table instead: 'OK' How can I turn off Code Analysis for generated files Cheers, Chris Chris, I'm not an expect with Team Foundation Server, so I suggest you ask how to do this in the Team Foundation Forum . Cheer ...Show All
Visual C++ Needed information on size_t datatype
Hi all, Can someone explain me: - The use of type size_t - Why do we use size_t , if other datatypes are available size_t is a platform dependent type. size_t is 32-bit on a 32-bit platform and 64-bit on a 64-bit platform while this is not the case with our traditional datatypes such as int, float. If we are porting a 32-bit application to 64-bit platform. This type causes a lot of warnings. warnings of the type: y:/include/datum.cxx(443) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data Please suggest solutions to remove this kind of warning. Also send me the relevant links if p ...Show All
Visual C# Question about class design best practice
I've been trying to find and answer to this question for some time so I hope it can be answered here. My question is regarding the use of properties (get/set) in a class that will not be exposed to the public. Is it better (i.e. more effecient, best practice, Microsoft way, etc) to use a property to facilitate the use of an external object within a class as in example 1. OR just use the external class's properties directly without a property as in example 2. It's obvious that there is less code in example 2, but I would like to know if there is or isn't a benefit in using a private property 1. Using a Property namespace R ...Show All
Visual Studio Team System Cannot access Documents in Team Explorer when not logged on as TFSSETUP
I have the Beta 3 Refresh of TFS installed. I logged in as TFSSETUP and created a new Team Project (AdventureWorks). In addition, I added my personal id to the admin groups in the Team Foundation Server Security Group and Windows SharePoint Services Role. In the server/reports server, I added BUILTIN\Users to the Properties\Security (this was not enabled by default and thus everyone other than server administrators received security errors for the project portal web parts... which was not well documented, btw) When I connect in Team Explorer as TFSSETUP and access the Adventureworks Team Project, everything is fine. However, when I log in ...Show All
.NET Development Using a non-transactional SqlConnection within a TransactionScope
Hi, I'm writing a resource manager. It's code will often be executed within the boundaries of a TransactionScope. The problem is that I would like to log all attempted actions on the resource to a database. Ofcourse all attempts that fail also have to be written to the DB. This means that I cannot let the SqlConnection I use to be executed within the transaction boundary of the resource manager... How can I make sure that this doesn't happen Let's make things clearer with an example. Consider having a 'RemoteResource' and that you would like to execute RemoteResource.ActionX within a TransactionScope: using (TransactionScope ts = ...Show All
Visual Studio Express Editions Visual Basic 2005 Express, MS Office 2007 Beta, and Excel .Net Reference
I downloaded and installed Microsoft Office 2007 Beta and have discovered a problem with the Excel .Net references when working with VB 2005, but can't find where to report it. The 2007 version causes overload errors in the part of my code that accesses Excel. I had to reload the Excel 2003 .Net advanced option and load Excel 2007 without the .Net advanced option to get rid of the errors. This is my first experience using a Beta product from Microsoft and I thought I woud be able to find a link easily to report things like this, so if I'm just looking in the wrong spot, I would appreciate being redirected. Thanks! Cindy ...Show All
Microsoft ISV Community Center Forums PowerPoint, WORD, and Macros
So I've read all about how to format a WORD document with Headings so that it comes out right in powerpoint slides. However, I have a 91 page document already done in it's own format and needs to translate each page onto a slide in powerpoint. Send to and all those things suggested from importing word to powerpoint don't work. So I figure writing a macro would work. Problem is, I don't know where to begin with it. I'm thinking page breaks but I'm clueless. Is there already a macro out there or an easy way of doing this I can't be the first one. Help! -Tiffany Here's some additional info f ...Show All
