Jörg Riedmiller's Q&A profile
Visual Basic Approximation of a double in VB2005
Hi, Can someone tell me what statement is used to find the approximate value of a double I mean if I have the number 1.345, how can I just take the approximation as 1. Or if the number is 100.8976, how can I get the approximation 101 Another query is how to approximate the double to the next whole number I mean no matter if I have the number 1.234 or 1.789, how can I get the result as 2 Would be really rateful if someone could help me. :) Arun Hello Arun, If you want to do simple rounding you would just say: System.Math.Round(<enter your number here>) If you want to always round ...Show All
SQL Server Input column collection in script component?
Does there exist an input column collection in script component What I mean is that if I have 10 input columns with names: a,b,c,d...i,j Then, within the script component, can I access any column collection such that column[0] has value for column named 'a', column[1] has value for column named 'b' and so on.. Using Row.a , Row.b, Row.c and so on does not give the flexibility to get/set values in a loop. thanks, Nitesh Hi Simon, thanks a lot for your hint with the unpivot function. I never used it before and it works perfect in my situation. SSIS really rocks!!! Thanks, Dirk ...Show All
Visual C++ "Preprocessor Definitions" for "All Configurations" wipes out Release and Debug settings
With the July cpt create a new solution (e.g. WIN32 console). Select "All Configurations" from the property pages and add an entry e.g. TEST to the "Preprocessor Definitions". Now examine the Release or Debug "Preprocessor Definitions" and notice that the original entries have beed deleted. Given that it's called "All configurations" I think the only reasonable thing to do is that it does apply to all configurations. It seems that those who dislike it want some sort of default values. ...Show All
SQL Server SQL Express 2005 RTM?
I see that SQL Server 2005 has gone RTM, but the SQL Express website still only lists the September CTP... Anyone have an idea when the SQL Express RTM will be available for download I'll answer my own question since I've since found the answer on http://blogs.msdn.com/mswanson/archive/2005/10/27/486081.aspx . The Express products will be available for download on November 7th. ...Show All
SQL Server Fail to Connect Report Service via Management Studio
Dear sir, I installed a copy of SQL Server 2005 Evaluation Edition in my XP Professional Computer. When I try to connect to Report Service using Management Studio, it fails to connect with the following error: ********************************************** TITLE: Connect to Server ------------------------------ Cannot connect to XXXXXXXXXXXX ------------------------------ ADDITIONAL INFORMATION: The server committed a protocol violation. Section=ResponseStatusLine (Microsoft.SqlServer.Management.UI.RSClient) ********************************************** I have no problem connect to other services. Also, I can connect to the Report Manage ...Show All
Visual Studio Express Editions Add New Record Binding Source...
Hi everybody, I new with binding source control and binding navigator control of .Net Framework 2.0. I having problem with adding new record. I have binding source control and bindingnavigator control, it displays the data ok and data navigation between records is ok. But when I try to add data using "+" icon on binding navigator control, it causes error on data type...What is the problem and how can I make it work Thanks. Error Message: System.InvalidOperationException "Objects added to a BindingSource's list must all be of the same type." " at System.Windows.Forms.BindingSource.Add( ...Show All
Visual Studio Reinstalling Visual Studio 2005 Beta-1
Hi, my installation of VS 2005 Beta 1 expired, I want to keep using it but when I uninstall and reinstall I still get the "VS Beta has expired" message. Do anyone know some way of getting around without reinstalling Windows or installing the Beta 2. Thanks in advance. ...Show All
Visual Studio Tools for Office Deploying an XML Schema Definition with Word Solution
I have worked out how to deploy a Word VSTO solution. However, there is an XML Schema file (XSD) that I need to be deployed with the Word document. Is there a way to include this in the deployment or application manifest These two MSDN articles provide great information on deploying VSTO solutions. Thanks! Mike Hernandez Community Program Manager VSTO Team VSTO Deployment These whitepapers are interrelated, so be sure to review both of them. · Overview http://msdn.microsoft.com/office/default.aspx pull=/library/en ...Show All
Windows Live Developer Forums Block file transfer and adding new contacts
My company will start to allow all users to use MSN Messenger. Is there a way that we can block file transfer function and only allow them to add pre-set contact list Thanks. I have asked the same question some time ago, and still havent got any anser from Mici$oft so dont expect them to anser you, so we have quit our plans using Messenger and we are installing the Lotus Notes IM client insted. The Lotus Notes client have a conection to Yahoo and to AOL and more is coming so this is mutch better for us and mutch easyer to for a company to configger than Messenger, because IBM wants to help you. ...Show All
Visual Studio Team System Is FxCop minbar available?
In Naming convention chat, Brad mentioned about the subset of FxCop rules (FxCop minbar) which is going to be released in near future. Is it available now for public. Is it ok to use your coding standard as it is, i find something is missing, you are not specifying whether it is must rule or optional Is it something needs to be defined based on my project and company needs Thanks Charles I'll talk to Brad about this but I'm not sure the min-bar he's referring to would be entirely appropriate for your usage. This subset excludes some checks that are important but were less so internally when we formalized the grouping, due to havin ...Show All
Visual Studio Team System What is an area?
I was just testing team explorer and all the menus, and I see an option where you can add Areas and Iterations, could somebody give me a brief explanation of areas in sofwware development in cmmi Thanks Areas are a way to divide a software product into features & subfeatures. For example, the area path for one of my bugs might be something like: VSTS -> Team Foundation Server -> Version Control -> Client UI -> Branch Dialog (smaller projects probably wouldn't need to go 5 levels deep) Iterations, as you probably guessed, are more for tracking development over time. They're commonly referred to as "milestones ...Show All
Visual Studio Team System Get associated work items when a shelveset is done.
When the programers are done, they create a shelveset, then they get code review. Meanwhile the QA team test that shelveset. Once it is QA Approved, the Project Manager PM approves the shelveset and only then can the Programer checkin his code. Now, a feature that is nice but requires the .sln to be opened is that it is possible to unshelve and see the related work items that a particular shelveset corrected. We would like the QA team to view this but unfortunately we do not want the QA team to have to Open the solution and start playing around with unshelving and stuff... For now, the Programer makes a "Print Screen" (once he is finish ...Show All
Smart Device Development Native DLL, how can I deploy different DLL's based on device - IE: Emulator (X86/Arm/MIPS) etc
I have a native DLL. How can I deploy different DLL's based on device - IE: Emulator (X86/Arm/MIPS) etc. I've seen SQL Server CE do this (seperate cabs for each platform), how can I do the same Thanks! If you're using conditional compilation, the best way to tweak the P/Invokes would be to define DLL name as a string constant: #ifdef X86 public const string MyDLL = "foo_x86.dll"; #else public const string MyDLL = "foo_arm.dll"; #endif ... [DllImport(MyDLL)] public static extern void myFunction(); If you'd like to go with runtime check, you should declare several ...Show All
Windows Forms Tabs Voluntarily Rearrange Themselves...
I've heard of lots people with this problem, but I've never seen an official (or unofficial, for that matter) reason, work-around, or bug confirmation for it. My tabs in my application randomly rearrange themselves randomly in debug mode somewhere between F5'ing, saving, and closing/opening Visual Studio. I can go into the collection in the tab properties and arrange them back the way they belong, but then 15 minutes, an hour, a day later, they've rearranged themselves again in some different order. I've noticed the first tab and the last tab never move...just the ones in between. Sometimes it's only one tab that moves three, ...Show All
SQL Server Scatter chart not rendering properly, RS2000
Hi! I'm having problem getting the Scatter chart (with lines) rendering all my values. I have a dataset that looks something like this: Name YValue XValue A 100 10:23 A 120 10:27 B 70 10:24 B 90 10:25 C 66 10:33 C 78 10:20 ............................................ I don't know how to configure the chart properties, so that I get my values above to render in three lines. I want to manually configure the way my markers shall appear. So I have added three different value series, and connected them to my X- and Yvalues above. I want the cha ...Show All
