kleinma's Q&A profile
Visual Studio 2008 (Pre-release) CompositionTarget.Rendering and measuring frame rate
Hi, I'm trying to create a small control that shows the frame rate of my WPF application. I know I can use WpfPerf for this, but I want something handy and built-in so I can measure this from anywhere. My understanding is that CompositionTarget.Rendering is an event that is called every time the window is actually rendered to the screen. My problem is that this event is firing faster than my eyes (and WpfPerf ) are telling me the window is being rendered. For example, I have a page with a lot of UIElements in it inside a ScrollViewer. According to WpfPerf, the frame rate is around 20 fps while scrolling. However, I'm seeing CompositionTarget.Rendering being fired around 60 times per second. So 2 questions: 1. Why is CompositionTarget.Ren ...Show All
SQL Server Way to manually create Aggregation?
Hi all! I am Looking for a way to manualy create an aggregation in SSAS2005 (like the "Partition Aggregation Utiliy" in SSAS2000) By the way - I cannot find a representation of the aggregations in the cube XML in BI Development Studio - is this possible Thanks HANNES Hi, Thanks, I have found the aggregations in BI project. On the other hand - sorry, but I am not a member of SQL PASS! Do you know a website where such information is available public THANKS, HANNES ...Show All
Visual Studio Express Editions c1083 error
I'm a little rusty with this. I believe I need to change some setting to get this to compile. I've read through the c1083 help pages, but I could not find any information I could use. Do I need to confirm the existance of Clipboard.h ******************************************************************************* my code: (simplified version) // rccilproj.cpp : Defines the entry point for the console application. // compile with: /clr #using <System.Windows.Forms.dll> using namespace System; using namespace System::Windows::Forms; #include "stdafx.h" #include "Clipboard.h" int _tmain(int argc, _TCHAR* argv[]) { return 0; } *************************************************************** ...Show All
Visual Basic List box Items..how do you refer to them?
I wanted to refer to a specific listbox item....but how do you do that I tried using the same method as one would do with tabs, ex. Listbox1.Items.Item(1) Using an index number... but that didnt work apparently, I got an exception error... So how would I refer to the first item in a listbox, the second I cant use their specific name because I have code set to change the listbox items at user intervention... alright here's whats going on: on form_load I have the following Listbox1.Items.Item(0)= My.Settings.firstitem.ToString() (i tried w/o tostring too) By Default My.Settings.firstitem has the text "blank" It gives me an exception error you cannot refer to the index with the number 0 ...Show All
Windows Forms How can I get the event when a Form is loaded and shown on the screen?
I have a form that takes a long time to load due to some data that is being loaded on the OnLoad event. This makes the application unresponsive when the form is being opened. So what I want to do is to display a panel on top of the form that shows "LOADING..." until the form is finished loadong. The problem is that I want to start the time consuming function only after the form has been loaded and shown on the screen but I have no event for that.. Ways to solve the problem: 1. Call a BackgroundWorker thread for the time consuming function. The problem is that if the time consuming function is updating the GUI then i need to create a delegate for every change that it wants to perform on the GUI and it might also make the GUI lo ...Show All
Software Development for Windows Vista Per Pixel Alpha subthemed controls
New to Vista themes is visual styles that have perpixel alpha values. In my various incarnations of apps testing theming in Vista, I've started with a button on a Windows Form, subtheming it to a StartMiddle button, which works as expeted (the start menu image appears in the middle of the button area, the edges of the button image fade with the background, and the rest of the button area is invisible). I then created a glass pane (no frame, useing DwmBlurBehind), and then drew the TaskbarComposited::Taskbar background on top of the window, which then emulates exactly the feel of the taskbar itself, with it's blurry glass effect, with the taskbar image partially transparent. I also had a button subthemed to StartMiddle, and it appeared exac ...Show All
Windows Forms Knowing when a .NET application is 'busy'
OK, here's a good one... I'm currently working on a data driven application with sets on top of a networked instance of SQL server. At many points in the application the server response time may be more than a few a seconds causing the app to just 'hang' unresponsively until the call returns and updates it. In addition, the app does several potentially intensive processing routines client side which may also take a great deal of time and in turn cause the app to hang unresponsively. So in lieu of just searching empirically for all the potential hang spots in the application is there a way to just monitor application as a whole watching for hangs so I can pop a busy bar to the user For example, is there a way to watch the AppDomain or the ...Show All
Visual Studio XML documentation tags support in Sandcastle
Currently Sandcastle supports C# recommended tags as defined by http://msdn2.microsoft.com/en-us/library/5ast78ax.aspx . As per the forums posts at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=629715&SiteID=1 we plan to supports the custom nDoc style tags in our ERTW release. As per http://ndoc.sourceforge.net/usersguide.html the tags we need to support are the following: <event> <exclude> <overloads> <preliminary> <threadsafety> <note> Please let me know if this list is complete Also we will provide documentation on adding user defined tags. Anand.. Yes, amen to that, the inheritdoc tag is hugely useful, I used it a lot in my product! Please put i ...Show All
Visual Studio Adding elements from language explorer
Hi, How can I disable the addition of new elements from the language explorer Help is really appreciated, Tks, D Hi, You can remove the Element Merge Directive from the domain class that is represented by your compartmentshape to the domain class that is displayed as the compartment item in this shape. This is a litlle more discussed in this post . Please note that this solution also removes the "add new ..." menu commands from the shapes (right click). Is that what you want Edward ...Show All
Visual Basic VB 2005 Express Publishing, minimum source files required?
Can anyone tell me what are the neccesary source files for building/publishing my application I need to archive the files and only want to save the minimum required files. Does a certain directory structure have to be maintained If so, what folders. In general the files necessary to building your app are all of those that your project file references and that show up in the Solution Explorer pane of the IDE when the Show All Files option is not enabled. The bin and obj folders however can be nuked however at times you may want to save what is in your bin\release folder for later use of knowing exactly what build has been deployed. Your project may be different however as it may reference non-standard or ...Show All
SQL Server Using CTE in data paging
I explore a possibility of using Common Table Expression (CTE) instead of temporary table in data paging. But the problem is that it looks like I can reference CTE only once in my script. I need to return data for a current page as well as the row count for entire selection. Here is my script: with names(row_num, first_name, last_name) as ( select row_num = row_number() over(order by last_name, first_name), first_name, last_name from contacts where last_name like 's%' and first_name like 'm%' ) select row_num, first_name, last_name from names where row_num between 41 and 60 -- 3rd page order by row_num select count(*) from names go It selects 20 records, however it displays an error when it tries to execute select count(*): ...Show All
SQL Server REporitng Services for 2005 Express Advanced
Good day, I have recently downloaded the SQL Server 2005 Express Advanced. According to the site Reporting Services is included with this and when installing one can see Reporting Services installing so all seems fine. Well, after many days of pulling my hair out I am stuck. All I am trying to do at the moment is view the http://localhost/reports page and I can't. I keep getting an error saying the following: Server Error in '/Reports' Application. I did but I cannot remember what I did. I had all the good intentions of posting my results here but then got caught up in the next project. One thing I did note is that I upgraded IE to Ver. 6, but more than that I cannot remember. I am sorry ...Show All
.NET Development file upload to https server not working
i am sending a file to a https server and i am not getting back the same results as iexplorer is, or the same page. my page has an error that its displays, which is "Error: Cannot find bean: "UploadBean" in any scope" i captured the stream from iexplorer and my app and its the same thing being sent. any ideas here is the file that i am sending using multipart-form content type StringBuilder^ sData = gcnew StringBuilder(); sData->Append("--" + sBoundary); sData->Append("\r\n"); sData->Append("Content-Disposition: form-data; name=\"firstTime\""); sData->Append("\r\n\r\n"); sData->Append("F"); sData->Append("\r\n"); sData->Append("--" + sBoundary); sData->Append("\r\n"); sData->Append("Content-D ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Error running app - PGORT80.DLL was not found
Hello, I have made a Dx9 application and when I try to run "app.exe" I get an error that "This application has failed to start because PGORT80.dll was not found. Re-installing the app may fix the problem". I added quite a lot of stuff to app recently so I have no idead what causes this, but few months ago there was no problem. DO you have any ideas how to resolve this Maybe I have to configure the Build settings somehow so it includes this dll. Peto ...Show All
Software Development for Windows Vista Test case 15: installing shared dll
Are we allowed to installed shared dlls into c:\windows\system32 In notes it is written: " If the application installs drivers and/or Windows redistributive components they may be installed to existing Windows directories." What is a "Windows redistributive component" We have a dll shared by many different softwares from our company or other companies having bought a licence for our API. We must ensure this dll is installed only in one place on system, and System32 is the ONLY common place. On top of that, this shared dll is a Win32 C DLL, called by our main application written in C# .NET We are using DllImport attribute to access methods of this shared dll. As this Dll is shared, it can not be stored in the application ...Show All
