DzheiZee's Q&A profile
Microsoft ISV Community Center Forums Help with a formula
I need to write a formula for Excel that calculates the amount of fuel that is in a tank. Here is what it is for. We have cylinder tanks that lay horizontaly. Each month we put a dipstick into the tank to measure how many inches of fuel is left in the tank. I need a formula that will take that and calculate it into gallons. Here is the formula I have to work with. / -1 r - h \ V = L * | [ r^2 * cos (--------)] - [sqrt(2rh - h^2) * (r - h)] | \ r / Any Help is appreciated (BTW I am not the best at math so if possible an explination of this formula would be greatly appreciated) Im sorry the se ...Show All
Visual C++ help with declaring
I have just started learning C++, and Visual Studio keeps telling me that 'cout' is an undeclared identifier. What am I doing wrong Here is the program: // Hello, World.cpp : Defines the entry point for the console application. // #include "stdafx.h" int main() { cout<< "Hello, World\n" ; return 0; } This FAQ explains you the different ways to access identifiers from namespaces. ...Show All
.NET Development Memory problem in importing GB file using MS text driver
Dear All, I am using MS text driver for importing data to dataset from CSV file. But if the CSV file size is in GB then it requires lot of memory for filling the dataset. Is there any way to import data part by part using MS text driver Thanks in Advance Rajani You can use a WHERE clause in the SQL query to limit the number of rows returned. Of course this will require a column by which the data can be sorted. Returning a gig of data in a single query is simply not feasible. ...Show All
Visual Studio 2008 (Pre-release) XAML produces a stack overflow
The following XAML snippet produces a stack overflow when you select the combo box item in the menu. XAMLPad crashes pretty badly. I am using the latest CTP <Page xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " > <Grid> <Grid.Resources> <ControlTemplate TargetType="{x:Type HeaderedContentControl}" x:Key="a1"> <Menu > <MenuItem Header="{TemplateBinding Header}" > <ContentPresenter/> </MenuItem> </Menu> </ControlTemplate> <ControlTemplate TargetType="{x:Type GroupBox}" x:Key="a2" ...Show All
Visual Studio Express Editions Satellite Assemblies
Hello, I have just made my first application with VB 2005 Express Edition. This application uses .NET Windows Form Components from Devexpress (like xtraGrid). The components of Devexpress are localized by putting a NL (for Dutch) directory in the bin/debug directory of my application. This NL directory contains serveral recources.dll files and localizationres.nl files (depending on the components you use). These files have been created by Devexpress and can be downloaded from their website. After publishing my project with the ClickOnce wizard, I installed the application onto another computer. The application works fine except for the localization. I have asked Devexpress for help and they say : Do you use the ClickOnce techn ...Show All
SQL Server SQLServer 2005 setup failed
SQLServer 2005 setup failed on Windows 2003 . Please see the error log. Thanks Microsoft SQL Server 2005 Setup beginning at Wed Jan 31 17:15:16 2007 Process ID : 1624 C:\dbservices\setup.exe Version: 2005.90.1399.0 Running: LoadResourcesAction at: 2007/0/31 17:15:16 Complete: LoadResourcesAction at: 2007/0/31 17:15:16, returned true Running: ParseBootstrapOptionsAction at: 2007/0/31 17:15:16 Loaded DLL:C:\dbservices\xmlrw.dll Version:2.0.3604.0 Complete: ParseBootstrapOptionsAction at: 2007/0/31 17:15:16, returned true Running: ValidateWinNTAction at: 2007/0/31 17:15:16 Complete: ValidateWinNTAction at: 2007/0/31 17:15:16, returned true Running: ValidateMinOSAction at: 2007/0/31 17:15:16 Complete: ValidateMinOSAction at: 200 ...Show All
SQL Server Pointing an Analysis Services project at a different database
Hello, Apologies once again for being new to Analysis Services. I am very grateful for the help that I have received from this forum in the past. The scenario is that a number of cubes have been built from a number of datasource views that point to a particular database. These datasource views contain a significant number of named queries. The views are structured to resemble star schemas, but the database behind them is an OLTP database, not a data warehouse proper. This database is the development database for the software product sold by my company. I am trying to rebuild my cubes and dimensions based on another database (a customer database). This has identical structure but different data from the development database. I hav ...Show All
Visual Studio installation question
I'm new to VS. I had it installed on my work computer as well as my laptop. I just noticed that on my laptop version, I have many more options. For example, when I open VS on my laptop, I have the option of opening a new "project" or a new "web site". On my other computer, I can only open up a project and I don't have the option of creating a website. I also have VS Web developer installed on this computer. Do you have any ideas I also have Crystal reports, and other tools that I dont have on this other computer. Does anyone know which disk this is on I have a lot of them and am getting confused. Do you mean that the submenu "New Web site" under menu "File" is missi ...Show All
Visual Studio Debugging a UI.
I have a C# app/UI. I'm trying to debug the UI and I'd like to be able to watch it update as I step through the code. I used to be able to to this with previous versions of VB, but I seem to have lost that ability with the jump to C# and/or VS2005. I have a dual monitor setup and I used to put the UI on one screen and step through the code on the other and see exactly how my UI reacts as each line of code is executed. This was very helpful when designing my interface. Is this not possible with C#/VS2005 I believe the Graphics.Flush function was intended to do this but I cannot get it to flush consistently. Another method I've tried in the past is, at key points, dump the graphics object to the file system. Here's an example. ...Show All
Visual Studio 2008 (Pre-release) Get notification of CD or USB stick insert in WPF application
Hi everybody, is there a way to get a notification in a WPF application when a new CD / DVD was inserted or a USB-stick was attached In WinForms I would intercept the WM_DEVICECHANGE event but I would like to know if there is a more elegant way without switching to windows forms in WPF. Thanks, Tobias I'll give the WMI Code Creator a try. Nevertheless it would be great to get the CD/DVD/USB example whenever you have access to the other computer :-) Thanks, Tobias ...Show All
Windows Forms Text property in Windows Forms Designer
I am using the properties window of a Label that I am placeing on a windows form. I am trying to set the text property to My.Settings.mytext and it keeps putting quotes around the string. What is display is "My.Settings.mytext" is there any way to tell Visual Studio not to place quotes around the string Yes I know that will work. Thank you. I just though you could do something like <%My.Settings.mytext%> like you can using VB script for a website project. ...Show All
SQL Server Tsql script to connect to another database
Hi. I am in database db1. in the middle of a stored procedure i want to connect to database @db2 (it is a variable) and i want to execute some commands in it. How is it possible to do that in t-sql Thanks Use something like this; but dynamic sql isn't the best way to go or just execute from databasename..tablename declare @db varchar ( 100 ) declare @fv nvarchar ( 100 ) sp_executesql ( 'use ' + @db '; insert into mytable where mycolumn = '' + @fv + ''' ) ...Show All
Visual Basic Missing Code Analysis Tab
I have Microsoft Visual Studio 2005 Team Edition for Software Developers and can right click on a project and "Run Code Analysis" but I get no Code Analysis tab in Project Properties. Anyone know how to fix this. Thanks Why is this marked as the answer when it answers nothing I have the same problem, and after doing some research it appears that *possibly* SQL Server 2005 has installed an incompatible version of MSXML 6--in any event MSXML is installed, and I am working with vb.net in a WinForms app, where other developers have Code analysis and I don't. ...Show All
Visual FoxPro Error when building exe in VFP 9.0.
Hi All, I am getting the following error while building the exe in VFP, i am not able to clearly locate the area of problem The Error : " Object File <exe name & location> is in use and cannot be reoved from the memory " please suggest me a solution. Thanks in advance Venkatram Issue a CLEAR ALL and a RELEASE ALL before building the project. Before I build an exe for distribution, I always exit out of foxpro and restart, just to make sure nothing interferes with the build. The build exe command is the first line of code after restarting. (actually I have a command called DO BUILDNEW that sets everything up for me then builds the exe, copies the files to the distrubution dir ...Show All
Visual Studio 2008 (Pre-release) Anyone getting fuzzy fonts after scaling in June CTP?
I've got text and buttons that scale progmatically and I've noticed that after a scaling event has occured the text appears fuzzy, even after scaling back to unity. I've seen this also when scaling progmatically. I've put some code up here: http://150.101.100.238/~john/LensPanel.zip Couldn't get my xbap deployment to work at the moment which I've put here: http://150.101.100.238/~john/LensPanel/Swordfish.WinFX.LensTesterWeb.xbap On scaling I've also got another problem that appeared with the June CTP and that is that Binding in a ScaleTransform causes a runtime warning. < ScaleTransform ScaleX = " {Binding ElementName=UISizer, Path=Value} " ScaleY = " {Binding ElementName=UISizer, Path=Value} " ...Show All
