Rattlerr's Q&A profile
SQL Server AMO: Enumerate Calculated Members?
Hi, Apologies if I'm missing something obvious here. I'm trying to enumerate the calculated members in a cube using AMO (as part of programmatically building perspectives), however I can't see an easy way to do this. The collection of CalculationProperty objects on the cube's MdxScript object(s) would seem perfect (and indeed works for Adventure Works), but for my own hand-built cubes this collection is empty; CalculationProperty settings don't seem to be exposed anywhere in the BIDS UI so I assume they can only be set programmatically, which is of no particular use to me in the general case when operating on potentially manually-produced cubes. Aside from using CalculationProperty the only way I can see to do this within AMO would be to p ...Show All
Game Technologies: DirectX, XNA, XACT, etc. input strategy
Is getting a input device state heavy Should I only do it once per tick and save the info to some global variables that the rest of the of the program can access. Or can I use GetState() everytime I need to check the state of a input device Its probably a good idea I also made an input state manager (InputStateTracker) so I only call GetState() on mouse and keyboard once per frame as I am also using an action mapping implementation where you can map the input to enums of actions, and it got out of hand with all the GetState() calls I had :P ...Show All
Game Technologies: DirectX, XNA, XACT, etc. really strange problem with pixel shader!
I am implement a ambient occlusion, which throw several rays to check how many rays intersect with geometry. in my pixel shader I throw rays, if a ray intersects with any triangles, one variable will be increased by 1 and will be used afterward for shading. I initialize the variable ( iNumberOfIntersectedRays in my case)as 0, and increase it by one in the condition mensioned above. the problem is that when I debug the shader, sometime the variable is -1 or -2, and it just comes randomly. very strange. what possible mistake I have made. following is part of my code, anyone can help my out, thanks. float4 AO_PS( in float3 inColour : COLOR0, in float3 inPosition:COLOR1, in float3 inNormal : COLOR2, in float2 vPosition: VPOS ...Show All
Visual C# What does THROW mean?
I have C# and have been programming for two years. But, I still have NO IDEA what throw means! What does it mean it is generally used with the "new exception" meaning to throw back the exception to the caller, create an exception and "throw" it back to the caller of that method http://msdn2.microsoft.com/en-us/library/1ah5wsex.aspx should there not be a try catch block and you throw a new exception, you would get a JIT runtime exception when running the application. try it ;-) ...Show All
.NET Development Steps to build a network troubleshooter?
Hi, I have a program that monitors the system, but I need to add a feature. This feature includes a network troubleshooter, which checks all of the necessary components to connect to a network. Can anyone help me who has a XBOX360 or similar to create a network troubleshooter like the ones in the XBOX360 The steps the 360 takes are: 1) Network Adapter (I can already do this one) 2) IP Address Need to know how to verify 3) DNS How to confirm 4) MTU Max. Trans. Unit - What does this mean 5) ICMP What 6) NAT Again, what 7) Internet (Can do this too) Thank you, ...Show All
Windows Forms Using data from gridview to pre-populate a field in a Fieldview Insert
Ok I have 2 SqlDataConntions, 1 is for a users list, the other is for a list of items attached to the selected user. I use a multiview with 2 views to deal with this list of items. View 1 is a datalist control that displays the list View 2 is a Formview control that is only setup for insert mode. What I need to be able to do is when I add items with my Formview, I can draw one field ( the keyid of the selected item from the first SqlDataConntion) into my Formview so it populates a field on that Formview to link the data together. I'm sure it's somethign simple but I can't figure out how to do it. ...Show All
Windows Forms Need help with SendInput function
Hi, this piece of code is supposed to print a letter, but nothing happens. Can anyone help me to find what's wrong Thanks. // Structures for keyboard input public struct KEYBDINPUT { public int vkCode; public int scanCode; public int flags; public int time; public int dwExtraInfo; } public struct INPUT { public int type; public KEYBDINPUT ki; } // Declaration of SendInput [DllImport("User32.dll")] public static extern int SendInput( int nInputs, ref INPUT pInputs, int cbSize); // Function that outputs the letter public void PrintMyKey( int vkCode) { INPUT input = new INPUT(); input.type = INPUT_KEYBOARD; input.ki.vkCode = vkCode; SendInput(1, ref input, 28); } // Call that function PrintMyKey(65 ...Show All
Visual C++ ATL8, depending library's
Hi, i'm creating a activeX object (ATL8/COM) with Visual studio 2005. I was wondering when at the moment that i publish the client object, do the users need new updated dll's like with the new CRL when running a C++ application written in VC8 because that wouldnt be really effective ;) thanks already ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can anyone replicate this Generic List and Component problem I am having
Hi, I belive this is a problem with XNA Game Studio because of the discussion I have had on the Winform thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=766386&SiteID=1&mode=1 [Problem with List<T> and TypeConverter] I have a GameComponent that contains a Generic list of my custom class called Background Layer. This Background Layer has a custom type converter called LayerConverter. The problem I am having is that when I edit the collection via the designer the collection property editor is wrong. The properties that I can see are under an expansion box called "Value", changing this value doesn't work it keeps reverting back. I have traced it to the fact that whatever calls the type converter calls ...Show All
Windows Live Developer Forums Get Coordinates onclick
I'm fairly new to javascript, and, as such, I have what I feel like should be a simple question. I want to get the coordinates (either pixel x, y or latitude, longitude will do) of where the user clicks on the map. I want to place push pins where they click, and, ultimately, I want to allow a connect the dots type drawing where the user simply clicks and a line is connected from where he previously clicked. I was hoping this could be raised as an event, but it doesn't look like it. Thanks in advance. Nice helper function -- I like the conversions. For the map events, I use something similar, attached to the two functions like this so that every time the map is moved the status bar receives an update: map.AttachEvent( "onendc ...Show All
Windows Forms Disable New Row on DataGrid
Is there any way to disable the ability to create a new row at the bottom of a datagrid The row marked as "*" appears automatically and I want to disable so I can programatically control inserting of new rows. Thanks If the new row is showing up, then your datasource is an IBindingList (a DataView if you are binding to a DataTable). You need to set the AllowNew property of the datasource to false. For example, if you are binding to the DataTable myDataTable, then set "myDataTable.DefaultView.AllowNew = false;". ...Show All
Software Development for Windows Vista TDI interface
As stated in Vista compatibility cookbook Note The TDI interface is on a path to deprecation in a future release. However, these drivers will still work on Windows Vista. However my TDI driver, that works just fine on Win2000/WinXP stopped to work on Vista. It just doesn't load without any specific error code. If somebody have had solved a simular problem on Vista, I would be grateful for any advice, I am just clueless. And, in the worse case, have somebody tried to migrate to WFP Is it alot of work Thanks a lot OTNS ...Show All
Visual Basic ociEnvCreate failed with return code
Hi I am new to VB.net windows application i am using VS2005 and oracle client for database connection i am getting this error when i run the application " ociEnvCreate failed with return code - 1 but error message text was not availabe " can anyone help me plz Thanks in advance Hi Thanks for your reply This is the first time i am writting application events in VB.net can you please help me in this i did following steps to write application events that you have send With a project selected in Solution Explorer , click Properties on the Project menu. Click the Application tab. Click the View Application Events button to open the Code Editor. after opening applicationeven ...Show All
Visual Basic surpressing the "Printing page 1 of Document" message
I am using vb.net. and sql server 2005 reporting services. But the report in question uses the local report functionality. I am writing a credit card processor that prints a slip at the end of the transaction. There is an annoying message form that pops up on the screen stating that it is "Printing Page 1 of Document" . It seems to be beyond my reach. Its position is the typical windows auto positioning (ala cascade). I dont want the user to see it. How do i surpress this printing message Is it embedded in the printer driver or spooler services Is it surpressable from the reporting services local report configuration Thanx JerryCic, Sorry to reply you for quite a long time be ...Show All
Windows Forms How to choose the execution thread for a delegate?
Hello. I wonder how to choose a specific execution thread for a delegate. With "simple" async delegate calls, we just know it will run on some thread of the thread pool, but not on which one. Control.Invoke(...) method allow to get the delegate running on the GUI thread of the control. The BackgroundWorker component matches it, I don't know how, to get back to the "main" thread (in opposition to the worker thread), whithout a reference to a control. Is there any way I can do something similar to the BackgroundWorker component, choosing the executing thread for a delegate without reference to a control Thanks... ;) The IDE debugger and the "Edit and Continue&q ...Show All
