adorer's Q&A profile
Visual C++ Error messsage
The version of SP is 20040803.231319. It has been suggested that I post my query in another forum. This I will do. Thanks for responses. You question will be rolled to back on new posts to the forum. So it would be hard to track your question Please provide the link to your question or post it again. You can see your posts from "My Threads" like at top right of the page ...Show All
Visual Studio 2008 (Pre-release) Suggestions: AutoGenerating fields.
Here's something I'd like to throw out... It would be nice to specify a property to build itself if its reference is null. That is, let's say I'm creating a Location object that has an address: Location l = new Location(); l.Address = new Address(); Generally I'm a lazy programmer, and I'd like to be able to assume that Address is always a non-null value, like such: Location l = new Location(); l.Address.City = "city"; And in the getter something like this: public Address Address { get { if ( _Address == null ) {_Address = new Address(); _Address.ID = Guid.NewGuid(); } return _Address; } } Along such lines, would it also be possible to autogenerate Guids I use Guids for ...Show All
Visual Studio Team System Project/TFS Integration issue - please help
Ok, this is my last effort before opening a ticket with Microsoft and spending the rest of my life on the phone with them. I have Project Server setup, and I have it receiving its data from TFS. The data is replicating between the 2, etc. Here is the problem. When I click "Refresh" on the Team plugin for project a couple times, the data will change. Here is an example: I have a work item with Actual (Completed) Work set to 8 hours. This shows in TFS. Refreshing it in project shows the 8 hours fine. However, if I refresh again it changes it bakc to 0. Clicking refresh 2 more times sets it back to 8, hitting it again makes it go back. This happens with most of the work items, and I cant for the life of me figure out what it is. ...Show All
SQL Server how to Convert a .cub file to .cab file
Hi, I have a local cube file but i want to restore it into the server(MSAS2000). When i want to restore it to the server it want a .CAB file. I had looked over the internet but was unable to find a solution so that i could restore the local cubes in the server. Please tell me how can i restore a local cube to the Analysis Server. And also would like to know is there any way how to convert the .CUB file to .CAB file thanks in advance, Ufortunately is not possible to load .cub file into Analysis Server. This is not supported in AS2000 as well as in AS2005. Edward. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
Visual C# Fatal Error C1902
HI,, While I was debugging my application, Visual Studio and my application crasched, and windows rebooted. Now when I try to compile I get this error. Fatal Error C1902. What shall I do thanks in advance Patrik Hmm, C1902 is a C++ compiler error, not C#. Make sense though, the .pdb file could well be damaged by the crash. Delete it from the solution folder's Debug folder and use Build + Clean to remove any other garbage. CS1902 is defined too for the C# compiler: invalid command line option for the /Debug option, project file damage, probably... ...Show All
Visual Studio Express Editions MULTIPLE INSTALLATIONS
Sorry for this probably stupid question but I've installed c# on my computer and i want to install it on a computer that dosen't have the internet. can i just copy the files on to the other computer and run setup.exe or do i have to download the *.img file or is there another way You will have to download the image file (.img or .iso) and burn a cd to use during installation. Since the other computer is not connected to the internet, the registration-free cd install is the only way to go. Let me know if you have any other questions. ...Show All
Smart Device Development PDA Device throws exception
I am developing a chat application using bluetooth, first i made a sample application where classes that i used to read & write the Com port were part of the application.It was working fine After that i pick the classes & put them in a dll & create reference of that dll in my final application. But here on one of mine HP PDA i am getting error. it is that whenever i pass the recieved data from dll to the application the Data comes to the application function, here if i show that data using Messagebox, it shows that data, but if i try to put that data in a text box, it gets hung. . It Works fine with other PDA. Please help me to find out a good solution. Please see this, items 7, 9 and 10: http://www.danie ...Show All
Visual Studio 2008 (Pre-release) No appropriate XAML tags for inline code
According to the documentation (...), in an XAML document one can have inline code which contains, say, C# code for event handlers. Is it possible to insert such code in an XAML created with Visual Studio If yes, what is the correct tag which should contain the CDATA element In the articles that I consulted, either <def:Code> or <x:Code> is used; however, these tags always generate errors when I try to compile the project. This is what I did: - I created a new project (WPF or XAML browser); - in the XAML editor, I added some controls - say, a <Button>; - I added a handler for the button, with ' Click="OnClick" ' - I wanted to have the code of the handler in the XAML file. For this I tried to ...Show All
Visual C# Custom Button Background
I hope I'm just missing something basic. Is it possible to have a custom background (say, gradient) for a System.Windows.Forms.Button without having to do *ALL* the drawing yourself. OnPaintBackground does not appear to be called; the paint code for Button appears to be integrated with it's background logic. Well, you could have a gradient bitmap that you could pass along to the BackgroundImage property and you wouldn't have to do any painting. You'd just have to create the gradient bitmaps with a paint tool and add them to your application. ...Show All
Software Development for Windows Vista control ids
Hi We have an automation software which detects Windows built-in control according to their ids. We noticed that on Windows Vista build 5472, the ids are were totally changed comparing to the ids in Vista beta 2 and earlier. Is it not correct to rely on the ids Is there a better way to identify the type of a control (can't it's name change) Here is a code sample that we used to list the control ids: using System; using System.Collections.Generic; using System.Text; using System.Windows.Automation; using System.Reflection; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { foreach (FieldInfo fi in typeof(ControlType).GetFields()) { ControlType ct = fi.GetValue(new objec ...Show All
Visual Studio Express Editions Could someone please critique this?
Maybe see what could be improved or tell me what I am doing foolishly This should represent a number object. I think in order for this to do this properly, I should have this class have a constructor that creates the number object and then runs a method. Thanks in advance! class NmbrObjct { int num = 0; int div = 0; int count = 0; public NmbrObjct() { } static void Main( string [] args) { NmbrObjct nmbrOneObjct = new NmbrObjct (); nmbrOneObjct.num = IO .GetInt( "Enter the num: " ); nmbrOneObjct.div = IO .GetInt( "Enter the div: " ); nmbrOneObjct.DvdzEvnly(nmbrOneObjct.num); Console .WriteLine(nmbrOneObjct.count); } public int DvdzEvnly( ...Show All
SQL Server SQL Server Management Studio Express setup
I'm trying to install the SSMSE vor SQLEXPRESS, but I get the message Setup has dedected a version of SQL Server Management Studio on this machine.... etc. I have removed the SQL 2000 Enterprise manager , but the message still pops up. Looking for a good soul now for helping me out Thanks Have you installed Management Studio of a lower version Would you check Control Panel --> Add/Remove program, Click "change" on SQL Server 2005 and see the report. Then you can make sure whether SQL Server Management Studio is still existing. Or you can check Start --> All Programs --> SQL Server 2005 to make sure whether the menu item still exists. ...Show All
Visual Studio 2008 (Pre-release) constants in query
This relates to the http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=523328&SiteID=1&mode=1 How can I create a query like: select 1 as Number union select 2 as Number union select 3 as Number No I have a method that takes parameter of type IQueriable<int>. Mostly this is a selection from a table in database. But sometimes I need to pass a set of constants that are entered by user. So, I need to convert array to IQueriable<int>. ...Show All
SQL Server Forwarding ?
Hi There Anyone have a good resource for a forwarding example I have a distributed service broker application working but i would like to add a forwarder in the mix, all i can find in BOL is that you must create an endpoint for forwarding and create the correct routes on a frowarder but thats it. Is that all you require AN instance with a forwarding endpoint correct routes I am looking for an actual example, cannot find anything in BOL on how to actually implement it I downloaded forwarder1.1 example from getdotnet.com, but that example sucks, it does even create routes Thanx Hi, Rushi! The topologi that You describe (as I understand) is II->FI->TI. When FI is dummy and only se ...Show All
Windows Forms C# converting a "PrintDocument" doc to a "Microsoft Office Document Image writer" doc
Hello! My application creates a document with help of the "PrintDocument" control that the user can than print out. Now my users ask to be able to send the document as an attachment instead of printing it. Preferably it should not be possible to change the attached document and I would like to avoid use of side products such as Adobe. I saw that the user has a possibility to "print" the document choosing a "printer" called: "Microsoft Office Document Image writer". The output is EXACTLY what I had in mind. My problem is that I do not know how to automatically do that (i.e. do it by code, without the help of the user). Is there anyone that knows how to do this ...Show All
