R.Working's Q&A profile
.NET Development Create a query based on data in the dataset
I'm looking for a way to retrieve data (e.g. for a report) from the dataset. To retrieve data from the database directly is no problem. Also it is no problem to retrieve the data from one table of the dataset, but I now want to do a select statement over more than one table and the data must come from the dataset. Is that possible And if so, how Do you need to join DataTables inside of the DataSet If yes, then you could use DataRelations between multiple DataTables. Here is also sample of the helper class to join http://support.microsoft.com/kb/325688/en-us ...Show All
Visual C++ Read a memory location
hi, I want to read a memory location of system Actually i hav one h/w monitor ic acting as a slave to my cpu(master). this ic measures cpu temp,fan speed,voltage etc. i have an address 0x2e at which it is connected. i2c is used for communication. can anyone pls let me know how do i read the data read by this h/w monitor ic. how should i find out which memory location to read Please help. Thanks in advance, Manasi Probably 0x2e is a port, not an address. Addresses that low are reserved; I forget the details, but I think that address would be used for an interrupt vector. Let's assume however that it is an adddress; a real address, not virtual. Windows would not al ...Show All
Visual Studio 2008 (Pre-release) can i superimpose WPF 3D into a video stream
i could previously embed Direct3D into a DirectShow video stream. is WPF going to support something similar i know that you can put video into a WPF 3D world, so i could make an application that has both ... but i really want to do this in a video stream and not an app. Thanks, casey No, we don't provide a way to access the underlying DirectShow implementation. In fact, if you're running on Vista, it might not even be DirectShow running underneath. We are investigating ways that we could support lower level access such as this in a future release. This will not be supported in .NET Framework 3.0. ...Show All
Visual Studio Custom editor coloring
I've managed to get custom colors working and my custom colors to appear in the options dialog list, but the editor windows are not always updated after the colors are changed in the VS options window. I have to exit and restart VS in order for the new colors to be used. The docs for Colorizable item allude to something more that needs to be done to support this. In the Remarks section: "The ideal place to construct an array of custom colors is in the constructor of your implementation of the LanguageService class. If you support customiztion of the colors, then you would initialize this array in LanguageService.CreateDocumentProperties after the DocumentProperties object was created." Why would I initialize this arra ...Show All
SQL Server Use Session Variables as Parameter Values for RDL Server Reports
I'm somewhat new to ASP.NET (since Oct 2005 Beta 2 of Visual Web Dev Express), and very new to SSRS (since last week). I have a web site project using VWD Express and SQL Server 2005 Dev Edition, with SSRS up and running. I am trying out both server (RDL) and client (RDLC) reports in the web project using the Reportviewer control. At this point, I'm leaning towards the server report approach, but I am stuck on a basic issue. I need to have the reports generate based on parameters that get their values from session variables. I've searched through all available documentation and found tons of info on parameters, and have prototyped reports that work well using prompts for values. Functionally, though, it makes no sense for me to prom ...Show All
.NET Development How to pass the command to the other executable file?
Hi, I'd like to make a gnuplot to load a file and do some commands in the file. I would like to use C#. I found that I could use in C#: Process.Start("wgnuplot.exe"); to call and run gnuplot, but I don't know how to pass the command for the gnuplot. The command I'd like to pass to gnuplot is: load 'command.gp' where command.gp contains some commands for the gnuplot. There are qestions: Is it possible to pass the command to the other executable file If it is possible, how to do it Thank you very much, Komomomo I'm making an asumption here so correct me if I'm wrong but is wgnuplot, "Win-GNU-PLOT" and therefore have accessable source code ...Show All
Software Development for Windows Vista What is the best way to clean install my hard drive
I have a major problem with my Compaq Presario v2710ca and need to restall Vista and Windows 2007 once they are released. Everything will be backed up. Currently running Wondows XP Home, Vista RC2. Pete a non-geek person, who Beta tests. Hello consultpete, I would utilize the new Windows Backup application in Vista to backup your data onto a separate drive / partition or CD / DVD. After a successful backup I would do a clean install by booting off the Windows Vista DVD and format the partition you wish to install Vista on. Here is a link to the Windows Backup feature site: http://www.microsoft.com/windowsvista/features/foreveryone/backup.mspx . This forum is geared more towards developers, I would a ...Show All
Windows Forms Maximized form is visible on the screen before call to OnShow()
Steps to reproduce: Create new Windows Application project Add control to the main form (e.g. ListView) Set form's WindowState to Maximized Override OnLoad() and OnShow() methods Set breakpoints on the calls to the base and run under debugger Note that the form is present on the screen when OnLoad() is hit (before call to OnShow()) Note that form's content (the ListView) isn't visible yet Repeat same steps for WindowState set to Normal and compare using any visual designer is not proper to learn something in depth. The following few lines of code will do it quite painlessly, and everything will be in front of ur eyes-- using System.Drawing; using System.Windows.Forms; class F ...Show All
Visual Studio Express Editions Global functions not always showing up on class view
I'm using visual studio express C++. For some reason, the class view does not always list all the functions in one of my .c files. They might appear or not appear in the class view depending on the order than I list them in the .c file. The functions are independent and don't depend on each other. I have another file in the same project that has no problems. I've already checked that show public, private, protected, other, inherited members are checked in the options for the viewer. I can't figure out if I've set something wrongly at some point while playing around with some of the outlining options etc. Thanks Ling I have had that too. Sometimes it helps to click save all and give VC about ...Show All
Visual C# ignore mouse down event
I'm new to C# programming, learning it for pleasure on my own time. As an exercise, I'm creating a simple Windows program that 1) takes the mouse-down event as an 'anchor' point, 2) while dragging the mouse around continually draw a line from that anchor point to the current mouse position, 3) once the mouse-up occurs, shrink the resulting line down automatically until it disappears. Not too hard, and it works perfectly fine. My problem is that I do not want the Form to accept any mouse-down's while the shrinking logic is occurring. Currently, while the line is shrinking, I can do some more click-and-drags, and once the shrinking completes, those subsequent lines are drawn/shrunk in like fashion. I want to effectively ignore any mouse- ...Show All
.NET Development Dataset query in memory, xml
Hello. I've been still struggling with querying an in memory dataset. Linq isn't going to be finished for awhile so there is a gap between OOP and relational databases. My design is to pull down info into datasets, manipulate data ( requires complex queries to show info to user) then post data back to database. Here is the query I wish to perform: Schema: PrimaryTable { Key1 (, Key2 } (Composite keys) ForeignTable { ID, Key1, Key2 } (Key1, Key2 are foreign key, ID primary key} Query: Select A.Key1, B.Key2 From PrimaryTable A Where not exists { Select B.Key1, B.Key2 From ForignKeyTable Where A.Key1 = B.Key1, A.Key2 = B.key2} So this query can't be done with a normal select from a single table. I was thinking that ...Show All
Visual Studio Tools for Office Edit the Document Object Model in a new Outlook Mail Item
Hi all, I have a DataSet with a table that I want to place into a new mail item. What is the easiest way to achieve this so that the table is nicely formatted Can I access the DOM in the mail items I have looked into it, but did not have much luck. Any pointers welcome. Grant. Yep. It can be done. What you want to do is check if you are using WordMail. Then, you can access the WordEditor property of the Inspector. Then, you have access to the Word OM. the Amazing Sue Mosher explains how to format your Outlook messages here: http://www.outlookcode.com/d/formatmsg.htm You should also consult the following resources for more assistance: http://blogs.msdn.com/johnrdurant/archive/2005/12/07/vsto_outloo ...Show All
SharePoint Products and Technologies Problem using SPContext and library URLs
Hi, I have started to build a custom web service for WSS 3.0 and have been using SPContext to work out which site the user is currently accessing. This works fine. I would like to be able to do the same for a library within a site. If the web service is addressed via a URL that references a library then SPContext.Current is NULL. Is this correct or am I doing something wrong or just missing the point. Thanks ...Show All
Visual Studio Express Editions installing - Visual C# 2005 Express Edition
I am trying to install Visual C# 2005 Express Edition, but I get the error: Error 1406. Could not write value to key \Software\Classes\.dtd\OpenWithList\VCSExpress.exe. Verify that you have sufficient access to that key. I am running Window XP SP2 on a single pc (no network). I am useing the only user account on the pc and it is administrator. Can anyone tel me what's wrong Thanks There is a similar problem: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=793590&SiteID=1 Hope it helps ...Show All
Windows Forms Editing in Datagridview!
Wadup! I have a GUI with a datagridview . The user can select some data (out of an integrated table) and the selected data from this table will be automatically written into a row of the Datagridview. Now that the data has been entered in the datagridview row, i want to implement a feature in which the user can manually go to row( with a mouse click for example) and make some changes in the data (for example change age=23 to age =24) which was automatically transferred from the table based on user selection. so basically i want to implement edit functionality for a datagridview row on a mouse click event after some data has been entered in the row. Ho do i do it Cheers! Sorry, I got the wr ...Show All
