C4702's Q&A profile
SQL Server 2 similar queries - different results! Why?
SSAS2005. Tell me please, why this query SELECT { [Measures].[Internet Sales Amount] } ON COLUMNS , { [Product].[Product Categories].[All Products] } ON ROWS FROM [Adventure Works] WHERE ( [Product].[Category].&[ 1 ] ) returns: $29,358,677.22 but SELECT { { [Product].[Category].&[ 1 ] } * { [Measures].[Internet Sales Amount] } } ON COLUMNS , NON EMPTY { [Product].[Product Categories].[All Products] } ON ROWS FROM [Adventure Works] returns different result: $28,318,144.65 If I replace [Product].[Category].&[ 1 ] on [Product].[Product Key ].&[BK-M18B- 40 ] then results are identical! $25,919.52 Thanks. Hi Richard. MS will make a change! Will this mean tha ...Show All
Visual Basic How to change ComboBox items in VB 2005 Express
I use 2 ComboBox. I want the second ComboBox to display different items when user selects different items in Combox1. Is there anyway to do this in VB 2005 Express I know in Matlab, I can simply write: set(handles.popup2 , 'String' , 'item1|item2|item3' ). Is there any similar way in VB 2005 express Thanks, Lili Simply add the items to the combobox2 items as a result of determining which Item was selected in the combobox1 EXAMPLE Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.ComboBox1.DropDownStyle = ComboBoxStyle.DropDownList Me.ComboBox1.Items.Add("Item1") Me.ComboBox1.Items.Add("Item2") ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Is this right for me?
I think this is a good question that could benefit many new developers from a waste of $99. Hi everyone. I've worked with a small program called Gamemaker (how original) that some people may have heard of for the past 2 years. I've made small 2D games and recently took my first leap into 3D games, and I have been using the in game coding system for about a year. This coding system is similar to a very simplified version of a normal developing codeing system. I've never really used real code before, but I really love making games, and with my new Xbox 360, I think this would be a great tool I'd really enjoy. What I'd really like to know, is this something I'd be able to grasp I'd really appreciate any feedback! Thanks everyone! ...Show All
Internet Explorer Development Trying to use the GoTo method of the Word.Application ActiveX object uin JavaScript
Hi There I am trying to use the Goto method of the Word ActiveX object. I am trying to open a document and go to a named bookmark. If I use this code in VB it works, so I'm sure the approach is possible, I just can't get JavaScript to work with it. Here is the code I am using, the error I get from IE is Object Expected: Hope someone can help! Any help would be much appreciated function PageLoad() { var WordApp = new ActiveXObject( 'Word.Application' ); WordApp.Visible = true ; var documentlocation = crmForm.all.new_documentlocation.DataValue; var wd = WordApp.Documents.Open(documentlocation); wd.Select(); //var What = ActiveXObject('Word.WdGoToItem.wdGoToBookmark'); //var Name = Create ...Show All
Visual C++ Errors of LINKER
When I use a CWaveFile class and declaring an instance under a button1_Click event as example I have Linker's errors,and I include all requirements of using this class, if you want the code tell me at my email: aimnour@yahoo.com. The Linker's errors are: Error 1 error LNK2028: unresolved token (0A00000E) "public: __clrcall CWaveFile::~CWaveFile(void)" ( 1CWaveFile@@$$FQAM@XZ ) referenced in function "private: void __clrcall Capture1::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" ( button1_Click@Form1@Capture1@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z ) Capture.obj Error 2 error LNK2028: unresolved token (0A00000F) "public: __clrcall CWaveFile::CWaveFile(void)" ( 0CWave ...Show All
Visual Studio Tools for Office Assembly location during debug differs from output folder
Hello, I'm migrating a Word 2003 shared addin to a VSTO 2005 SE Word 2007 Addin. This addin uses some xml files which should be located in the same folder as the Addin is. In the previous version I looked these files up by using the System.Reflection.Assembly.GetExecutingAssembly.Location This worked perfect, but now If I debug the project all the required files are copied to the bin\Debug folder but the System.Reflection.Assembly.GetExecutingAssembly.Location give me a location that is comparable to C:\Users\ username \AppData\Local\assembly\dl3\RT5TDQVD.CGJ\T81B2ATH.YXM\65ce212f\0dea5369_3e50c701 This folder is created on every debug and it does not contain my xml files. Who knows a solution for this problem ...Show All
Visual Studio Team System Mapping information could not be obtained from User Name Mapping?????????
Hi, my connection to TFS works randomly. For a while I can connect fine, but for a while I can't. If I check the events I can see the following: Mapping information could not be obtained from User Name Mapping. Any ideas why this is happening Hi xavito, Are you the only user that is experiencing these issues, or are other users of your server experiencing similar problems -Matt ...Show All
Windows Forms Background image for datagrid
I need to set a backgroung image to my datagridView object. I am aware that there is no such property , but however i desperately want it. Does any other 3rd party GridView , provide this property Yeah...it's a very complex work to owner draw a back image on a datagridview..and I think it's no need to make a datagridview so flowery.. ...Show All
Visual C# support for SuperVGA graphics in system
Hello All , How can i know that my system has support for SuperVGA graphics or not....Programatically C#. and also Support for DirectX 9 graphics and about how much is Graphics memory Any Help Regards, Aamir Thanks for replying.. i have mentioned that i wanna do it progrmatically throug c#.Like one can know about the Processor info through select * from Win32_Processor.. is there any Api for it which show me ..... Regards, Aamir ...Show All
Software Development for Windows Vista Registru: Unable to find Monitor value EDID on Vista
Our pre-Vista Win32 program reported on the active monitor info by looping through: HKLM\SYSTEM\CurrentControlSet\Enum\Display ... until it found a subkey called "Control". Once found, that indicated the active display and we then read the EDID value in the "\Device Parameters" subkey for the device in order to interpret the needed data. But in Vista, the "CONTROL" subkey is no longer found, and the EDID is no longer present in the "Device Parameters" (although there is a BAD_EDID value containing all zeros. Is there a way for us to find the same display properties we used to find using the EDID value. Below are the values we used to report by reading and interpreting the EDID: Produc ...Show All
Visual Studio analyze doesn't resolve a problem
when running analyze, i receive the following error: Database analysis in progress @ 30.12.06;15:50. The file K\DATA\\ is not a valid SourceSafe physical database file. It must be renamed to a file with an extension or moved to another directory outside the database. Analysis complete @ 30.12.06;15:50 Some errors were found: run ANALYZE -F to fix these problems. To fix the database problems, you can restart the analyze using the following command: "C:\Programme\Microsoft Visual SourceSafe\analyze.exe" -F -V3 -D "c:\vss\statik\data" well i did run analyze as prompted, however, this did not fix the problem. also, there is no file namend "K\DATA\\" in my database directory. how do i get rid of this error ...Show All
Visual Studio Express Editions How to read a text document in a ftp host???
Hello, I am un able to work out how i can read a file which is placed in my ftp server. I am trying to read a .txt file which is placed in my ftp server into a richTextBox and it does not like me using a internet source i have tryed using the.net and .web files but nothing seems to work. I am trying to read in the file like i normally would do TextReader tu = new StreamReader("ftp:////2908180212@freeftp.bravehost.com//web//pcclan.bravehost.com//UserCheck.txt"); does any one know what i am doing wrong or how else i can do this Thankyou in advance for your help! take a look at this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=933461&SiteID=1 this will read the file via httpwebresponse. would this ...Show All
Visual Studio dynamically embedding PDF file within crystal report
Hi, I want to embed pdf file within crystal report. I have succssfully embed the image using XML schema file. It works fine. If I use the same technique for importing pdf file, it comes with blank screen. I have followed the following procedure. 1. Created xml schema file, < xml version="1.0" encoding="utf-8" > <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs=" http://www.w3.org/2001/XMLSchema "> <xs:element name="RevsCert"> <xs:complexType> <xs:sequence> <xs:element name="Id" /> <xs:element name="pdf" type="xs ...Show All
Architecture difficulty in understanding visitor pattern
Hi All, I have confusion on why is Visitor pattern is needed.One of the famous website provides the following code to explain the use of visitor pattern,but it is nto understood by me. Can somebody please explin in simple terms what is visitor pattern and in what case it is implemented. package Transactions ; public class Transaction { public abstract void accept( TransactionVisitor v); } interface TransactionVisitor { public void visit( DepositTransaction dt); public void visit( WithdrawlTransaction wt); } class DepositTransaction extends Transaction { public void accept( TransactionVisitor v) {v.visit( this );} } class WithdrawlTransaction extends Transaction { public void acce ...Show All
Visual Studio Team System Can I add filled contents to drop down list dynamicly?
When I customize process template, my customer want a field has the following features: When in a new team project or all exising work items left the field empty, the field is a common text box without dropdown list. Once we create a new work item and filled the field with a value (e.g. "Something"). After the item save and when we create another work item next time, 'Something' will be one of available suggested values and listed in a drop down list. Is it supported in customization or how can I implement this feature in my system You are working with two different entities - Workitem Type and workitem. You would like to modify workitem type based upon value set in the workitem. You can take this approach: Modify workite ...Show All
