davidacoder's Q&A profile
SQL Server How: Connecting a dimension to a cube via calculated member
Hello Anyone, I have a dimension called Investment Group. In this dimension, it has 2 attributes for minimum and maximum YTD investment. The only way I can connect this to the cube is by relating it to a calculated measure called YTD Investment. Is there a way to connect a dimension to cube using a calculated member Thanks, Joseph ...Show All
Smart Device Development Why no managed C++?
I am wondering what is the specific reason why there is no support for managed C++ (CLR projects) in smart device development Is it because this area is not very popular and since most .Net programmers use C# and VB, MS figured the resources are better spent elsewhere Or is there some other, technical reason I have done plenty of Win32 and MFC development and I have no problem using Win32 (or should I say, the Windows API) for lower-level stuff (inter-process and thread synchronization and communication, system and hardware access, etc.) but MFC was really only good for GUI stuff and now that we have .Net, which can do that and so much more, I just don't want to have to go back. And I'm really not looking forward to learning C# - not that ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Drawing part of a texture
Hi Guys I have a question about a 2d texure I'm using. The image file used by the texture contains a series of frames next to one another. Drawing the whole texture is easy enough, but what I want to do is to only draw bits (i.e. an individual frame) of that texture at a specific time. How would I go about doing this Thanks Kris has it right. To dipslay just part of your texture file on a sprite, you would use one of the overloads of the SpriteBatch object so specify what the "Source" rectangle is for your sprite. The "Source" rectangle, defines a rectangle within your texture that should be drawn on your sprite. mSpriteBatch.Draw(mTheTexture, mThePositionAndSizeOfYourSprite, mTheAreaI ...Show All
Visual Basic Need help exporting VB.Net variables/data to VBA macro
Hi I'm using VBA AutoCAD for drawing, but instead of defining parameters in VBA, I would like to take those parameters from VB.Net codes. Here is an example Sub CreateCylinder() Dim CylinderObj As Acad3DSolid Dim center(0 To 2) As Double Dim radius As Double Dim height As Double ' Define the cylinder parameters center(0) = 5#: center(1) = 5#: center(2) = 0 radius = 10#: height = 20# ' Create the cylinder in model space Set CylinderObj = ThisDrawing.ModelSpace.AddCylinder(center, radius, height) End Sub This VBA code will create a cylinder at co-ordinates (5,5,0) with radius = 10 and height = 20. I would like to know how to link or export these parameters from VB.Net to VBA AutoCAD for plotting. Many t ...Show All
Windows Forms Selection problem!!
Hi, I'm trying to create a selection script and running into a problem. I need to have four selections; E = encrypt; D = decrypt; Q = quit; and one for if something else was picked. This is what I got so far and I'm lost on how to add the selection menu using System; using System.Collections.Generic; using System.Text; namespace week4 { public class Crypto { public static void Main( string [] args) { Crypto crypt = new Crypto (); crypt.displayMessage(crypt.convertData(crypt.getInput())); } public string getInput() { string getInput; Console .Write( "Please enter a single Character >" ); getInput = Console .ReadLine(); return getInput; ...Show All
Silverlight (formerly WPF/E) How to redirect on XAML file to anotherXAML file in same project
Hi, How can i call one xaml file from another xaml file in same project . Example : Suppose in my First.xaml file have one button .onclick of this button i want to show second.xaml file how i can achive this by using javascript as a code behind. Thanks Hi Thiago Henrique da Silva , I tried it and i got error like "Unspecified error " at line control.Source = 'first.xaml'; I am waiting for reply. if possible please send your email id so that we can chat . My gmail id is : dinchaudhari@gmail.com Thanks, ...Show All
SQL Server ForEach DataFlow Task
I want to be able to loop through a view and execute a dataflow task for each record. I would like to pass the value of a column to the dataflow task to be used as a parameter in a data reader. How can I do this Danny Crowell wrote: I want to be able to loop through a view and execute a dataflow task for each record. I would like to pass the value of a column to the dataflow task to be used as a parameter in a data reader. How can I do this Load an Execute SQL task with the SQL for the view into an OBJECT-typed variable. Then, using a foreach loop against that ADO recordset, you can grab a column and stick its contents into another variable that you can use in the foreach loop-contained data flow. ...Show All
Windows Forms installing windowsInstaller
for run and execute .NET Framework 2 with installscript, I need to install windowsInstaller. Enyone knows how can I write script for installing windowsinstaller 3.1 on installscript. I'm not sure exactly what you're getting at here - installscript is the proprietary name of the InstallShield scripting engine, so are you using InstallShield Most setup tools (including Visual Studio) have a bootstrapper that will make sure the right version of Windows Installer is present. It doesn't make a lot of sense to install Windows Installer from within a setup because you might need a partiocular version of Windows Installer before the setup will start. ...Show All
Architecture Microsoft Architect Insight Conference - UK EVENT
I'm going to this one: ...Show All
Visual Studio Run .Exe from MSBuild on Target BeforeBuild
Hi all, Is it possible to run an .exe file through MSBuild (from command prompt). How we should do this.. All that I need is to run an .exe from Target BeforeBuild. Thanks in advance Manish Bhushan. You should have a look at the Exec task. Sayed Ibrahim Hashimi www.sedodream.com ...Show All
Smart Device Development TAPI .Net CF 1.0
I have written a C# application using the TAPI p/Invoke methods to make voice calls and to have the ability to send DTMF signals for certain call control features such as mute, etc. I am having some strange problems. The first device that I am using is a Motorola Q device. If I power up the device and then start the application I am able to make phone calls, etc., but I cannot hangup the calls unless I shutdown the application which shuts down TAPI. If after I power up the device I make a phone call using the phone itsef, then hang up and then use the application I can hang up calls. However, there are times when the I make the call, that the phone application will handle the call meaning that I get the normal phone diali ...Show All
Visual Studio 2008 (Pre-release) msmqIntegrationBinding with Multicast not working!
Im playing with the WCFToMSMQ sample come with June CTP and try to make it work with multicast. the client configuration : < system.serviceModel > < client > < endpoint name = " OrderResponseEndpoint " address = " msmq.formatname:MULTICAST=234.1.1.1:4455 " binding = " msmqIntegrationBinding " bindingCon ...Show All
Visual Basic need help with offsets for LayoutKind.Explicit - unravelling a returned struct from unmanaged into managed
Mathew Gertz pointed me in the right direction I believe in an earlier post. My P/Invoke is returning valid values for 'name' below at field offset 0 and other values as I can see in QuickWatch. StructA below is passed and returned from the unmanaged C++ dll with valid values. An error is thrown however; System.ExecutionEngineException was unhandled Message="Exception of type 'System.ExecutionEngineException' was thrown." I would like to try Mathew's idea of using LayoutKind.Explicit rather than LayoutKind.Sequential which I am currently using. If I had <FieldOffset(0)> for the first member of StructA, can anyone help me with how the rest would look I would say Offsets would increase by 1. 4 after each Integ ...Show All
Software Development for Windows Vista Workflow solution consideration
My organization was in the process of selecting a workflow engine in order to automate all our business processes and have gone through various options like Opentext Live Link, Captaris Teamplate to name a few when we bumped into Windows Workflow and found it the most appropriate option out of the lot. So now we have decided to use it as our tool to automate all the business processes, through the development of a in-house asp.net application (which shall include user task-lists, admin module etc.) and were wondering if thats the right approach or should we stick to one of the ready-made workflow solutions Besides we were also looking to find an appropriate book or technical training content to give us a kick start in it ...Show All
Visual Studio Team System Error configuring Web Site ... to ASP.Net failed
How do I fix this How do I manually configure this site for debugging The related help is for Beta 2. Is this help applicable to the released version Please can you give more details on what are you trying , anyway at first sight it seems a question regardin web development and not TFS, so maybe you would better try on the Visual Studio web development forums. ...Show All
