karond's Q&A profile
.NET Development USB Classes for basic communication
I am using Visual C++ 2005 Express Edition to develop a .NET managed application. I want to communicate over Serial Port or USB to a custom Atmel AVR microcontroller embedded application. I have already coded (but not tested) my app. using the System::IO::Ports::SerialPort class. I don't see any USB classes (like there is the SerialPort class in my VC++ 2005 installation. How do I communicate over USB using .NET managed classes for simple serial byte oriented communications Any sample code would be much appreciated. Thanks, David Harrison Hello David, Unfortunately the .NET Framework ...Show All
Visual Studio Express Editions Problems with Splash Screen and VB 2005 Express
I create a default splash screen using Add New item | Splash Screen and then I select it in the project properties. When I run in it the VB2005 environment, the splash screen shows as expected, but then gives an error message: NullMessageException was unhandled . before running the application. Without the splash screen the application runs fine. The exception detail follows. Has anybody any idea what I am doing wrong The funny thing is if I breakpoint the code, depending on where I place the breakpoint in the Splashscreen_load , the exception does not come up. After some experimentation, the problem also may be related to my code. Th ...Show All
SQL Server sql2005 database restore from another sql2005 backup file error.
hi i try to restore a bak file from another sql2005 server to my sql2005 server, but it show the error message as below : TITLE: Microsoft SQL Server Management Studio Express ------------------------------ An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo) ------------------------------ ADDITIONAL INFORMATION: Cannot open backup device 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\backup.bak'. Operating system error 5(error not found). RESTORE HEADERONLY is terminating abnormally. (Microsoft SQL Server, Error: 3201) For hel ...Show All
Visual Studio Visual Studio 2005 Tools for Applications
You have stated that VS Tools for Applications is due for beta release early 2006. Can you be more specific about the time frame e.g. do you mean January 06 or might it be later. I have a project that requires it ASAP. Thanks I just confirmed with the VSTA Lead Program Manager that Microsoft Visual Studio 2005 Tools for Applications (VSTA) SDK will be included as part of the Microsoft Visual Studio 2005 SDK - February 2006 Community Technology Preview (CTP). You can download the various VS SDK Release to Manufacturing (RTM) and CTP Editions at http://www.vsipdev.com/downloads ...Show All
Windows Forms BindingNavigator Inheriting Extending
I wanted to use the binding navigator with a few more buttons (print, save, etc.) I would also like to reuse it in a few forms. Rather than adding the buttons and code everytime, I thought to create my own control by inheriting/extending the BindingNavigator. The problem I am having is I can't get my buttons inserted in the order I want. It appears that the default navigation buttons and stuff aren't created until design time. I can't find an event or some technique to insert my buttons after the default buttons are created. Any ideas public partial class BindingNavigatorEx : BindingNavigator   ...Show All
Visual Studio Team System Question about authentication through VPN??
Hi, We have some long term contract developers that work for us - we provide them a VPN account to get into our network and I was wondering if that will work the the TFS client the user logs into their computer using either the domain account or local account (not sure which one) then VPN's to our network - question is, with the TFS integration with AD, does that work through only a VPN connection or does the user "really have to be logged into our domain" Also with the proxy server addition, if we place a proxy server at their site, does that have to be part of the domain I would assume that needs a VPN connection too s ...Show All
Visual Studio File Open Filters
Where does the shell's Open File dialog (File, Open, File...) get its list of filters from I've searched the registry and can't find any of the filters that appear there. I would like to: 1: add my list of files to the filter and 2: set my filter to the default if this dialog is opened when a node of my project heirarchy has focus. Thanks. The extensions and names of the files are retrieved from the registry for the packages that are registered with Visual Stydio. If you wish to create your own text editor, you will need to create a language service that knows how to register your file extensions. The VSIP SDK has information ...Show All
Visual Studio Team System Check-in policy results in high use of shelving
Check-in policies are a great idea. The result is that we need to find an alternative method for backup up developer's work, since they will no longer be able to check-in periodically throughout a day. Shelving appears to be the best option. However, shelving requires creating a shelveset name, and results in multiple versions of files if done daily or even more frequently. Shelved projects can be deleted and a naming convention developed, but the entire process seems potentially unruly. Any recommendations, work around, or thoughts on how to best manage this process with a team Thanks in advance. Mark ...Show All
.NET Development Is there a limit on the number of modems that I can use with System.Io.Ports?
I read that the .netcf would have a 4 serial devices limit. I am looking for the limit on the regular .net v2. Thank you. RYoung We do not enforce any artificial limit on the number of serial devices supported. We should support as many devices as windows support (255 I think). Ryan Byington [MS] ...Show All
Visual Studio jump to url - parameters
I use navigation/jump to url property to link reports. It works very nicely except that I can't figure out how to pass the report parameters from here. Please help. ...Show All
Visual Basic passing Null dates as parameters to functions
Hi What's the best way of passing in Null / empty date fields as parameters to functions What's the best way of passing in a date into a VB function as a null/empty value - at the moment I am checking to see if it = #12:00:00 AM# , but this seems somewhat haphazard ! thanks Bruce Test if date variable is nothing: Dim testDate As Date = Nothing MsgBox(DateIsNull(testDate)) testDate = Date .Now MsgBox(DateIsNull(testDate)) Private Function DateIsNull( ByVal testDate As Date ) As Boolean If testDate.Equals( Nothing ) Then ...Show All
Smart Device Development How to Display Modal Dialog?
Basically, I have a fairly straightforward question. How to display a modal dialog form and then return to the calling form. Most of my experience to date is with VB6 and I'm probably just going about this the wrong way. I'm using the following code to display a Help|About dialog from a menu click. Fairly standard. private void mnuAbout_Click( object sender, EventArgs e) { frmAbout frm = new frmAbout(); frm.ShowDialog(); } I'm assuming that the ShowDialog is modal, and that's how it differs fom the Show method. Maybe I'm all wrong about this. Anyway here's what happens. The About dialog appears, and when ...Show All
SQL Server Unable to execute SQLCMD using System.Diagnostics.ProcessWindowStyle.Hidden
For some strange reason, I am unable to use the SQLCMD utility hidden. My code is preety straight-forward, I use it to enumerate a list of available servers and I can't use SMO since it requires Windows XP SP2 and my application may be installed in Windows 2000. My code looks like this... ProcessStartInfo startInfo = new ProcessStartInfo (); startInfo.Arguments = "-Lc" ; startInfo.CreateNoWindow = false ; startInfo.FileName = "sqlcmd.exe" ; startInfo.RedirectStandardError = true ; startInfo.RedirectStandardOutput = true ; startInfo.StandardErrorEncoding = Encoding .UTF8; startInfo.StandardOutputEncoding = Encoding .UTF8; ...Show All
Visual FoxPro object is not defined but uncatchable
It is a very strange situation and I have tried various combinations to beat it for a few days--to no avail. The code kept getting more complicated so bear with me please. The issue here is that there is a treeView and an outside button that is supposed to trigger some action. This action (search) needs TreeView.SelectedItem.Text and Tag properties. If I forget to make a selection beforehand the Type (" SelectedItem") is Undefined ("U") and I hoped to catch it and issue a warning. It turns out I cannot . I do not understand why. It seems in many other situations similar traps work fine. In desperation I began using two co ...Show All
SQL Server SSIS using up all my memory
I have a WO-WO (no sorting, aggregating, etc.) SSIS package that reads ~26,000,000 rows from a SQL DataReader source, looks up a bunch of surrogate keys, derives a couple of values, and writes out to two SQL Server Destinations. The process gradually consumes all of the memory on the server, slowing it to a crawl. I reconfigured SQL Server to use a maximum of 8000 MB to mitigate the problem; however, the memory is not released unless I stop and restart SQL Server. Is this expected behavior for SSIS The server is configured with 11GB, 64x8 Xeon running Windows 2003 x64 and SQL Server 2005 x64. ...Show All
