KateMtl's Q&A profile
Visual Studio Cannot progressively flush Output Window from Custom Tool
Hi, I am implementing a custom tool based on the provided BaseCodeGeneratorWithSite class. I am able to send text to the Output Window but it does not appear until the GenerateCode command has completed. I am unable to progressively flush the Output Window. This is a problem because the custom tool may take some time and incremental progress updates are important. Does anyone know how to flush the Output Window Thanks The output window (like the rest of the IDE) will not update its UI until the message loop gets a chance to process messages. Are you doing all your work in a single loop, without allowing the IDE to pump messages during that time To put it another way, is the IDE responsive to the user ...Show All
SQL Server fixed point arithmetic for price calculations
I've got a price in euro as a string, which I can easily cast to a numeric SSIS data type e.g. R4, R8, DECIMAL, NUMERIC. And I've got the dollar/euro exchange rate stored in an SSIS variable of type DOUBLE, set to 1.28 for testing purposes. I want to multiply the two values and return the (dollar) result, rounded (not truncated) to 2 decimal places, as a string. Here are some experiments I did in an SSIS expression editor: (DT_WSTR, 10) (1.28 * 31.10) evaluates to "39.8080" (DT_WSTR, 10) (1.28 * (DT_R8) "31.10") evaluates to "39.808" (DT_WSTR, 10) (1.28 * (DT_DECIMAL, 0) "31.10") evaluates to "39.68" (DT_WSTR, 10) (1.28 * (DT_DECIM ...Show All
SQL Server repeat information
Hello everyone, I have a report that shows some people’s information (sex, birthday, phone number, e-mail...) And I did a table that shows these information by expanding the person name.. for example: + Pedro + Mike + Matt and when I click on Pedro should appear: - Pedro Sex: Male Birthday: 02/15/1987 + Mike + Matt My problem is when the information is collapsed, it shows: - Pedro Male 02/15/1987 - Mike Male 12/12/1985 - Matt Sex: Male Birthday: 06/21/1980 Does anyone know why this is happening PS: Im sorry if this thread has some gramaticals problems. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA has it's own GamePad DeadZone?
I've been looking at the output of the thumbsticks, and it appears a value less than 24% (0.24) is ever returned. I know it's very important to implement deadzone in your programs, but why has it been done for us Someone may want to write a game that needs a smaller deadzone, but as far as I can tell it would be impossible given we don't have full access to the output right the way from 0 to 1. Is this behaviour intentional Many thanks, Adam Miles Has anyone filed this as a bug - if so, how can I find it and vote for it I would be totally stuffed if I could not roll my own... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can not create reference D3D device 10 on VISTA build5472
It returns E_OUTOFMEMORY everytime I tried to create a D3DDevice10. -SDK version: June 2006 -VISTA version: Beta 2 build 5472 (x64) -IDE : Visual Studio 2005 I tried both my own code and the 2nd tutorial. Any ideas If you're using the August SDK, the known issues readme page gives a good clue: Windows Vista RC1 Is Required for the Direct3D Technology Preview The August 2006 Direct3DR 10 Technology Preview is only supported on Windows Vista RC1: it is not supported on previous releases of Windows Vista. If you're using the June SDK, it only works with the original beta 2, not the refresh. ...Show All
Windows Forms progressbar while dataset is loading
I use a dataset to load around 1000 records into a DGV. How can I show a progressbar while a dataset is being loaded Ah ok, I see where your at. Well I'd suggest just looking at the backgroundworker1_DoWork() function. Thats the one that is does all the work on the background thread. Thats where you load the data into the dataset (or call a function that loads the data). While you're loading the data, just call the ReportProgress() function on the BackgroundWorker object any time you want ot update the progressbar (see the ComputeFibonacci() function for that). The call to the ReportProgress() function will trigger the ProgressChanged event on the BackgroundWorker. So in the example, an event ha ...Show All
Software Development for Windows Vista Problem while executing windows Application in UNC path from vista
Hi We have a .net windows application deployed on windows 2003 server. We have executing this application in two scenarios as specified below Scenario1: Accessing application (exe file) from another windows 2003 system using UNC path Scenario2: Accessing application (exe file) from another system having Windows-vista (RTM) using UNC path It’s executing perfectly in scenario1 but it’s not executing in scenario2. The application is having the logic of reading application configuration (app.config) file using System.Configuration. AppSettingsReader. When working with scenario2 the AppSettingsReader is not able to read the app.config file and returning null values. Can a ...Show All
SQL Server How to match a Count Measure in Process Partition component in SSIS?
I have a facttable, and it point to a Partition. In Process Partition component in SSIS, it ask to match the columns of the facttable to the Partition's Measures. I try and found all the Measures need to be point, or it will cause a mistake. But the quesiton is , I have a Measure which counts the num of rows. What column of the facttable I need to point to it Thanks. Just to clarify terminology - I think what you're referring to as "Process Partition component" is technically the "Partition Processing Destination" in SSIS. Because a measure with "Count" aggregation uses a "Row Binding", rather than a "Column Binding", you should only need to specify the fact table, a ...Show All
Audio and Video Development Markup Performance
I wrote a complete menu (including scrolling chapter menu with rotating images) in pure markup. The XMU file has in total about 1500 lines. Unfortunately I notice that it runs quite slow on HDiSim and in Players. Are 1500 lines too much for xmu It will depend on how complex your XPath queries are, how complicated the layout is, etc. "Number-of-lines" is never a good metric for gauging the complexity of something... especially since you could put it all 1500 lines on a single line :-) If you have real perf concerns, you can send me the page (and any other assets it needs to run) and I can take a look... no promises of amazing perf savings though; some things are just better done by scrip ...Show All
Visual Studio Express Editions Fail to install c# express
When im trying to install c# express i got message that the Background Intelligent Tansfer System is disabled (this service i cant run on my comuer even manually), How can i install c# express Please Help Thanks Ron Hi 1. My system is windows XP service pace 2 Its a computer that connected to a net (in my work). 2.The error message that i got is: "setup cannot continue because on of the required services applications is disabled. TO continue, please ensure that the service is enabled, close then and resart setup" "Background Intelligent Transfer System(BITS) But i cant run this service on my computer even manually Thanks Ron ...Show All
SQL Server Desprate..Please Help
I wrote an application using Visual Studio 2005. This app requires a login that get that accesses SQL Express Data. I have an XP Pro box set up as a server using DSL Modem and connected to that is a Wireless hub. I used Network Wizard to set up a Home/Small Business Network on all the computers. My laptop has XP Pro and has Visual Studio and that's where I wrote the application. It's connect to the wirless hub with a cat 5 cable. The other laptop has XP Home Edition and is in another room is connected with wirless only. I set up a user called user1 in SQLExpress with a password. I set it up using MIXED MODE. (SQL server and Windows authentication mode) Connection String: myCn.ConnectionString = "Provider=SQLOLEDB;Data Sou ...Show All
SQL Server LastPeriods
Hello, I am trying to retrieve the last 3 periods from the current month (ie Sept, Oct, Nov). I am thinking that LastPeriods function might work, but I am getting the following Error " The LASTPERIODS function expects a member expression for the 0 argument. A tuple set expression was used. " Here's the code. SELECT { LASTPERIODS (3, TAIL ( nonempty ([Week].[Week].[Week Name]. Members )) ) } ON COLUMNS FROM [GMDSummary] Hello, I ran into another issue as to I would like to order the [Week Name] by the Member Key. Currently, the LastPeriods() is returning "Week of 12/25/2006", "Week of 12/17/2006" instead of "Week of 1/22/2007" because it is order by ...Show All
Windows Forms Help starting "excel like" app
I first started programming with VBA in excel and am having a hard time going from that to VB express by itself. Can anyone give me advice on how to start creating an app that works like excel I want to create a layout like excel and enter information into the "cells" and then store that info into SQL. what is the best way to get started, (datagridview, etc...) thanks for any help. Jeff indeed, a datagridview is what you would require to have that kind of a cell grid view, where you can add/remove/edit data and finally update the database for example with the use of a dataset/datatable as a binding source and with a dataAdapter. I hope this gets you started: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=7538 ...Show All
Gadgets Communication between Gadgets ("premium")
Hi guys, I'm new to Windows Gadget, as far as I understood the Web ones are the ones more powerful and since I need advanced features I'm asking here. The guide says the "premium" gadgets can also communicate between them. And presuming that they can be "web" and live also outside the sidebar, I'd like to know a few things: 1) Is it hard to be a "premium" parner and thus being able to do "premium" gadget Which is the requirement 2) Is there any restriction on the "communication" between them Do they share a file or what Is there an API online 3) Does a "premium" gadget know its position in the desktop when we move it I mean especially when outside the sidebar. T ...Show All
Visual Studio What does "Navigate to Lollipop" mean on my visual studio
Hi I am getting a disabled button on the standard toolbar titled "Navigate to Lollipop" . Can some one tell me what is this regards Vishal Just did a google on visual studio 2005 and lollipop and found out that it is to do with the class designer, where a lollipop comes up when a class implements an interface regards Vishal ...Show All
