Hotaling's Q&A profile
Visual Studio Team System Getting info about local variables.
How would you get information about variables local to a method I thought looping over a method's instructions would get me there but it appears there is no opcode generated for local variable declaration. Instead there is a .locals init ( ) line. Is there a way to access that information So far Method.Body.HasLocals is the only thing I've found to be of any use and I thought the Block class would lead me to my goal but so far it hasn't. Any advice the answer is not complete;I have the same problem when I'm making a rule for check if a constant has a prefix:Is there a way I can tell if a local variable is d ...Show All
.NET Development How do I develop JScript .net applications in Visual Studio?
I'm using Visual Studio 2005 Beta 2 (though I also have Visual Studio 6.0, Enterprise edition), and I would like to get try writing applications using Jscript .net. But I haven't figured out a way to make a project that can compile, let alone debug jscript. I've seen articles on compiling JScript .net from the command line, so I know it must be possible to do this, if only by adding a custom build step - but I don't even know what sort of project to create in the first place, or how to add new kinds of projects to Visual Studio. Am I using the wrong tools Do I need Visual Studio .asp or something I've seen some references t ...Show All
.NET Development Two-way communication using IPC
Hello, I've been reading up on IPC and looking at sample code, and I can't seem to figure out how to actually accomplish communication from a client to a server. I understand the concept of a server hosting a dll which contains a method that the client can call. However, how can the server also obtain a reference to the same object I want the client to be able to send a message that makes it to where the server can use it. To clarify my question, the examples I've seen so far have been like this: Server creates a channel exposing Class A. Class A contains a handy-dandy method that can multiply two ints. Client creates a channel to be able to ...Show All
Visual Studio DSL Tools outside VS?
Hi, Can DSL Tools be used outside of VS (e.g. can the designers and other parts be hosted in a custom windows form application) I think the answer is no, but I'd like to double check. Thanks, Notre Notre, For version one, we're planning on allowing the underlying model data store to be hosted in a custom application, but not the visual designer infrastructure. You will still need a licensed copy of Visual Studio for the machine running the custom application though in order to be licensed to use the APIs as they will be part of the Visual Studio SDK. This will allow& ...Show All
Software Development for Windows Vista Creating a Custom StateInitializationActivity
Hello, I have a fairly complicated state machine that requires custom audit information to be logged upon entering the many states. This includes information like UserName, UserRole, ApplicationName, in addition to the CurrentState and EventDateTime being inserted into our application audit database table. As the initial implementation, every state class had a StateInitializationActivity with a CodeActivity that called a "RaiseAuditUserTrackPoint" method. A custom tracking service was developed to specifically listen for this user trackpoint data and perform the persistence. This all works really well. In order to clean up ...Show All
Smart Device Development Device EmulatorError VS200 PRO
Hi i'm trying to run Device Emulator in my XP pro sp2. I get these errors: Failed to open XML parser COM object. E:\Programmi\Mvs8\smartdevices\Skins\PocketPC_2003\PocketPC_2003\1033\PocketPC_2003_Skin.xml Error while processing skin file E:\Programmi\Mvs8\smartdevices\Skins\PocketPC_2003\PocketPC_2003\1033\PocketPC_2003_Skin.xml: View element is either missing or invalid. what can i do thanks Normally this error indicates a problem with the installation of MSXML. The error indicates the call to instantiate a COM object for the SAX XML Reader failed. One workaround it to turn off emulator skins, because that ...Show All
Visual Studio Express Editions How do I print a RichTextBox and a PictureBox with good quality?
Form1 has RichTextBox1 and PictureBox1 side by side on it. They are both the same size. I want to print them out. If I just print Form1, the resolution is too low. How do I print them with good quality Use the same technology that Black Helicopters and spy satellites do - take an image with a resolution of 1 meter and read car license plates with it. Sorry, that was a tad facetious . Unfortunately, you can't get a higher resolution than what you already have: if the image is 100 pixels by 100 pixels, and you print it to a printer with a resolution of 300 dots per inch, the image will be 1/3 inch b ...Show All
Windows Forms char(128) and MSDE 2000
I have a strange problem. I'm trying to save fx char(128) into a database in MSDE 2000, here is my code private void button1_Click(object sender, System.EventArgs e) { System.Data.SqlClient.SqlDataReader reader = null; string s=null, s2=null; this.sqlConnection1.ConnectionString = @"data source=...."; s=((char)128).ToString(); try { this.sqlConnection1.Open(); this.sqlCommand1.CommandText = "insert into tabel values ('"+s+" ...Show All
SQL Server SSIS runtime components Install
How can we install the SSIS runtime components alone. We are calling SSIS packages from .NET code. We would like to know what are the minimum components we need to install in the machine in which the .NET code is running. Thanks, Loonysan Do we need to do a complete install of Integration Services from the CD or is it enough if we deply only certain DLLs. Thanks, Loonysan ...Show All
Visual Studio Team System Problem adding / removing servers from the DomainProjectPicker control
I have an issue related to adding servers to the list of servers provided by the DomainProjectPicker control (Beta 3 Refresh). Basically, if you remove a server you cannot seem to re-add it during the run of the application that launches the control. You need to restart the application in order to add the server back... Here are steps to reproduce it: create a WinForms app that shows the DomainProjectPicker control from a button handler or something like it make sure you have a valid server to connect to so that a server shows up in the top dropdown when the control loads when the DomainProjectPicker control pops up, click on ...Show All
Windows Forms multiselect algorithm
I was wondering if anyone knew the algorithm used by windows for selecting multiple files (can be used by listboxes as well). I'm trying to implement the algorithm myself but I'm not quite sure of some of the details of it. sorry, I need the algorithm, not how to do it with a listbox. The problem is I have had to implement my own list control so I need to implement the algorithm myself ...Show All
Visual Studio 2008 (Pre-release) anyone that can help me with this?
Hello, I'm experiencing the following problem for a while now. I'm not able to set the text of a textbox from another class in the same app. Can anyone tell me how I should do this. More details below... Window1-code: <Window x:Class="TestWindow.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="TestWindow"> <Grid> <TextBox Name="txtTest"></TextBox> </Grid> </Window> Class1-code: //Following is a method that is called from elsewhere public void SendRtlsEvent(string code, double x, double y, DateTime timeStamp) { / ...Show All
Windows Forms ClickOnce fails only on first time launch
Hi, I've successfully deployed an app. to my website using ClickOnce (VS2005 beta 2). The app. installs fine on my local machine but then the JIT debugger jumps in with an argumentoutofrange exception. The debugger won't attach to my process but if I come out of the debugger and run the installed app. from the StartMenu it runs perfectly. So it's a one time problem - but where and how to resolve Thanks for your help. Jon Sameer, OK, I made my own spade. Perhaps this will help others upgrading. I had kept a current version of my app. in VS2003. When I upgraded that in VS2005Express the compiler me ...Show All
SQL Server Import and Export Data tool bug
Hi, I'm tring to import an Access database to a MsSQL Server 2000 SP4 using Import and Export Data tool which comes with SQL server 2000. After the import finishes with result: "Success", I saw that there are records which aren't exported. These records type is Memo in the Access database. But some of them are filed in others aren't. Is there a fix for this Is there another way to import this records Using TSQL Thanks guys. Hi, another option would be to setup a linked server for the access database and to normal TSQL statements to insert the data from the access database to SQL Server table ...Show All
Smart Device Development Pocket PC 2003 Device Emulator keeps deploying same software
I have a vb 2005 project which is using the device emulator The system dlls like system.xml, sql ce, and windows.forms get deployed to the scanner every time I run the application. This means it takes over one minute to start a debug session in the emulator - every time I run it I just reinstalled the entire vs installation but that didn't fix it. So I think the saved state or something like that is screwed up. Anyone know what files I can remove to reset the thing I have tried hard booting the emulator and rebooting the pc etc. Any help you can give to reset it would be very much appreciated. thanks ...Show All
