zhuyanjun's Q&A profile
Visual Studio 2008 (Pre-release) Used of AddAutomationFocusChangedEventHandler in WPF application
When I used AddAutomationFocusChangedEventHandler function into a WPF Application, my application freeze. If I create another console executable just for using AddAutomationFocusChangedEventHandler, I have not problem. Example when I use WPF menu from my application, this application freeze. Have some people have problem with this function into WPF application Thanks. public ComponentAutomation() { ThreadStart threadDelegate = new ThreadStart(ThreadOfFocus); workerThread = new Thread(threadDelegate); workerThread.Start(); } public void ThreadOfFocus() { focusHandler = new AutomationFocusChangedEventHandler(OnFocusChange); Automation.AddAutomationFocusC ...Show All
.NET Development How to obtain client identity in remote server using HTTP channel
I am working on a remoting application where the windows form on the client side connects to the business component on a remote server for the processing. We are hosting the remote object in a console application and using singleton server activation for remoting. Now my remote server needs to obtain the client's user information to do some client-specific processing and I am trying to obtain the same with the following code in my remote host application: string userName = System.Threading.Thread.CurrentPrincipal.Identity.Name; This works fine and returns the 'domain/username' if I use TcpChannel for communication, but if I switch to HttpChannel for remoting, Thread.CurrentPrincipal.Identity.Name returns empty string. I tried using S ...Show All
SQL Server Time calculations in UDM
I have read Moshas Blog here http://www.sqljunkies.com/WebLog/mosha/archive/2006/10/25/time_calculations_parallelperiod.aspx#comments and I have a problem with decoding this example: CREATE [Prior Year Internet Sales Amount]; ([Measures].[Prior Year Internet Sales Amount], [Ship Date].[Date].MEMBERS) = ([Measures].[Internet Sales Amount], ParallelPeriod([Ship Date].[Fiscal].[Fiscal Year])); The problem is the (=) in the script. A set cannot have = is the error message I receive in management studio, when I run Moshas query. I am missing something obvious but what This is said to be better than using shell dimensions that is decribed here: http://www.obs3.com/A%20Different%20Approach%20to%20Time%20Calculations% ...Show All
Visual Studio Express Editions Help me to work it out, please!
I'm using Visual Basic 2005 Express Edition even though I have't used or learned any ex-Version VB such as VB6.0 or VB 2003. I just wanna use this program to design a small soft or just call a process. Here is my aim. As following table. At the first place, two limit scopes should be set up and put in. 69826368 70266088 70850207 71597928 69858912 70500974 71992266 71272820 70777677 70429960 68756454 68784797 One scope was supposed to cover the above numbers, that is these figures should fall in between minlimit and maxlimit. Another scope was something like 0.970 to 1.020, I used the scope to form a series of single ...Show All
Software Development for Windows Vista Visual designer display of Workflow
Was wondering if anyone had an idea as to how to fit a workflow in the designer on a single page. As I view my workflow in the designer it wraps to another page on the right and splits the CAG down the middle. It is not a show stopper by any means but at some point would like to either see the break across the flow line or perhaps be able to set a horizontal view so that the workflow fits on a single page. I have tried the PAN and ZOOM but can't seem to fit it the way I want to. Would be great if I could upload an image so you could see exactly what I mean. Would be happy to email a screen shot to anyone. As always, any help is much appreciated!!! -John ...Show All
Visual C++ How to Link Multiple Project
Hi Experts, I have created two projects in a single workspace in Visual C++. How can I Link the two projects to work together Thanks Tonmoy Hi, Thanks for your valuable comment. I don't want to copy the files into one project. Becasue I would like to know how to implement the mechansim using COM / other (as you said in case of exe). I gave an simple example to learn. So, pls help me about how I can use COM. Thanks Tonmoy ...Show All
Visual Studio 2008 (Pre-release) DLinq Hands-On Lab for VB
Hello, In Lab 1 I entered the code as shown. The following command code gives the error "End of statement expected" Dim custs = _ From c In Customers _ Where c.City = "London" _ Select c Any ideas what might be wrong Thanks, Tom Hi Genevieve, Thanks for taking time to look at this issue. I have copied the code from the original WORD document several times, but I still do not see what might be causing this. Module Module1 <Table(Name:= "Customers" )> _ Public Class Customers <Column(Id:= True )> _ Public CustomerID As String Private _City As String <Column(Storage:= "_City" ...Show All
Smart Device Development how to make the program run at backgroud?
how to make the program run at backgroud my develop platform is c# .net cf 2.0 thank you Simply create and start console application and it would run in background. ...Show All
Visual Basic Strict Color Data Types
Hey, i know what the problem is here, but i don't know how to fix it! Texttxt.ForeColor = GetSetting("My_Program", "Program_Options", "Fore_Col-Col", Color.Black) It says that it won't work because Color.Black can't be a string. Now i know there's a simple way around this problem... But i'd also like to know how to prevent this type mismatch (i believe that's what it's called) from happening again with ALL data types. Can any one give me some magical web page with all the answers (and solve this) too please The My.Settings.Save actually persist the settings to the configuration file otherwise you are only chnaging the in-memory copy and if you restart the application it wil ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Stuttering in D3D application
Hello, we're experiencing stuttering in our D3D game. With stuttering, I mean that the game loop will generally take 20-30 milliseconds to complete, running smoothly at ~30 fps. But then, like once per second or so, the game loop will take like 150 milliseonds or more to complete. The stuttering happens on many different computers so I don't think it's a driver/hardware/setup problem, but rather something that we're doing in our rendering that's causing the stuttering. Many other games run fine on these computers. I've profiled parts of the code.. and usually the huge delays come from D3D Present() method or the actual rendering. Does this indicate that there's a problem with the rendering command queue being filled up and stalled or somet ...Show All
Internet Explorer Development New MSDN BHO Article - Building Browser Helper Objects with Visual Studio 2005
This article has prescriptive advice on how to build a reliable BHO the way the IE designed them to be built. This was written by 2 members of the IE development team and has an easy step-by-step guide using Visual Studio 2005. Even if you are new to COM/ATL, you will find this article valuable. http://msdn.microsoft.com/library/default.asp url=/library/en-us/IETechCol/cols/dnexpie/expie_hello_bho.asp Igor Tandetnik wrote: > "If the page has no frames, the event is fired once after the page is > ready, but before any script has run." > > This statement is misleading at best. Scripts run as soon as the > <script> tag is encountered (except when it has DEFER attribute), which > naturally ...Show All
SQL Server SQL Server 2005 installation hangs on removing temporary files step
I have a virtual machine that previously had SQL Server 2005 installed. Since I changed the computer name, I have to reinstall SQL. I removed all the SQL components and am trying to reinstall the database and reporting components. The installation is failing on the "Removing temporary files" step. According to the setup progress screen, the following components have been installed: OWC11 SQL Server Bakcward-Compatibility Files SQL Server Database Services Reporting Services Visual Studio Integrated Development SQL Server Books Online SQLXML4 Workstation Components, Books Online - this step is still in "configuring components" status. The virtual machine is running Windows 2003 Server SP1 with all current ...Show All
Visual Studio Team System Team Build not generating release file correctly
I have a project that complies two dll’s and a single executable. When I do a manual build locally it creates the dll’s and exe file in the release folder under the project, but when I use the team build. Only the exp and lib files are generated. Has anyone had this issue All the team build settign apper to be correct, and no errors are generated durring the build. Thanks -Matt- I took another look at the project, and it is creating the binaries, it is just not moving them to the drop location. The only things that are placed in the drop location are the build and error logs. What am I not doing ...Show All
Game Technologies: DirectX, XNA, XACT, etc. My XNA Game 'iFACTOR'
Believe it or not, this time it's not a question :) I appreciate all the help I've been getting on this forum and I'd like to share some media of my first game. The media was taken from a Windows build but the game is designed for Xbox360. http://www.vector2games.com/ Thanks, Dave It looks very nice(i don't see whats the point or how to play..)but it looks nice i will defanatly download it when it comes out. Xna3der ...Show All
SQL Server Hide Dcoument Map by Default while viewing the Report in SSRS
Hello Experts I use a Report where i have a document Map getting generated. but by default it is displayed and the user has to close the window to view the report. i wanted to know if its possible to hide the Document map window by default and based on the click of the icon the window will be show to the user when viewing in the default Report page. /chandresh soni I created a report with Document Map on (from Matrix Textbox Properties | Navigation tab) and the same report without Document Map. Saved both and searched for differences in the resulting rdl files. This helped me to find the problem in my original report. Removing the Label element in the Grouping part of the Matrix element removed also ...Show All
