Emily Carlson's Q&A profile
.NET Development DataSet serialization problem through remoting (VS2005 release)
Hello, I have a problem with a client/server application using remoting (TCP channel on the same host) and DataSet. The server loads successfully an xml file using a typed DataSet (built by xml schema designer and MSDataSetGenerator), it also writes data back to the xml file without any problem. Everything seems to work fine on the server side. But, when the client tries to get the DataSet via remoting I get an exception: - $exception {System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.DataException: Invalid 'Key' node inside constraint named ...Show All
Windows Forms dragging only the outline of a form
how do i code my forms so that only a thin outline of the form is visable during the drag of the form; the form repaints (fills in) when the drag has been completed Great work! I found a few things in the code here I hadn't seen before. Thanks. ...Show All
Visual Basic StreamWriter giving me fits! much background and code ;^)
Let me apologize now for the length of this post…. This has me stumped (not that that’s hard to do). Let me give some background. I am creating a “sweeping” program for my FTP server (local, located in my office) that will use the filesystemwatcher to look for new folders (containing .wav or .dss files) as they are being uploaded and move them to a central location. Two of my major concerns for this app are the slow upload process for some of my clients, and that if the FTP server computer, or the app itself should freeze or be accidentally turned off (or we lose power past my backup’s battery capacity, etc. etc), th ...Show All
Visual Studio Team System Installing Visual Studio Team System
I have 2 partitions on my computer C : Windows XP Pro with VS 2003 and Visual Studio 2005 (not the Team foundation Server) D : Windows Server 2003 I installed a few weeks ago just to try projectserver 2003 the installation was done on the Windows Server 2003 on the D partition I installed SQLServer 2005 ctp April as mentioned in the installationguide I installed Sharepoint services as mentioned I tried to install Team System Server but got an error "Remove Visual Studio Foundation App-Data Tier Beta2 from this computer" but Visual Studio is not installed on this partition. How can I explain to my co ...Show All
Visual C# Convert string to date
Hi, I have string in unknown format of the date. I need to convert it to DateTime. How can I do this Thank's Alexei Why do you have a unknown format, then you can never parse it to a DateTime object. Because you need to know what the month, date and year is. ...Show All
.NET Development Help with apostrophe symbols in database items
I am using Visual Studio 2005 pro and C#. I am converting part of my application to work in SQL database, but I have a slight technical difficulty to get over. My application decodes a file which contains names and stores them into a database. However, some of the records in the decoded file contains the apostrophe ' symbol which causes problems with my varchar strings that I need to build and send to the SQL database, for example, the name " St. James' " contains the apostrophe symbol which is also a termination of a varchar string in SQL syntaxes. Is there any way I can get around this Also, if I need to drop/adjust t ...Show All
SQL Server How to hide a column in chart
Hi all, Is there a way to tell Reporting Service not to display a column in the chart For example, I has a bar chart report now has two bars represent column A and column B. I want to be able to display the column B value in the table below the chart. But on the chart, I don't want to display the bar that represent the column B value. Can I do that by modifying the RDL file How Can someone give me an example code in the RDL Thanks in advance You cannot hide columns in the chart - but in this particular case you could use filters instead (e.g. on the chart level, or at the category/series grouping level) ...Show All
Visual C++ Function or algorithum for finding a value
Hi, im currently trying to make s simple program that calculates a formula that the searching paramether cannot be calculated directly, its something like : 1/x = z.log10(x+y) where we know the value of Y and Z and need to find a fitting one for X. So my question is: Is there a function that can do the things easier or I got to find myself the value that works, and what algorithum to use Thx a lot Yes. . I think it can be solved via analytical methods. I think you can calculate the derivative, and analyze that. email me with particulars. I got my calc and dif eq's books dusted off. ...Show All
SQL Server What exactly can sp_executesql parametrize?
I am attempting to create dynamic SQL with sp_executesql. However, it seems that parameters can't be created arbitrarily in the query string. In particular, the name of the table apparently can't be parametrized, or I am doing something wrong. I use SQL Server 2000 with the latest service pack. The table task has a few columns of which TaskID is Primary Key and INT. This works fine: DECLARE @pot nvarchar(200) SET @pot = 1 DECLARE @pot2 nvarchar(200) SET @pot2 = 'task' EXEC sp_executesql N'SELECT * FROM task WHERE TaskID = @pot', N'@pot varchar(128), @pot2 varchar(128)', @pot, @pot2 However, this does not work: DECLARE @p ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting rendered graphics (quickly) from the card
I had a thread about thins some days back, but for some reason I can not write into it now. I am faced with the task of rendering some graphics with directx and then copying that graphics into another card which generates a video signal. I need to feed it a new frame 25 times a second. The size is 720*576 The rendering does not have to be any faster that this. I have tried two methods of geting the pixels, and both are much too slow. One takes 500ms for a frame and the other 1800ms. I need a time below 40 for this to work. I post the two methods below. Perhaps someone can provide input as to what I need to do. I might add that ot ...Show All
Visual C++ Cannot set VC++ Directories in the Options dialog of Visual C++ Express Edition
Details : The VC++ Directories page on the Options dialog does not have a list box for viewing and modifying the directories used during a build. Consequently, it is not possible to modify the build directories using the IDE UI. Workaround : C++ Directories can be added, removed or changed by modifying the VCProjectEngine.dll.express.config file located in the .\vc\vcpackages subdirectory of the Visual C++ Express Edition install location in a text editor, saving the changes and restarting the Visual C++ Express Edition. Please make sure that you also delete the file "vccomponents.dat" located in the "%USERPROFILE%\Local Settings\Ap ...Show All
Windows Forms DataGridView without active edit cell
Hi, I have set the datagridview SelectionMode property to FullRowSelect, but it still draw frame around the active cell. Does anyone know how to get rid of this active cell frame Thanks for all suggestions. Regards Sebastian Pusz The DataGridView does not have any built in way to suppress the focus rectangle around the cell. The best you can do is either A-- Handle the CellPainting event and call: e.Paint(e.ClipBounds, (DataGridViewPaintParts.All & &nb ...Show All
Visual C# Adding files to solution explorer of VS2005
Hi, Programatically i want add files to the solution explorer. Say for a particular project when opened in VS2005, the list of files are displayed in the solution explorer. At the end of the files i want to add some custom files programatically. Can any one help me out on this.. Thanks a ton in advance ...Show All
Visual Studio Team System How to checkin changes with a comment that has new lines in it?
I want to do: tf.exe checkin /comment:"line1\nline2" f1.txt where \n is a new line. Currently, when I execute the above command, the comment is literally :"line1\nline2" which is not what I want. echo line1 >> comment.txt echo line 2 >> comment.txt tf checkin /comment:@comment.txt ...Show All
Visual C++ MFC of Visual Studio 2003 Profissional on Express Edition
Hi! I have bought the Visual Studio 2003 Professional and it brings with the MFC library. I would like to know if I can copy and use the mfc libs and headers in the Visual Studio 2005 Express Thanks Victor No! 1. The Express Version has no Resource Editor. 2. You need to recompile the MFC libs because VS 2005 will link against the VC 8.0 CRT. 3. I am not sure if the Eula allows this. Afaik it is only allowed to recompile the MFC Libs under a new name. ...Show All
