General Fault's Q&A profile
Visual Studio Express Editions Serial port how to read bytes or words?
Hello, I am trying to use the serial port to read data from a pic microcontroller. I am using the serout2 command on the pic to send out data in bytes The main reason i used bytes is so make visual basic read bytes rather than characters that way when i send out say the number 200 from the microcontroller visual basic will store the whole number 200 as oppose to three numbers "2" "0" "0" Well at least that's my main point i could be wrong. The question is how do i use visual basic " the readbyte command" to read the byte and store it in a text file what i have so far will store numbers right next to each other without seperation. Here is the code i use to receive data offcourse after i open the com port. '-------------- ...Show All
SQL Server JOIN Filters and Non-numeric Keys
I expect that this is not possible but: I've created a initial filter on our tblLocation. I've created a join filter on the header table for our inventory data. I've create a join filter on the header table for our inventory detail data. The joins between the inventory header table and the inventory details table is on a three field key which are of type nvarchar. When I try to sync a subscription, I receive an error which indicates that it cannot bulk copy into the inventory details table on the subscriber because it would create duplicate keys. There isn't any duplication at the publishing server so, I expect this has something to do with the data type of the key/join fields. Am I correct If so, is there a workaround. ...Show All
SQL Server Memory issues, SSIS package out of memory Help
I am running Visual Studio 2005. I have an SSIS Package which is consuming a huge amount of memory. During the execution of the package the memory keeps increasing. Until finally i get an Out of Memory exception. I have run this package using dtexec, and in the BIDS. No difference. I do have some script components and have added some code to get the assemblies in the current appdomain. I do see that one particular assembly is increasing on every loop. VBAssembly every time it hits the script component is increasing by 6, and along with it the memory is climbing. What is this VBAssembly being used for is there an update to SQL Server Integration Services that I need Thanks! Aaron B. Aaron, Perhaps it ...Show All
Visual Studio Separate buttons fire same event - HELP ME PLEASE
I created a toolbar in Addin and have added 3 buttons. 1) I want 3 events for these 3 buttons. However, my code fires all the 3 events always. I have read and re-read the article below http://www.mztools.com/articles/2005/MZ006.htm but I have not been able to do the task at hand. 2) I want 3 bitmaps loaded to these buttons. I have read and re-read http://www.mztools.com/articles/2005/MZ007.htm This has not helped me. ******What are the equivalent comments for 2005 for the comments below ******** At this point you only need to inform Visual Studio .NET that your add-in uses a satellite DLL. In the registry entry HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.0\Addins\<MyAddinName>.Connect (use 7.0 f ...Show All
SQL Server Buttons
Hi. Is there a way to insert a command button or flash button on to a report im using SSRS 2005 with VS 2005 Thanks... ...Show All
Windows Forms Sample Code: DataGridView progress bar column
I have a column that has integer data in it, I want to display it as a progress bar in the column so the user can quickly identify lagging processes. I just started with 2005 and it looks great but does anyone know a quick way to do this I would also like to change the color of the progress bar based on the cells value. I found in the data sources toolbox where I can change the column to progress bar but that does not pass through to the grid. Thanks for ANY help with this Thanks! I really appreciate it. The code I posted above compiles and is pretty much a direct conversion of the C# code, but I get that error, so I must have done something wrong or am missing something req ...Show All
SQL Server Only show field on last page
Hallo, i would like to show some fields only on the last page on the report. How can i achieve this (The field is in the body area) King regards, Christian Niehaves You can exactly control the report pagination if this is what you after but if the fields are at the end of the report body (below the main report region) they will show last on the report. ...Show All
Software Development for Windows Vista Audio Device Enumeration inconsistent on Window's Vista
Hi, I have build a application which enumerates all the audio devices installed in the system and searches for a particular PnP audio output device. To provide this feature I make use of 'DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_DATA' data structure. I populate this data structure and register it with dsound.dll. As a result of it a callback registered by me is invoked depending upon the number of audio devices present in the system. This approach is working perfectly find in Window's XP and 2K. But on Windows Vista (32 bit) I am facing some unique problems. Though there are 2 audio devices present in my system but sometimes the callback registered is invoked just once. Hence I loss the other device. What may be the reason for this Follow ...Show All
Visual Studio Duplicate items are not supported by the "Resources" parameter error when building project
Hello, While building our current project using Visual studio 2005 we stumbled on this error, === Error 16 The item "xxx" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter === we traced the issue down to resource file naming convention differences between Windows Vista and Windows XP ie, for a given form, if we include chinese traditional and chinese simplified resources, On Vista the resx files must be named with zh-HANS / zh-HANT , using zh-CHS/zh-CHT VS2005 will choke On XP the resx files must be named with zh-CHS/zh-CHT, using zh-HANS/zh-HANT VS2005 will choke This is really causing trouble, as we develop both in XP and ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using xml files with XNA
I'd like to try using a settings file for loading/saving settings in my next XNA game, but I have no idea how to use XML. Looking at the xml file with SpaceWar, it doesn't look too difficult to learn (ie html easy), but I don't really know how to get started, and I've been unable to find tutorials on the 'net dealing with the issue of beginner xml w/ xna (likely because it's too obvious for most people to think of writing a tutorial for). Anyway, questions: 1. The settings.xml file contains all the settings needed, but the settings.cs file already has these hardcoded. Why does the .cs file need hardcoded settings if it's just planning to load the .xml file every time the game is starting up 2. This code: public void Save(string filen ...Show All
SQL Server Can't run SSRS Projects SSBIDS
I'm trying to open an Reporting Services project in Sql Server Business Intelligence Development Studio (which looks a lot like Visual Studio 2005). This project was copied from another computer where it runs normally. I get the following error when trying to open it... Package Load Failure Package 'DataWarehouse VSIntegration layer' has failed t load peoperly (guid = etc..). Please contact package vendor for assistance. Application restart is recommended, due to possible enfvironment corruption. Would you like to disable loadinug for this package in the future you may use 'devenv /resetskippkgs' to re-enable package loading. I also tried to create a new Reporting services project and I got the following error.... Could not lo ...Show All
Visual Studio Express Editions Running a program in conjunction with a batch file
Hi All, This is a tricky situation... I wrote an application that filters through a input text file to remove any " and add new headings etc. It contains 2 inout text boxes for the 2 inout text files and 2 output files... After specifying the location of both an clicking on the filter button it filters and saves the files. My question if if you can run this program form a dos batch file to automate the process. i.e. normally what would happen is you could do something like c:\filter.exe -title -filename1 -filename2 -output1 - output2 But how do you encorporate this into the program Thanks This is the code for converting the files: Me .Cursor = Cursors.WaitCursor tspDate.Text = "Converting..." Dim tl ...Show All
Visual C++ command-line build
Hi dear pigs, i have some .cpp and .h files and i want to build them from command-line. Actually visual studio provide this feature with one of these tree commands: 1- devenv 2- nmake 3- vcbuild The problem is that all of the above commands take a solution or .vcproj file as the prameter, but i want to build my files without having any solution and project. i emphasis that i want to build some C++ files without having any project but just the files. is there any way that i can make this i also appreciate any other approaches rather than command-line build. I am able to invoke msbuild with a vcproj argument. Maybe you can give us your output and we can look deeper into the problem. ...Show All
Visual Studio Express Editions Help listing price from ListBox into txtbox
I'm trying to figure out how to choose a item from the listbox and display the price in the textbox Thanks see i hv given the code for listbox items from database..try this.. Imports System.Data.OleDb Public Class Form1 Inherits System.Windows.Forms.Form # Region " Windows Form Designer generated code " Public Sub New () MyBase .New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 'Form overrides dispose to clean up the component list. Protected Overloads Overrides Sub Dispose( ByVal disposing As Boolean ) If ...Show All
Visual Basic open a form with only systray icon
Hello, how do i open a form so the form does not show and only an icon appears in systray I know how to make the icon but everytime I do this the form appears. I want to make the form only appear when I right click on the icon and say "appear". Thanks! Well I can get the form to hide on load but in the taskbar the icon is still there. I accomplish this by: (page load) me.hide() Me.opacity = 0 me.visible = false me.showintaskbar = false 'doesnt seem to work But if I right click and select the option from the contextmenu to sho the form I use: me.opacity = 100 me.visible = true me.showintaskbar = true If I have an option on the form once it is show to the user that sa ...Show All
