DellS's Q&A profile
Visual C# USB read write
Hello, I am looking for a sample code ( C# , C++ , VB ) to read and write to usb port. data can be binary or ascii , any help is greatly appreciated thanks Michael hi , thanks for your reply , how about a simple case of two PC's connected via USB port and process A writes to and process B reads from the USB port . I don't have to do this in C# , any language (C++,JAVA , PERL , etc.. ) is acceptable. thanks Michael ...Show All
.NET Development how to format the xml output received by the web service.
hi, i want to format(customize) the output of the web service xml output: From Something like below (am receiving it now) : < xml version="1.0" encoding="utf-8" standalone="no" > - < ItemH > < Item > 1 </ Item > < Description > Chai </ Description > < Item > 2 </ Item > < Description > Chang </ Description > < Item > 3 </ Item > < Description > Aniseed Syrup </ Description > < Item > 4 </ Item > < Description > Chef Anton's Cajun Seasonin ...Show All
Windows Forms How to make certain variables global to all forms? (C#)
I have this problem.. my main form class (MainForm) declares some variables that should be global, in a sense. Let's say my app, at startup, loads a bunch of user data.. into a list (List<UserInfo>). I want that list available application-wide. So if a preferences dialog opens up, and it needs to populate a ListView with that List<UserInfo>, it can. What is the best way to achieve this, in C# Hi there, Assuming you meant using Model-View-Controller (MVC) then I'll give you the quick 10 cent tour. Basically, your data abstraction, i.e. non-user interface type, exposes some (or all) of the data to interested parties and to notifiy those parties when the data changes. This is the Model part of MVC ...Show All
Visual Studio CrystalReport (Could not load Assembly) Visual Studio 2005
I have an application in Visual Studio 2005, the crystal report gives the following error 'Could not load file or assembly, "CrystalDecisions.Windows.Forms" Version = 10.2, Culture=neutral, PublicKeyToken = 692.... or one of its dependencies. The system cannot find the file specified.' I have to deploy this app and I need help. It runs on the development machine without error. But on different machine then the error will come and the report would not display. the following are the reference that are added. CrystalDecisions.CrystalReports.Engine; CrystalDecisions.Enterprise.Framework; CrystalDecisions.Enterprise.InfoStore CrystalDecisions.ReportSource; CrystalDecisions.Shared; CrystalDecisions.Win ...Show All
Visual Basic How to receive output from a command line program?
I'm working on a GUI for the Valve Half-Live Dedicated Server Software, to make it easier for me to make a server. The software contains a command-line updater, that outputs its progress as it updates. How do I start the updater running, capture the output each time a line is outputted, and provide the user with a means of cancelling the process To start the command line process and capture the output Public Function ProcessStartAndCaptureOutput(ByVal CmdFile As String, ByVal args As String) As String Dim p As Diagnostics.Process = New Diagnostics.Process p.StartInfo.FileName = CmdFile p.StartInfo.Arguments = args p.StartInfo.UseShellExecute = False p.StartInfo.RedirectStandardOutput = True p.Start() ...Show All
Visual Studio 2008 (Pre-release) Programatic Selection of Query Sort...
Assuming I am using the code: personBindingSource.DataSource = from p in SPApp.DBContext.Persons orderby p.PersonLast descending select p; How can I programatically select ascending/descending so I don't have to code 2 separate statements Is there anything I can use in the Query namespace that defines the direction, which I could use as a variable here to specify I ask because I have at least 10 queries where I need to do this, I'd really hate to make it 20. You probably want something like this: Func<Person,IComparable> lambdaArg; switch(columnIndex) { case 1: lambdaArg = p => p.name; break; default: lambdaArg = p => p.dob; break ...Show All
SQL Server XML source drops data - can I fix in XSD?
XML looks like this: < xml version="1.0" standalone="yes" > <hist key="ABC"> <r date="2006/04/21" time="08:53:04" seq="1029">123</r> <r date="2006/04/21" time="09:21:40" seq="1613">123.25</r> <r date="2006/04/21" time="09:37:22" seq=" 89">194.21</r> <r date="2006/04/21" time="09:37:22" seq=" 91">194.21</r> <r date="2006/04/21" time="09:37:22" seq=" 93">194.22</r> <r date="2006/04/21" time="09:37:22" seq=" 95">194.22</r> </hist> In SSIS it reads all t ...Show All
Visual Basic display multiple languages in one form
Hello I have a problem displaying more than one language in the same form. I have the data in access.mdb files in two languages (Arabic and Greek) and tried to display it using two datagrid views on the same form but was unable to do it. The data will be displayed according to the preset locale of the machine. I have tired to change the language by setting the UI culture as explained in the Walkthrough:Localizing Windows Forms but no luck. Can anyone help me with this. Thanks Batico Batico, Firstly, please make sure your operating system supports the multiple language in order that the .NET Framework support it ,too. Secondly, there is a file called AssemblyInfo that need to use the System.Reflection.AssemblyC ...Show All
SQL Server Cancel does not cancel
Hi, I wonder if Excel ASOLEDB9 is benefiting from cube partitioning Some queries are very slow and the Excel generated code look not that good I tried to pick some queries from SQL Server Profiler and run them in an mdx query window and I get syntax errors. This leaves me perplex since I have the feeling that people try endless queries through their Excel pivot cube, then, after a while they cancel the Excel query because it takes forever, then the server remain stuck on a high level of CPU usage. Is it because the syntax error or is it because they just ask for too much data Is canceling an Excel pivot data refresh enough to stop the server's query processing Yesterday night, it was so bad (100% CPU) that I had to restart the ...Show All
Visual Studio 2008 (Pre-release) LINQ and Atlas
Ok so what I am trying to do is have a form with a textbox for a search dialog. On keypress I want to query top 25 records and display them in a gridview, so as you type it refines the search etc. So I have hooked up all the atlas javascript methods etc but I am not sure if I am able to do this or not. Basically my webservice code looks like (generated with BLINQ): return from dom in db.Domains select dom; So this should return all my records (fine for now in testing) and my javascript receiving function does the following: function OnComplete(result) { var d = document.getElementById( "<%# grid1.ClientID %>" ); d.DataSource = result; d.DataBind(); } This results in an error of: System.InvalidOperati ...Show All
Visual C++ Get workgroup!
Hello, how can I get programmicaly name of the workgroup in Windows 98 Thenk you very much! That was so simply, but I can't guess! Well, maybe, it will be suit for me but...can it do programmicaly in Win32 API ...Show All
Visual Studio Team System Deleting tasks from a TFS project
How can I delete all the tasks that are under a particular project in TFS Note that "Destroy" is a Version Control feature, not a Work Item Tracking one. The following thread has some useful information on the topic: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=350042&SiteID=1 Cheers, Adam ...Show All
SQL Server Performance issue when using Reporting Services?
I have found indications in internet that the performance isn’t optimal in SSRS – both the CPU resources and the memory are consumed in a way that affects the performance a lot. The CPU resources are the same as SQL Server uses and if SSRS consumes a lot of these resources this might affect other parts. The memory can also be an issue since the SQL Server Standard edition is the one we uses and this is limited to 2GB RAM as I understand it. Are these “bad performance” indications true In some articles it is even pointed out that the SSRS should be placed on a Stand-alone server which thereby causes additional licenses. Is this really the case It depends how you look at it. Essentially what you have be ...Show All
Visual C++ Shared memory IPC
Dear all I would like to achive IPC through two procesess by using the shared memory aproach. I did some research but could not find an apropriate example that would describe that. There are few that are trying to talk about the efficiency but nothing that shows how to: Process A would write to shared memory Process B would detect that something is written and pick it up. and vice versa from B -> A Any help would be apreciated. Sincerely You asked the same question in Best approach for IPC... Confusion about what to use... and Windows IPC....help . You should not post the same question in two different forums. In the first one, you were told that this question is outside the scope of this forum. ...Show All
Visual Studio VS.NET C++ Debugger no longer loads DLL symbols when we attach to the host process.
We've notice a problem recently whereby attaching the debugger to our host process no longer allows us to debug our DLLs. Repro: set a breakpoint in DLL then go to Debug-menu->Processes and attach to the host process. Result: the DLL's breakpoint is now shown with a ' ' (question mark) in it, indicating that the symbols were not loaded. This used to work OK, so we are wondering: what has changed Also, how do we fix this By the way, in VS.NET 2003, Modules Window, clicking on any of the modules and using the right mouse-button menu to reload symbols opens a dialog box which let's you browse to and the select the appropriate pdb file (it defaults to the correct folder), unfortunately select ...Show All
