AlexBB's Q&A profile
SQL Server Cannot display database properties windows in Sql server management studio.
I use sql server 2005 developer edition with service pack 1. When i right click on a database and i select properties an error occured with the folowing stack trace =================================== Cannot show requested dialog. =================================== Cannot show requested dialog. (SqlMgmt) ------------------------------ Program Location: at Microsoft.SqlServer.Management.SqlMgmt.DefaultLaunchFormHostedControlAllocator.AllocateDialog(XmlDocument initializationXml, IServiceProvider dialogServiceProvider, CDataContainer dc) at Microsoft.SqlServer.Management.SqlMgmt.DefaultLaunchFormHostedControlAllocator.Microsoft.SqlServer.Management.SqlMgmt.ILaunchFormHostedControlAllocator.CreateDialog(XmlDocument ini ...Show All
Game Technologies: DirectX, XNA, XACT, etc. D3D10 Sprites are insane.
I'm trying to draw a single sprite to the screen. I have a window created (640,480) and the texture loaded in properly. The sprite drawing uses the code below in a Render() function. When run, the sprite does show up but is either tiny when scaling is not applied or skewed when scaling is applied. I know i'm messing up the scaling value, i'm just confused on what the formula should be for calculating it. Right now, i'm using example code from DXUT.cpp which says the scale should be (windowx/textureWidth) and (windowy/textureHeight). This gets the sprite close, but the result is skewed. Could someone please take a look at the code below and see if you see any glaring issues Thanks. Render() { // clear the target buffer ...Show All
Visual Studio 2008 (Pre-release) Text thumbnails & zoom
Hi everyone out there. I wanted to know if there is native support in WPF for scaling a text file, so that can I quickly get a thumbnail with the general text structure, and even support for using that visual representation like a regular image (e.g. rotate it, fade it away, etc). Thx in advance, Alan I guess I would like to manipulate it as a text (i.e. TextBlock) all along the way. Can I apply effects such as animation to a TextBlock Cheers, Alan ...Show All
Silverlight (formerly WPF/E) how i used createFromXaml method parametre as xaml file
Hi Friends, I know that we can create a xaml controls dynamically by using CreateFromXaml method. But The CreateFromXaml method takes a parameter as xaml control syntax but is it possible to send parameter as a xaml file name. or if any other way how i cretae dynamic controls by using xaml file . Thanks for reply, I tried your code but its not working, I got error like invalid procedure or method call at line var firstxaml=control.CreateFromXamlDownloader(first.xaml); . Here i will Explain my problem in detail: I have one Main.xaml file in this file i creted a one canvas in which i want to show different xaml files and two buttons say first and secon ...Show All
Visual Studio Express Editions Is there a kind of union structure in C Sharp?
I want to use "union" structure in C#,but can't find it! Can u help me Thanks in advance! Hi, soldier A union is a user-defined data or class type that, at any given time, contains only one object from its list of members (although that object can be an array or a class type). (In C or C++) A C++ union is a limited form of the class type. It can contain access specifiers (public, protected, private), member data, and member functions, including constructors and destructors. It cannot contain virtual functions or static data members. It cannot be used as a base class, nor can it have base classes. And in C#, union is not supported, but you can also simulate C++ union in C#. Thank you ...Show All
Software Development for Windows Vista Live UDF slow and buggy
In the following, I am comparing the Live UDF of Vista to Windows XP SP 2 with Roxio Drag-to-Disc version 8.0.5.23. The following tests are done on the exact same hardware, and using the same files. I have XP and Vista build 6000 installed on two separate partitions of the HD. This should serve to suggest that all of the following differences are due to software only, and not hardware or other factors. Two bugs : 1) I insert a CDRW and open Windows Explorer, and select Erase Disk. When I press the OK button to begin erasing, Explorer and the progress window both close, and the erase apparently is not being done... Launching Explorer again and trying the same thing again seems to work. This bug also existed in Pre-RC1 build, and seem ...Show All
SQL Server Parent Child Dimension AS 2000-2005
Hi, I have a parent child dimension in AS 2000. Some of the accounts belongs to more then one parent and I have solved that by using formula expression that points to the original account member. The source table for the dimension looks like this: AccountID AccountName ParentID Formula 1, 'A1', 10, '' 2, 'A2', 10,'' 3, 'A1', 20, '[Account].&[1]' 10, 'P1', 10, '' 20, 'P2', 20, '' I have tried to do the same in AS 2005 but I can not get it to work, should this type of dimension be implemented in a different way in AS 2005 Thanks, Christer You can use many-to-many dimension relationships to model this is AS 2005. I have an article on my blog on pretty much this exact scenario at http://geekswit ...Show All
Visual Basic Program doesn't terminate
Hi, i'm doing a program but i found something that isn't supposed to happen... When i click in the X to terminate the program instead of going to the menu the program closes but the task stays active... it only stops when i kill the task... someone knows why this happens Was this a upgraded application from a previous version of VB If you look in My Project -> Applications -> Shutdown Mode. ...Show All
.NET Development Escaping decimal points in regular expressions
I'm trying to do something that ought to be very simple. I'm trying to test whether a string (which is an argument to a command) is a valid value of the type I need. That is, I want it to be convertable to a double and be in the range 0.1-1.0. I have this line in my code: Regex ValidPause = new Regex("^((1\.0)|(0\.[1-9]))$"); The problem is that VS marks the string as bad and gives me the message "Unrecognized escape sequence." If I take out the backslashes, the red squiggly line goes away, but then it matches "0x0", which is obviously not what I want. How should I escape the decimal points correctly Thanks! That worked. I didn't think it would because I thought the '@' just ...Show All
Visual Studio Team System Profiling with instrumentation errors out when showing results
I've run a few profiling sessions with Vs.net 2005 both instrumented and sampling. However in my latest round of profiling with instrumentation Vs.net 2005 displays the error below as it completes report analysis. "Value was either too large or too small for an Int64" Looking at the performance output pane I see this error message: "Failed to load view 0 with error 'Value was either too large or too small for an Int64.'.\nCompleted Analysis for ..." Rerunning the profile session yields the same results. If anyone has experienced this and found a solution please let me know. Thanks Luke for the links. I discovered, quite by accident, the cause of my problem. Terminating profiling by p ...Show All
SQL Server Implementation Question - MODE / MEDIAN - CACHE processing
Hi, I am about to implement MODE and MEDIAN as - more or less - custom aggregation functions by calculated members. Now I am concerned about the performance of my really big cube. Could I use CACHE to imporve performance An how is CACHE at processing time - if i process only parts of my cube (one Partition of one MG) is CACHE processed only for this part or for the whole cube I expect a Cubesize >= 50GB and never could process at all (and therefore want to be sure that the cache is only processed for the parts I process ) (expect 5 MG and 60 Partitions per MG) Best Regards HANNES MG....Measuregroup why where is it documented My local documentation and the online documentation still includes CACHE FUNCTION ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Reading the buttons of Joystick Saitek x52
Hi all, Did anybody come across a C# sample that relates to Saitek X52 I have found some generic Joystick samples which help me read the buttons EXCEPT the Mode button. The GetButtons() function returns the codes of the pressed buttons, but I cannot get the status of the Mode button out. I just spoke to Saitek support - No .NET samples whatsoever. Any tips will be appreciated. Best Moni. It is supposed to give different meaning to the same button. This way Saitek tripples the number of buttons. This means that the modes should always show in the byte array returned by GetButtons(). 23 = Mode 1 24 = Mode 2 25 = Mode 3 Other buttons only show if they are pressed. Th ...Show All
Visual Studio Team System Not able to connect to MS Team Foundation Server
I had installed MS Team Explorer Standard edition in my system and tried to connect to the Team Foundation Server. But I was facing an error TF310003. Then I was advised to uninstall the Team Explorer and install a 180 day trial version of a Team suite through the link http://www.microsoft.com/downloads/details.aspx FamilyId=5677DDC4-5035-401F-95C3-CC6F46F6D8F7&displaylang=en and install Team Explorer again. But when I installed this suite and tried to run it, I faced the error "The Beta period is over". Please let me know what could the problem be, what could this be related to. I would also like to know what are all the list of softwares I need to have installed to connect successfully to the TFS. Please provide a ...Show All
Software Development for Windows Vista Can't register Windows SDK RC1 (5536.0.2) with Visual C# Express Edition
Hi, Environment: Windows SDK: RC1 (5536.0.2) .NET 3.0 Runtime: RC1 (4324.17) Orcas Tools for .NET: RC1 When I try to register SDK with VC# Express by going to Start --> All Programs --> Microsoft Windows SDK --> Visual Studio Registration--> Register Windows SDK Directories with Visual Studio 2005. I get a message indicating I must have "Visual Studion 2005 or VC++ Express edition installed". The documentation for Windows SDK (RC1) however indicates that it can be used with VC# Express edition. Anyway I can get it working with VC# Express thanks Anil What I'm trying to do is I had built a small WebService & client app using VS2005 C# Express, which worked ...Show All
Audio and Video Development Can I display several videos by different viedo cards in one PC?
Hi I'm writting a software using DirectShow to have several movies displaied independently by their coresponding video card and audio card pluged in one PC, such that people could watch their favourite movie by one computer at the same time. I'm just a beginner on DirectShow, so I wander following questions: i. How to enumerate all the available video card and audio card in my computer ii. How to create renderers related to different video card and audio card such that i can use them to display I shall thank you for your answer and help! You're looking for this forum: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=129&SiteID=1 ...Show All
