kevin D. white's Q&A profile
Visual C# question for using word
hi im using c# app 2003 and i want to open a word document for printing only i searched for command line switches and....nop. so i guess i have to add the word object but !!! i dont want the 3 dll files which is sitting at my debug folder i want to be un-depended with these 3 dll so i can use word how can i do it you can use Process Class to start printing command. But this will start default print command (you cannot be sure it will be printed with MS Word) here are some examples: Process myProcess = new Process(); // Get the path that stores user documents. string myDocumentsPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal); myProcess.StartIn ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Content Manager for DrawableGameComponent
I like the new DrawableGameComponent. When it comes to drawing it is easy to use, because the GraphicsDevice is supplied as a member of the class. However, for content loading it is not so clear. I can do devious things to get hold of the content manager for the parent game, but I'm wondering if this is the best thing to do, or whether you would reccommend that components have their own content manger. That could make sense. It really depends on your game, and on what the component is doing. As Eli says, if you want to cache data then you will want to be sharing a single ContentManager between all your components. Exposing it as a service could be a good way to do that. But on the other hand, it's possible that you never h ...Show All
.NET Development IEnumerable.GetEnumerator()
Greetings, I have some questions on IEnumerable.GetEnumerator(): 1. Should each invocation return a distinct enumerator object 2. If so, should the enumerators keep their state in sync or independent of each other 3. If independent, can distinct enumerators (returned by the same method) enumerate the underlying collection in different orders MSDN Lib seems to have left these unspecified, so maybe it's all up to the method implementer, but since the interface is tied to foreach sematic, perhaps there are specific answers/rule for the interface If MSDN Lib specifies the answers to these, I'd be grateful if you can point me to the URL. Thanks for any info, Dasa Hi Johan, Any advice on h ...Show All
Audio and Video Development HD-DVD Author Available.
Finished 2 HD-DVD projects (freelance) using the Sonic Tools. Now available in Los Angeles for FT Authoring. mtnkidz_2001@yahoo.com PS. Peter I wish you could get MS to move down here...its warmer! I believe Ascent Media is still looking for an HDDVD Author http://ascentmedia.com/careers/ ...Show All
Visual C++ How to Launch a DirectDraw game with ShellExecuteEx?
Hi I am trying to launch Age of Empires 2 from within a quick launcher app (VC++ 2005 Express with SDK) using the following code: SHELLEXECUTEINFO ShExecInfo = {0}; ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS; ShExecInfo.hwnd = NULL; ShExecInfo.lpVerb = "open" ShExecInfo.lpFile = "path to empires2.exe"; ShExecInfo.lpParameters = NULL; ShExecInfo.lpDirectory = NULL; ShExecInfo.nShow = SW_SHOWNORMAL; ShExecInfo.hInstApp = NULL; ShellExecuteEx(&ShExecInfo); The code runs, and the empires2.exe starts, but then it says "cannot initialize graphics system. Make sure your video card and driver are compatible with DirectDraw." Please help m ...Show All
Windows Forms loading colored cursor image
am using Axialis's program to make colored CUR files but i can't load is there a way to load a coloerd cursor icon(.cur file) i have the colored cur file but it dosn't show coloerd i get balck&white cursor am using: curPush= new Cursor(@"D:\mycrusor\Cursor_1.cur"); Cursor = curPush; SetSystemCursor((int)curPush.Handle, 32512); to set the cusror img system wide thanks The .NET Cursor class is documented not to support animated or colored cursors. Try using the LoadCursorFromFile() API function instead. ...Show All
Software Development for Windows Vista VISTA DRIVERS FOR YAMAHA SOUND CARD (YMF724)
I bought this windows vista ... and it has not the drivers for this sound card , the manufacture dosen`t product sound cards anymore and dosen`t has availble windows vista drivers for this card or any sound card , windows xp has this drivers , I tried to install them from a backup of "windows/inf" and "windows/system32/drivers" and it had installed 50% of it ... YAMAHA NATIVE DS1 WDM is installed corectly but YAMAHA LEGACY DS1 WDM won`t start after instalation. "This device cannot start. (Code 10) Click 'Check for solutions' to send data about this device to Microsoft and to see if there is a solution available." This is the message that I recived. Thnq Can anyone ...Show All
Windows Forms Webbrowser control ignores Disable Script Debugging when set in IE
I have both - Disable Script Debugging (Internet Explorer) and Disbale Script Debugging (Other) checked and still I get the script error message dialog box in the Webbrowser Control. I do not get it when using IE. IE is currently at Version 6.0.29900.2180.XPSP_SP2_GDR.050301-1519. The truth is I have always gotten, for the WebBrowser control, no matter what release or service fix. Has anyone seen a blurb from MS as a known issue On the webbrowser control there is a property called: ScriptErrorsSuppressed Set this to true and you should get the results you want. Thanks Wayne ...Show All
SQL Server Replication security help please...
Hello, I am being told that my SQL server can no longer use a domain account to do replication cause it is a violation of SOX codes... So here is my question to ease my pain.... I believe that I can run the SQL server service under [local system account] with no issues but what about the SQL server agent service It needs rights on all the servers right I have found where you can configure replication to use sql authentication but then I can use snapshots... any help would be appriciated... oh.. I use transactional and merge if that makes any difference. Hi William, Replication agents run under the context of a Windows account. The agents make Windows Integrated Security connections ...Show All
SQL Server SQL Server 2005 Service Pack 2 - RTM - WHEN???
Hi, Does anybody know how many CTPs will be provided before the RTM will be delivered Thanks You never know ;-) RTM is planned for Q1 07. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Windows Forms When CheckForIllegalCrossThreadCalls == true, does the framework inform of ALL the control access errors?
Hello, When I set the Control.CheckForIllegalCrossThreadCalls to true, Visual Studio generates an exception each time I try to access a control from a thread other than the thread on which the control was created. However, in some cases this exception is not generated. For example, I am using the ComponentOne Chart ( www.componentone.com ), and I am able to update the graphs of the chart from another thread without Visual Studio generating an exception. However, in 1 case out of 10, an exception is still generated, by the control itself, although visual Studio does not inform me that I am accessing the control illegally from another thread. That is, is seems that the framework (Visual Studio) does not inform of ALL the illegal acc ...Show All
.NET Development How to send windows messages across processes in C#
Hi, I need to send windows messages across processes in C#. I couldnot find anything relevent on this topic. Please help. Best Regards, Deepak Simply Wrap Windows Messages in Some Serializable object and use remoting to move them across the processes. If i'm not wring Windows Messages are Int Constants. Am I right If so then I dont think any problem in using Remoting. Remoting is made for the same purpose and is extremely simple to use! Best Regards, Rizwan ...Show All
Visual Basic Working with RichTextbox control in vb.net 2.0
Hi to all, I have a requirement like this, In my vb.net 2.0 Application, Im using a richTextbox Control. In this How can i add a short cut key to change a word to bold when i press ctrl+B.(Similar to in MS Word Ctrl+B,Ctrl+U,....) Please send me a solution. thanx in advance. Actually, its much more complex than just creating a new font from the current SelectionFont and setting the style. First, you want to be able to combine styles such as BOLD and UNDERLINE so you can't just set the style property - you have to add or subtract styles from the existing one. Second, if the selection contains more than one font type, the SelectionFont property will return NOTHING - this has to be handled... Her ...Show All
Visual Studio Microsoft Student 2006 Reinstallation "Error 2908"
Hello folks, I am having a problem trying to reinstall MS Student 2006 after an XP repair install. I keep getting the followin g error messages: Internal Error 2908. {0197724E-E262-489D-9B9B-F650A2736628} I click OK. Internal Error 2908. {973DFCC-E262-489D-9B9B-F650A2736628} I click OK. Internal Error 2908. {CF0E6E50-E262-489D-9B9B-F650A2736628} I click OK. Internal Error 2908. {314F07DD-E262-489D-9B9B-F650A2736628} I click OK. Internal Error 2908. {5F5D08FC-E262-489D-9B9B-F650A2736628} I click OK. Then the installation continues untill I get this: An error occured during the installation of assembly 'Microsoft.Encarta.Utility,publickeyToken="31bf3856ad3 64e35",version="15.0.3400.603",processorArchitecture =& ...Show All
Software Development for Windows Vista Windows WF and ASP.net
Hello, I am beginner to windows WF. I need a sample ASP.net which is completely controlled by workflow. I do need simple application wherein navigation to next page should be controlled by workflow using inbuilt controls available in windows workflow foundation. I have gone through some samples from Microsoft site, but it seems that they are not easy to understand. Thanks Sunil 2 great samples from Jon flanders Tom Lake I think the WF team is working on a better wf-asp.net integration in the next release of WF; take a look at this webcast for more infos. Enjoy. Serge ...Show All
