nares's Q&A profile
SQL Server Column Descriptions in Matrix
Is there a way to have a column description/header for each column in a matrix ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game Design Question: Multithreading
My understanding of the game loop in XNA (excluding setup and teardown) is: 1. Update 2. Draw I know there are benefits to multithreading an application but am unsure how to apply that to game design. I'm stuck on the idea that you need to complete all your updates for game state, running scripts, and so on, before you move on to drawing. The only benefit to multithreading during the Update stage that I see would be to get update tasks done faster. But all the threads would have to finish up their work before moving on to drawing. Actually, that's what I do with my Earth Orbit demo: I have a thread that computes the day-night texture on the fly as Earth rotates during its day. This happens as a background task so that it is rea ...Show All
Visual Basic listview to richtext drag / drop problem
I have a vb.net app coded up with drag drop from a listview to a richtext box. Here is the relevant code: I too used "if e.Data.GetDataPresent(DataFormats.Text) then" and i only get one event for each drag and drop. If you put a breakpoint on your drop handler, are you saying that it gets hit twice ...Show All
Visual Basic KB915038 doesn't help
Hi together I'm really surprised that this Hotfix generates so mutch discusion! I allway was thinking I'm the only person on this planet who has a crash problem with the VS2005 VB IDE. Great to here that I'm wrong. I talk about IDE Problems since we use VS2005 see: http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=3f637569-a763-48a6-8d11-ce6dbc4b5ecd and http://lab.msdn.microsoft.com/ProductFeedback/viewfeedback.aspx feedbackid=13ae36cc-93ef-4d5f-ae09-1ece03d5337f I installed the Hotfix KB915038 without success! My IDE crashes always after 20 - 30 Minutes. Does hav any one the same problems (read my feedback at lab.msdn.microsoft above) Best regards Horst ...Show All
SQL Server parameter question - which i have not found a solution for
I'm attempting to put together a more complex report,however I was experiencing troubles with the parameters. So I simplified it and will now bring to you for help. here is the current MDX for the dataset with member measures.bucket1 as sum ([REL TURN HRS].[TRN HRS].&[0] : strtomember ( "[REL TURN HRS].[TRN HRS].&[" + @bucket_size + "]" ) ,[Measures].[FACT CUT RELEASE Count]) SELECT NON EMPTY { measures.bucket1} ON COLUMNS , NON EMPTY {[CUSTOMER JOB].[Cust-Title-Issue-Job].[JOB_NUMBER]. ALLMEMBERS } ON ROWS FROM [DW INSIGHT] WHERE ([CUSTOMER JOB].[JOB_NUMBER].&[A403EZ0]) when i ran it i got the following message error The query contains th ...Show All
.NET Development Can MarshalAs interop attributes be set dynamically or overloaded?
Let's say I have an ATL based COM object that exposes the following method signature: STDMETHOD(Store)(/*[in]*/ BSTR bstrEncoding, /*[in]*/ BSTR bstrMessage, /*[out, retval]*/ long *plResult); The first parameter (bstrEncoding) in this method indicates what type of buffer (i.e. either "ansi" or "unicode") is actually contained in the second parameter (bstrMessage). To correctly use this method from managed code I need to be able to manipulate how the second parameter is marshalled in my custom RCW (created by using reflector to dissassemble a VS generated interop assembly). For example: If a unicode string is passed as the second param: int x = Foo.Store("unicode", someString); I'd simply accept the default ...Show All
Visual Studio 2008 (Pre-release) scrolling contents in a stackpanel which is inside a canvas?
Hi, We have a Canvas, over which we have some stackpanels at certain fixed positions, now these stackpanels are going to contain a no. of buttons (Fixed Size), i would like the stackpanel to be able to scroll it's contents. <Canvas> <ScrollViewer HorizontalScrollBarVisibility="Visible" Canvas.Left="0" Canvas.Top="10"> <StackPanel Orientation="horizontal"> <Button Content="Hello" Width="300"/> <Button Content="Hello" Width="300"/> <Button Content="Hello" Width="300"/> <Button Content="Hello" Width="300"/> <But ...Show All
Software Development for Windows Vista Expense Example - Missing SQL Scripts?
Hi, Just downloaded and ran the Expense Reporting sample, and created the DBs using the Workflow Tracking and Workflow Persistence scripts. However, after building and running ExpenseHost.exe I discovered that the SQL script files to create the required tables and stored procs are missing. Are they available from anywhere Regards, Michael The sql script needed for the tracking and persistence databases comes with the product. Their location is dependent on which version you have installed. With Beta 2.2 and prior builds they are found under %windir%\WinFX\v3.0\Windows Workflow Foundation\SQL\EN and for any of the RC build they can be found under %windir%\Microsoft.NET\Framework\v3.0\Windows Wor ...Show All
Visual C# NewLine - Help plz...
Hi there. I am trying to develop an application that uses a serial connected device. I' ve managed to create a UI that sends and receives data. Almost everything is working fine with the serial port object. My problem is that the serial port object sends one extra line feed, which terminates any receive of data of some commands. I would like to know how can I use the NewLine() property, so as to change the termination character. I've tried to write something like the following: port.NewLine = "\n" , port.NewLine = "null", port.NewLine = "\r", port.NewLine = "13" but none of the aforementioned ways worked. I would really appreciate any help of you. Thank you in advance.. ...Show All
Visual Studio Express Editions copy and paste into immediate window
Hi, Is there a way in VB2005/Express that allows user to copy a block of code and put it to a place for further usage similar to how it works in VB6's immediate window, where the immediate window can act as a viewable clipboard somehow it is not working the same way in VB2005/express, for example the code is showing in one line instead of retaining its original structure. I prefer the old way of copy and paste works :) is there any tool i am not aware about in VS Thanks there is another way to temporarily save the code: select them and drag it to the tool bar. It then can be used in other places of the project. ...Show All
Visual C++ trying to start an app
Ok I tried searching, but can't seem to put this together... I have some buttons set up and I'm trying to add code to get it to open another *.exe I'm trying to open notepad. And I'm using the forms designer to create the buttons. Here is what I've tried (from searching) private: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e) { CString CommandString = "notepad.exe"; system(CommandString); }; ...when compiling this gives me: error C2065: 'CString' : undeclared identifier error C2146: syntax error : missing ';' before identifier 'CommandString' error C2065: 'CommandString' : undeclared identifier ...If I use: PROCESS_INFORMATION pi; CreateProcess( "notepad.exe", NULL, NULL, NULL, ...Show All
.NET Development system.drawing.printing question
Hi there everyone.... I have done tons of reading in this forum and others about the best way to print documents (word and pdf) and have mixed reviews. If anyone can answer my question I will be eternally grateful... here goes... in .Net's PrintDocument class, how do I print a word document using this class I have read that you need to open a streamreader (and presumably read the doc) then handle the pageevent arg, but if I open a streamreader for the word file, will it lose the formatting I know I can use interop to do this printing, but all documentation I have read indicates I shouldn't do this, and besides I don't get the printer control I need when doing this. any ideas or suggesstions will be helpful.. ...Show All
Audio and Video Development How does MFT deliver Video Extended info to EVR?
Currently we are developping video decoder MFTs. How can MFT notify video extended info ( color conversion matrix, etc.) to EVR What attributes of sample or mediatype will be used by video processing in EVR mixer Does default mixer use video transfer matrix for video processing It seems there are two ways for getting video extended information from media type. 1. IMFVideoMediaType::GetVideoFormat can get the video format that include color matrix info.( but can't set information ) 2. IMFAttribute::GetUINT32( MF_MT_YUV_MATRIX, &Values) can get MFVideoTransferMatrix enumeration. According SDK's documents this attribute is for IMFMediaType. However, there is no way to attach extend info to IMFSample ( but ...Show All
Visual Studio Express Editions Text Box VALIDATION, VB.net 2005 Professional
Hi Dear I am working on a project as part of my coures, I need to validate some text boxes to avoid unwanted data format entering my access database they are as following. txtPerformerID.Text = "RAHP001" txtName.Text ="name" txtAgentName.Text ="name" txtPhoneNumber.Text="00442222222222" (UK Phone number) txtHouseNo.Text ="232" (Alphanumeric) txtStreet.Text ="London Road" txtPostCode.Text="KL2 3HL" (Uk Post code) txtDate.Text ="23/01/2007" (DD/MM/YYYY) I want these validation to be in event handler button called btnSAVE. Thanks for your help Another way to do it is to handle the Validating event of the Textbox (which triggers right before you leave the Te ...Show All
Visual Basic Strange Picturebox behavior
Using VB 2003 (.NET 1.1), I have a panel containing a 6x6 grid of picture boxes on a form. Each picture box has a background color, and 6 of the boxes contain a background image (small, single colored shape) loaded in as a bitmap for the MakeTransparent feature. In addition, the user can move around the boxes with the arrow keys, and each time the keys are pressed the current box's image property is filled with another bitmap (a cursor made of black lines). The problem I am running into is that when a picture box contains a background image, it ignores its own background color and uses the background color of the picture box to its right. (It will wrap around if it is the rightmost box in the row) Also, if the picture box to the righ ...Show All
