Brad_SAN's Q&A profile
.NET Development [C#] shell extension : IContextMenu.GetCommandString
i am looking into the SDK\v1.1\Technologies\Interop\Applications\ShellCmd which come with VS.Net 2003 (guess, me copy it somewhere from internet) the sample work well except the IContextMenu.GetCommandString, it should show the description on the Explorer statusbar, but it not. me have try to add MessageBox.Show() to check whether it have fired or not, and it fire when me rollover the menuitem. me running Windows XP SP2 is there any idea to make it work :: code copy from the sample :: void IContextMenu.GetCommandString(int idCmd, uint uFlags, int pwReserved, StringBuilder commandString, int cchMax) { switch(uFlags) { case (uint)GCS.VERB: commandString = new StringBuilder(m_items[idCmd - 1].command.Substring(1, cchMax - 1)); ...Show All
SQL Server Both SQL 2000 and SQL 2005 on same production server
Hello, We have a vendor supplied application that only supports SQL 2000 (for at least another 6 months.) Our team also wants to use SQL 2005 for some of the native XML benefits with custom code. Several of our team wants to install both versions of SQL (2k, 2005) on the same server even in our production environment. I am wary of supporting this for a high availability application, and am concerned that the next service pack or hotfix could cause problems. 1) Though I have read it is supported, are any Fortune 100 type companies using this configuration for high availability applications 2) Does SQL's fundamental capability to support multiple instances make this more trivial than I am thinking 3) Would anyone have points t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do I get the animation from a fbx file to play in XNA
Im using maya for the modeling riggin and animation, with .FBX files. but I cant found how to get the animation that I have in my character to play in XNA, I just dont know how to do it, for example, I have a walk cicle so the character walk trouh the scene, I can move it, but hi doesn walk, please give some guidelines There is no built in way to do animations right now. In future updates, the XNA team will be including animations. For now, there are a few community projects that are working on a solution. This one is probably your best solution right now: http://www.codeplex.com/animationcomponents ...Show All
Game Technologies: DirectX, XNA, XACT, etc. LoadGraphicsContent() only safe place to load new resources or just a handy method?
Hey all, Topic more or less says it all. There's really no reason to be loading say, snow graphics when I'm in a jungle level - is LoadGraphicsContent() the only 100% reliable safe method to load graphics content Or are you able to load graphics as you need them throughout the code The LoadGraphicsContent is called by the Game Class whenever the Graphics Device needs initialising, like when the game starts, when the screen gets resized or if the game switches to full screen. Originally this was a manual task in the BETA but thankfully it is now automated. most of your game assets should be loaded when the game starts but if you have a set of changing assets (i.e. maps or screens for game levels) ...Show All
Visual C++ Only half of the CPU used
Hi All: I am running a c++ program in the debugging mode in Visual Studio 2005 (standard edition) - I'm noticing the CPU usage is only 50%. I'm using a new pentium D chip 3.0 ghz on a new dell optiplex gx620 - Wow - what is up with this How can I reclaim my "personal computer" and use all the power of my processor - This really sucks. -Phil You can use SetThreadIdealProcessor to change the preferred processor for a thread. For more information, visit http://msdn.microsoft.com/library/default.asp url=/library/en-us/dllproc/base/openprocess.asp . ...Show All
SQL Server Dynamic File Names for Raw files created by conditional expressions
Hello, I have a huge table of around 6.2 billion rows in Oracle and I need to load this table to SQL Server. I am creating multiple raw files based on contact_dates in the table. I have used conditional expressions to branch out and create raw files. I need to specify static file names for each branch or I have to create multiple variables for each branch and use expressions to create file names. My intention is to create only 1 variable and evaluate the expression based on the conditional expression description. Is this possible Regards RH Here's one way to do it, perhaps: Create an execute sql task in the control flow to select distinct contact_dates fr ...Show All
.NET Development CLR DLL works on manufactorer PC, but not on other PC
I made a CLR DLL in C++ Express, this dll is a devolopent tool, it contains classes useful classes for Visual Studio deveopers. I have tested it in both VCS and VC++ on the PC where I created it, 'PC1' and every thing works well. But I sent it over to another PC 'PC2' with CSharp Express and VB EXpress, but the dll works in neither. When ever a try to run an app created on PC2 that refrences my dll it complains that it cannot load the dll file. The funny thing is it does not give me any compiler errors, and as I am refrencing it in code it seems to be working fine, it is only when I run the program that it gives me the error. I dont understand why it works on PC1 but not P ...Show All
Visual Studio Tools for Office Word 2007: How to determine the paragraph ID/section ID/ font type at the current cursor location using VSTO 2005 SE
Hi, I need to write code that will fire events when the user switches paragraphs/sections and changes the font face/changes the style etc on a Word 2007 document. Any suggestions You can't get full control for this, Word simply does not expose these events. If the user moves to a new paragraph or section using the mouse or arrow keys, then the WindowSelectionChange event will be fired. You can trap this and evaluate. There is no event that will fire when formatting is changed. Best you could do here would be to provide your own interface for formatting (your own Ribbon). But you won't have control over the Minibar, and you won't be able to intercept keypresses (such as Ctrl+B to apply Bold). Conceiv ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Izzy545 mentioned on Major Nelson's PodCast
Hey, just informing you of Izzy545's game being mentioned on Major Nelson's PodCast. Congrats, Izzy545. Well done Izzy545, I feel like you and teh_programerer, are my LearnXNA Brothers, although both your games were better than mine :D. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. rotating in degrees
I'm not very old and haven't learnt phisics or radians so how could i convert degrees in to radians so i can just use degrees to rotate my sprites. I understand radians might be easier to use if i wanted to constantly rotate my sprite but all i want to do is rotate it X degrees i found this: http://upload.wikimedia.org/math/1/6/2/162fb4bdc4be8fa862b77a4ac5ecbba6.png it might help but i don't know how to reverse it so x degrees = y rad ...Show All
.NET Development how to map the network drive using vb.net
Hi friends i have to map the network drive using vb.net plz help me irshad ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Intel Extreme Graphics 2 Screen Rotation
I am using the 82852/82855 GME Graphics Controller. Using the provided control panel applet "Intel Extreme Graphics 2 for Mobile", I am able to rotate the screen 90/180/270. Is there an API that I can call to do this from within my own application I am running Windows 2000 with Service Pack 4. I have tried using the ChangeDisplaySettingsEx call, and it returns successfully, but the screen does not rotate. I have put in some email requests with Intel to get support on this, but haven't received much info from them. Any help would be greatly appreciated. This is proprietary feature of Intel drivers, so I'm afraid there is no API for it. You may still try to emulate keyboard presses... ...Show All
.NET Development VB.Net Cleaning up after DataReader
Hi, I am getting a warning message with the following (trivial) code example: Private Sub Form1_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Load Dim connString As String = _ "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:\Program Files\Microsoft Office\Office11\Samples\Northwind.mdb;" Dim connection As New OleDbConnection(connString) Dim sql As String = "SELECT FirstName, LastName FROM Employees" Dim command As New OleDbCommand(sql, connection) Dim rdr As OleDbDataReader Try connection.Open() rdr = command.ExecuteReader() While rdr.Read lbEmployees.Items.Add( CType ...Show All
SQL Server Database Backup
Hi, I want to know how to take a database backup in sqlexpress from command line. Can some one help me Thanks. At it's most simple, you'd use something like this: SQLCmd -S .\SQLEXPRESS -E -Q " BACKUP DATABASE AdventureWorks TO DISK = N 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\AdventureWorks.bak'" This isn't teribly flexible or robust, so you're more likely going to want to write a backup script and call that script file rather than just typing in a simple T-SQL command. Read the BOL topic on BACKUP for information about the various options. You can find a general overview of database backup here . Jasper Smith, one of the SQL Server MVPs, has put to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Consuming XBox Live Stat Information?
I'm interested in consuming XBox Live Stat information. Is there anything up right now that Microsoft offers for me to consume a Xbox Live type of 'web service' Is this something that will be available with XNA It seems to me XNA will help game developers build games that communicate with xbox live to store game info/stats/scores, etc, but what about consuming this information from websites Will there be a licensing program for something like this if I wanted to do it Thanks, Ken Michael, I appreciate the time you took to look into this for me. Are there any partnerships that are available during the XNA development cycle where a company/individual could help evaluate, test, ...Show All
