papa99do's Q&A profile
Visual Studio Multi line insert (block mode) question
Hi, I'm trying to make an add-in/macro to help make block wise operations in visual studio. Currently the process goes as follows: 1)Developer blockwise selects some text that he wants to operate on. 2)Runs add-in command, 3) Add-in copies the selected text to the clipboard 4) Addin grabs the text from the clipboard 5) Runs operations on text 6) Updates the clipboard with the modified text. The issue is that when the updated text is in the clipboard, it loses whatever information made that clipboard data a 'MSDEVColumnSelect' (undocumented) datatype. When user goes to overwrite his selection with the updated data it adds newlines. How can i ...Show All
.NET Development Test Form for Webmethod failingto invoke on IIS6 and 2003
Hi, I hoping this one is a simple configuration element that I've missed. I've deployed a webservice to a win 2K box and all is fine, however when it is moved to a Win2003 box we're receiving error code 500 at the client. If I try to invoke it locally from the testform on the 2K3 server the invoke button fails to actualy invoke anything so we can't potentially see any better error descriptors. Does anyone know why the "Invoke" test button would fail to act when running under IIS6 and Win2003 locally on the server Thanks for any help. Paul. ...Show All
Windows Forms Any one experience this problem with .NET Apps
I am supporting an application wrote for the .NET Framework, windows app connecting to an online database. The application was written for an English speaking/reading audience. We have an individual in Mexico that is running Windows XP Spanish Version 5.1.2600. We are not trying to translate or re-write the application to different languages though. This individual can&nb ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting Direct3D 10 Samples (April SDK) running
Hi! I'm using the Vista Beta 2 and I'm trying to run the Direct3D 10 samples in the April SDK. Unfortunately they all don't work on my computer. They should work in a Direct3D 10 software emulation mode, right Do I have to change any (DX) settings Or do I need extra software Thanks Nico Which operation system do you use The Direct3D 10 part of the June SDK works only with Vista Beta 2. ...Show All
Visual C++ NULL STL string exception with 2005
The following code properly throws an exception that is caught in the "catch(...)" below on Visual C++ version 6.0 and Visual C++ 2003. However, an exception is thrown that is not caught and a CRASH occurs on version 2005 of Visual C++. This seems like an extremely serious bug to me. Does anyone know: 1.) Is this a confirmed bug by Microsoft 2.) Is there a safe way around it. By "safe" I do not mean "just don't pass NULL". It seems extremely risky to me that any accidental NULL string pointer would result in a crash. 3.) Is there a way to catch the exception Thanks Code Below --------------- ...Show All
.NET Development Serialize Strong Typed Collection. "There was an error reflecting type.."
HI, I have a class that looks like this: [ Serializable ] public class NewsItems : System.Collections.Generic. List < NewsItem > { }; Any it works just fine for 99% of my needs... Here is the 1% problem, when I want to write out the contents of my collection to XML, I get the following error (pasted below) anyone know how to remedy this System.InvalidOperationException was unhandled Message="There was an error reflecting type 'NewsItems'." Source="System.Xml" StackTrace: at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(TypeModel model, String ns, ImportContex ...Show All
Windows Forms taskvision can not work on w2k3
hi, The taskvisionsource_1.1.0.0.msi can not intall properly on w2k3. I get the error <error> parameter error. <error> so I install the taskvisionsource_1.1.0.0.msi on w2k. the installer suceess,then I copy the codes and database to the w2k3,and config the IIS . finally I run the proagram on w2k3,but I get the following error when Itry to login in <error> An error&nbs ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Complete Newbie :) What are Symbol Files?
Howdy gang, just getting started learning Directx for myself, and I noticed at the directx sdk download page they have a link to download Symbol Files. What exactly are these Symbol Files, and what do they do, and do I need them with the Directx SDK Thanks for puttin up with a n00b like me :) Oz Symbol files aid debugging. They contain information that's normally lost when compiling the source code, such as function and variable names. So they can be helpful if you have to step into the DX code to which you don't have the source code. ...Show All
Visual C# Inserting multiple lines in textbox
I have textbox with multilne parameter set to true How do i add multiple lines of text I guess i have to use array somehow Hi, You can use Environment.NewLine; to add a new line (by code) HTH. Bye. ...Show All
SQL Server Intallation Error
i'm trying to install MS server 2000 components and I continuously get the same error. "A previous program installation created pending file operations on the installation machine. You must restart the computer before running setup." I've rebooted 100 times, turned the machine on and off, installed other programs, etc. and stil I get the error ONLY when I try to install the components. Please Help!!!! I took a complete answer from this page http://www.kbalertz.com/Feedback.aspx kbNumber=312995 SQL Server 2000 installation fails with "...previous program installation..." error message View products ...Show All
.NET Development Soz, once again confused about tcp, sync and asynch!
sorry people you must think, i'm so stupid! can somebody just simply explain to me the basic coding steps, on how to code an async client, or if somebody, could write me a tutorial by the way i am coding, for an msn messenger client. thnx, clint Don't be so hard on yourself. Asynchronous programming is not simple and is easy to get wrong. Asynchronous operations basically ask for a task to be completed on a different thread. When that operation completes a method/function of the client's choosing is called notifying the user that the operation is done. The client then decides what to do next. It could choose to start a ...Show All
Smart Device Development Developing for Mobile 5 in VS 2003
I'm currently developing an application for both 2003 and now it appears Mobile 5 using VS2003. I'm told that 2003 shouldn't be use to develop a Mobile 5 application. It seems to work, I'm curious as to the reasoning here. Is it an MS push to sell VS2005, or is there a more fundamental underlying reason. The plan is to move to VS 2005 but not during mid development. Thanks! Well, the SDK for Windows Mobile 5.0 needs Visual Studio 2005. That said, there is no problem developing a Compact Framework 1.0 application with Visual Studio 2003 and have it run on a WM 5.0 device. WM 5.0 also has the extra Windows.Mobile libraries. If you ...Show All
SQL Server A Connection cannot be made
Hello I try to build my cube on localhost by VS2005, while the data source is on the other machine. When I deploy the cube, it gives me the following error msg: The project could not be deployed to the 'localhost' server because of the following connectivity problems: A connection cannot be made. Ensure that the server is running. To verify or update the name of the target server, right-click on the project in Solution Explorer, select Project Properties, click on the Deployment tab, and then enter the name of the server. I tried to fix it by following the instruction, but it does not work. I think my target server s ...Show All
Visual Studio 2008 (Pre-release) VisualTreeHelper
I'm trying to get a location for button control using VisualTreeHelper .GetContentBounds function; here is my code void OnClick1( object sender, RoutedEventArgs e) { Rect mybtn = VisualTreeHelper .GetContentBounds(btn1); MessageBox .Show( mybtn.Left.ToString() ); } I get MessageBox with "Infinity" Why It's hard to tell without knowing what's inside the button. More importantly, however, GetContentBounds isn't a good method for figuring out the location of a control. First of all the coordinate system of the returned rectangle is relative to the control itself, not the parent of th ...Show All
Visual C# Integer TextBox
I created an application in C# for findng if the number entered by a user is Prime or Not,the logic part was ok.But I'm using Textbox for getting the number from user and complier is giving me errror that string cant be converted ....So I wanted to know how to use Textbox for getting the numbers and that Texbox should take only integer values.Help me out.Thanx In regards to the numericUpDown control. I might be totally wrong with my assumptions but I believe the numberUpDown control has its value set as a decimal. So one has to convert its decimal value into an integer value. int number = Convert ...Show All
