James Sugrue's Q&A profile
Visual C# how to compile a project
hi guy's first a bit about me it has been 20 years since i last wrote any code (anyone old enough to remember the vic 20) when i herd about visual c# 2005 express, i thought this could be fun and it has been a blast relearning and playing with it. ok now for my problem i have written a few simple apps just for the fun of it and to see what i can do, i have run them all just in debug mode ( f5 ) as i did not want to keep or share any of them as i said they where just to learn. so now i have something i would like to keep and need to know is there a compiler buit into visual c# 2005 and if so where and how do i use it, if not can somone plz re ...Show All
Visual C# Immediate window: how to pass literal array
Here's a basic question: In the immediate window, I can call Main: for example if main is defined as static int Main() then I can do: Program.Main() in the immediate window and get the int returned. BUT: how do I pass a string array to Main (or any function) via the immediate window Program.Main({"a", "b"}) doesn't work. class Program { static int Main( string [] args) { return 5 + 6; } } Okay, I discovered you fortunate ...Show All
SQL Server The connection manager 'OLEDB' is not properly installed on this computer
Please help someone from MSFT! I've just finished installing the Sep CTP on my laptop. I previously had the April CTP and June CTP. I followed the instructions for removing a previous installation of SQL 2005. Now, when I try to create an SSIS package, I get a message that says: TITLE: Microsoft Visual Studio ------------------------------ The new connection manager could not be created. ------------------------------ ADDITIONAL INFORMATION: The connection manager 'OLEDB' is not properly installed on this computer. (Microsoft.DataTransformationServices.Design) For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft ...Show All
Visual C++ Using MFC regular mixed mode dll (/clr) from a managed application with Visual Studio 2005 Beta 2
Hello all, I am having problems using MFC within a managed application in Whidbey. What I try to do is the following: Writing a dll in C++/CLI that uses MFC. In this dll I implement managed wrapper classes around e.g. MFC dialog classes. Using these wrappers I want to display the dialogs in a managed application, written e.g. in C#. This used to work with Visual Studio 2003 and managed extensions for C++ but, but it doesn't with Whidbey. I used the wizard to create a MFC regular dll that uses the shared version of MFC, then applied the /clr switch to it. Then I reference this dll in a C# application, calling a managed wrapper class of the dl ...Show All
Smart Device Development How to make sure I am working with NETCF SP3?
Hello, I'm rather new to Visual Studio and especially SmartDevice developing. I have a decent knowledge in Borland Delphi, and i'm trying to apply my skills in .NET developing using Visual Studio 2003. Here is the brief explanation of a problem I've run into: In my application I'm using a listbox, which stores some collection items. Anyway, I want to trap the keys, pressed while listbox is focused. In the event list there is no such an event. I read that in base version of Net CF just a small amount of the controls are supplied with the OnKeyDown/OnKeypress/OnKeyUp events. But it was also mentioned that in .Net CF ServicePack 2 all the c ...Show All
Visual J# How to set 'Default package' empty on VS 2005 IDE.
I want to set 'Default package' empty string. But VS 2005 shows an error dialog. We were able to do it on VJ# 2003 and VJ# 2005 Beta 2. I know it can be done by editing and removing 'RootNamespace' tag from a project file. But, why did you add an empty value check I need a empty default package in order to specify the namespace of embedded resouces. Hi, The behavior in Everett and beta2 was a bug. We have disabled the old behavior as part of the same bug fix. And this bug was not specfic to J#, it used to reproduce for C# and VB also. The bug was that if you set ...Show All
Visual C# Capturing KeyPress "Always" !!
Greetings... My Form needs to capture the KeyPress and KeyUp events. I did set the KeyPreview property to true and it works almost all the time ! When the application starts, it doesn't work... I fist need to touch something (i.e. give the focus to a control) so that the key press and up events could be treated properly. How can i go around this Thanks ! Acoquinar This looks like a good issue for the MSDN Product Feedback Center. If you believe this behavior to be a bug, or at the very least something to be fixed, this is the place to report it: http://lab.msdn.microsoft.com/productfeedback/ You'll be abl ...Show All
Microsoft ISV Community Center Forums vba error message
Hello to everybody. I am new on VBA programming and I'm facing an error that is making me crazy. I create a code in Excel using the VB editor and save it, no further problems. When I close it down and open up the workbook, this error message comes up: "A document with the name blablabla.xls is already opened. You cannot open two documents with the same name, even if the documents are in different folders. To open the second document, either close the docuement that is currently opened, or rename one of the documents." What am I doing wrong Thanks everyone. You are probably running some code in your macr ...Show All
Windows Forms Databinding
If i make a class i know i have to do nothing in order to bind it to a text property for example. i can do this by code. How do i implement in my component class to serve as a consume provider at design-time. what i want is, when I add my component at design-time to my form i can visually bind a property of the control to& ...Show All
.NET Development Serializing List<T>
I just read in the help file for the XmlSerializer, it couldn't serialize classes using Arrays or Lists. It says: "Serialization of ArrayList and Generic List The XmlSerializer cannot serialize or deserialize the following: Arrays of ArrayList Arrays of List" But, I just did it. My class has a List<sometype> within, and it serializes just fine. Parts of the code is below: [System.CodeDom.Compiler. GeneratedCodeAttribute ( "xsd" , "2.0.50727.42" )] [System. SerializableAttribute ()] [System.Diagnostics. DebuggerStepThroughAttribute ()] [System.ComponentModel. ...Show All
Windows Forms Somewhat simple question
I am new to winforms development, but have been developing netforms for a while now, and had one quick quesiton. I am developing an app (win forms) where I want only certian controls displayed at runtime depending on the user logged in. Now, I know it can be done like so: ------------------------------ if userloggedIn = admin then control.visible ...Show All
Visual Studio Team System FxCop currently does not support running the spell-checker on 64 bit platforms.
any chance on fixing this anytime soon i have spelling issues :). We will fix this as soon as we can, sorry for the inconvenience. I wouldn't expect this fix to make it into 1.35, unfortunately (but I'll check into the possibility). ...Show All
.NET Development .NET/Java (Apache Axis) Interoperability: Custom Deserialization of SOAP Message
In my project the proxy seems not to be able to deserialize the SOAP Response from the Java server. I used this WSDL to add a Web Reference to my project in Visual Web Developer: http://wortschatz.uni-leipzig.de/axis/services/Thesaurus wsdl I should get back the jagged array responseParameter.result . But this object is always Null . The service returns the following SOAP message: < xml version="1.0" encoding="utf-8" > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <ex ...Show All
SQL Server Can we use User Defined Functions in Report Builder
In a typical Database, there are tables, views, stored Procedures, user Defined Functions. We could use tables and views in designing the Report Model. We cannot use Stored Procedures, I tried that. Please could somebody tell me if we could use User Defined Functions What if a view is already using a user defined function, is the function automatically includid in the Model Design Thank you, You can use SP of course. You must set the CommandType as "StoredProcedure". You can not use functions, and they won't be included in your report. ...Show All
Smart Device Development How to download a file from a URL?
Hi All, I want to write a programme to download file from a URL and the file may be any type. I found class like webclient with method downloadData for Desktop. But it is not in netcf. So how to download file Please see this: http://www.opennetcf.org/Forums/topic.asp TOPIC_ID=936 ...Show All
