GordonMoll's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. XBox 360 hard drive question for MS staff - semi off topic
With all the great new offerings out or coming soon for the 360: XBox Live Video Marketplace, XNA game creation, and the recently announced IPTV, the poor little 20GB hard drive's days look numbered. Is MS planning to release a larger hard drive for the 360 I'm pretty sure that many people (including myself) would be very interested in one. That sounds pretty realistic. I also wouldn't be surprised if they built an HD-DVD player into the next, "ultra" 360 model. The format war is still in full swing and Blue ray has the advantage of being built into all PS3 systems. ...Show All
SQL Server Cannot connect to SQL Express Remotely
I have SQL Express April CTP (from VS Beta 2) installed on machineA, but I cannot connect to it from machineB using the command "sqlcmd -S machineA\sqlexpress -E". This command works just fine from machineA. I have enabled the TCP/IP protocol for the SQLExpress instance through the configuration manager, and turned off the Windows Firewall on machineA. Any ideas on what I'm doing wrong Hi, I have the same problem, I cannot connect remotely to sql server express I have done all the steps in that article http://blogs.msdn.com/sqlexpress/archive/2005/05/05/415084.aspx http://support.microsoft.com/default.aspx scid=kb;EN-US;914277 but still not working remotely although locally is ok ...Show All
Windows Forms RichTextBox AutoWordSelection bug
Seting to false the AutoWordSelection property in a RichTextBox control does not seem to allow selections made with the mouse to act on individual caracters or partial words. Is this a bug or am I missing something. I would appreciate any reply. I'm unable to reproduce this problem...The default setting for the "AutoWordSelection" is false...When running a sample application I am able to select a single character, multiple characters and multiple words.... ...Show All
Windows Forms CollectionEditor questions Names in left pane
Hello all, CustomItem is a class which inherits Component. I then created a strongly typed CustomItemCollection which inherits CollectionBase. Next, I wrote a custom editor which inherits from CollectionEditor. It works well except that I can't figure out how to access the (Name) property in the PropertyGrid. I would like to change the names in the left pane away from Class0, Class1, Class2, etc. based on one of the properties in my CustomItem class. Thanks in advance for any ideas and/or suggestions. Hello mangelp, I believe GetDisplayText is VS2005, we are still using VS2003. I can't use the default because I need to change it after one of my properties has been set. Thanks for the response, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to detect version of D3DX installed?
With the newer versions of DirectX there are several different D3DX dlls that exist. Just checking for DirectX version 9.0c is not sufficent as that version contains several revisions of the D3DX dlls. If a game ships with the April release the earlier versions of DirectX 9.0c will not work. How can the exact installed version be determined Accually I have heard its illegal or something to distrubute the dll with your program. The way I do it is I have a "launcher" app that will launch and execute code via a plugin system. In a very basic sense I do : Assembly assem=Assembly.LoadFile("mydll.dll"); Iplugin myplugin=(Iplugin)assem.CreateInstance("myclass"); myplugin.Init(); Iplugin should look something ...Show All
Windows Forms Selected Row - ListView
Hi, Does anyone know the syntax of getting the selected row for an listview I.e if I click on the second row of the listview it should return 2. Thanks If you want more information ,refer this aticle please. ...Show All
Visual Studio Tools for Office Hands-on-Lab 04
Hi, I am new to the VSTO, tried to learn VSTO with the Hands on Lab. I finished Lab01 - 03 without any problem. But for Lab04 Ex.3 , I got problem at the following code (Method Items_ItemAdd ): Dim customerContact As Outlook.ContactItem = bankFolder.Items.Find(filter) 'I add this line by myself Messgbox.Show("Debug Point Here") I think its logic is trying to get the Contact item from the "Bank" Folder. But on my machine, it doesn't work. It stopped but no error occur. The next line didn't run actually. (I tried to copy the Lab04 codes from Lab05 in order to make sure no typing error, but still no luck) Please help. Andy Ho The object browser is y ...Show All
.NET Development System.NET.AuthenticationManager
There is PreAuthenticate method in System.NET.AuthenticationManager. This method does nothing because it uses PrefixLookup class instance which never gets filled... This method is used by HttpWebRequest class in MakeRequest method. This method never adds Authentication header ... How to add Authentication info to HttpWebRequest without manual a adding header Thank you The problem was that the WebService was developed by third party developers, using non MS technology. There is another Authetication policy ... ...Show All
Visual C# relative path for webBrowser question ...
How do I specify a relative path instead of an absolute path for the webBrowser control I want to load a local image for the default display, and not have to chase it down to a specific folder... this is what i have.. and it works just fine.... { webBrowser1.Navigate( new System. Uri ( @"C:\Documents and Settings\paul\My Documents\Visual Studio 2005\Projects\MyProjectName\ProjectName\Image.gif" )); } but I would rather have ... (this does not work) { webBrowser1.Navigate( new System. Uri ( "Image.gif" )); } well given that if the file is stored in the same directory as the application running directory, then use: Application.StartupPath + " \\I ...Show All
Visual C++ Fastest way to convert native array to generic List?
I am writing managed wrappers to native functions (in order to be available to other .NET languages such as C# or VB.NET) and I am running into a performance problem. The interface to the native function looks something like: native_function(short *buffer, int &bufferLength); What it does is return an array (native) of shorts and the number of elements in the array. Now, I want the managed wrapper to have the following interface: wrapped_function(List<short> ^%buffer) { // Reserve enough space for the buffer short nBuffer[16000]; int buffLength = 0; // Call native function to fill buffer with data native_function(nBuffer, buffLength); // Convert returned value ...Show All
Community Chat HDD serial number
Hi all, I have few days in this forum and I think is great. So many people helping each other. I have used some of the code posted here so I decided to post some that would help too. I did not do it myself but I translated from C# code that foun in the WWW to Visual Basic 2005 Express. This code gives you the serial number of all your HDD installed. form code starts Hi nowhereman, I tried on your code ... it really helped to set as security entry for smart applications thanks a lot..... ...Show All
Gadgets Sidebar gadgets outside the sidebar?
Hi guys, I'm interested on building some gadgets and I'd like to know a couple of info about this specific type. 1) Can they exist outside the sidebar In this case, can they know their position in the stage 2) Can they communicate to each other I had a look to the API and I couldn't find so much information about these topics. Any info will be very appreciated. Thanks, chr Don't use files whatever you do - as you say, it's far too slow. Use the registry. Write to your own key under HKEY_CURRENT_USER, it uses next to no CPU time. var oShell = new ActiveXObject("WScript.Shell"); ... oShell.RegWrite("HKCU\\Software\\MyGadget", "some text", "REG_SZ" ...Show All
SQL Server Need example of a "Hash" function.....
Many articles on sql server security make reference to Hash functions. Do you know of a simple example of a hash function that I could show to others For example, would taking the first eight bytes of the mathematical "sin" of a number be a good function I don't know. Or is a hash "function" actually an involved algorithm, so the "simple" formula I was looking for really doesn't exist. TIA, Barkingdog In SQL Server 2005 we have a new builtin to calculate hash functions: HashBytes. For more details on this builtin I recommend consulting BOL ( http://msdn2.microsoft.com/en-us/library/ms174415.aspx ), but here is a short example: SELECT HashBytes ...Show All
Windows Forms Add a bitmap to a richtextbox.
Hi, I am attempting to print a results page to a printer. I have set up a .RTF file with a header and can load it into a richtextbox and add additional text to the file. I can save the new contents to a .RTF file, and using a wonderful utility I found embedded within the Help system, I can print the richtextbox to a printer. What I can't do, is add an image object to the richtextbox before I print it. I want to do this so that I can add a graph to the results page. Does anyone out there know if this is possible and if so, how to do it I am still struggling to understand C#, so any code would be more than welcome!! Many thanks John Woodiwiss Is there any way to preserve t ...Show All
Visual Studio Team System Can't download report builder from Report Manager get some error in manifest file
When I try and download report builder from the Report manager I get an error saying it cannot start report builder because my application is improperly formatted. I have also tried opening the ReportBuilder.application from the local machine and I get the same error. The initial install starts very briefly and then stops. When I run reportbuilder.exe locally and try and run reports an error comes up saying "Object reference not set to an instance of an object." I think I have 2 problems. I can't download report builder from the Report Manager and if I open reportbuilder.exe and create a report I still cannot run it. When I look at the details button I see the log file, ...Show All
