hailstorm's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Noob issue (the humiliation). Can't import a cone.
After walking through the three "Going Beyond" tutorials in the SDK, I thought I'd try to do some basics on my own. Using Maya 8.0, I created a simple cone, resized it a bit, and exported it to an ASCII .fbx file. After looking at the contents of the file, it appears to be very similar to the p1_wedge.fbx file that is supplied with the Spacewar project; same version and everything. I add this to my solution, under \Content\Models, as pCone1.fbx. I then change the code that addressed the p1_wedge ship (works fine, compiles and displays rotating spaceship) with the cone. So........ //myModel = content.Load<Model>("Content\\Models\\p1_wedge"); theCone = content.Load< Model >( "Content\\Models\ ...Show All
Visual Studio 2008 (Pre-release) Client and Service in the same code
Hi, dears! I write the code for device which have both client and service in the same module ( just like p2p ) and I use datacontract like [ DataContract ] public class MyData { [ DataMember ] public string Data; } to send parameters from client to peer service ( the same do peer client for this sevice ) . When I produced proxy for client , the same Namespace.MyData class generated there, so compiler generated : error CS0101: The namespace 'xxxx' already contains a definition for 'MyData' Obviously I can't change namespace in proxy because in this case I receive empty MyData on peer Service. Is it possible to overcome the problem somehow to have client and service together talking to the same peer ...Show All
SQL Server SQL Agent 2005 won't start
I'm having a problem getting the SQL agent restarted. It ran properly for about a week then stopped. SQL Server is running fine. I've used the sp_configure to change the settings for 'Agent XPs' to 1. I can see the settings changed, but when I go through either the Management Studio or Surface Area configuration it fails and resets the 'Agent XPs' value back to zero. Here's the error I get in the sqlagent.out file: 2006-07-28 10:15:37 - ! [241] Startup error: Unable to initialize error reporting system (reason: The EventLog service has not been started) 2006-07-28 10:15:37 - [098] SQLServerAgent terminated (normally) I don't see an EventLog service under services that I can start. Any help would be greatly appreciated. Thanks! ...Show All
SQL Server Login failed for user 'NT AUTHORITY\NETWORK SERVICE'
I have: (1) SQL 2005 on a member server, Windows Authentication (2) I'm using Visual Studio.Net 2005 on my Windows XP sp2 work station. (3) From my machine, within my development application, I have no problem accessing the Data in the SQL server. (4) I Receive the Login Failed error after I copy my project to the Test Web Server (Same machine that houses SQL) and test from either my machine or from the host server. More details of the error message are: Login failed for user 'NT AUTHORITY\NETWORK SERVICE'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Det ...Show All
.NET Development Reading SerialPort (with .Net 2.0)
Hello, My robot sends me serial messages (packages) starting with a STX (0x02) character and ending with and EOT (0x04) character. Messages may have variable lenghts and within messages (except from first/last character) no other STX (0x02) or EOT (0x04) characters exists. My robot can send multiple messages at any time. How do I configure my SerialPort to extract individual messages from incoming data I was thinking of setting the 'SerialPort.NewLine' character to EOT (0x04) and use the 'SerialPort.ReadLine' for reading complete messages. But how can I make SerialPort execute an event if an EOT (0x04) character is received All tips are welcome. Henk The SerialPort ...Show All
Smart Device Development Load Background image into ListView Control, but ListViewItems don't display...
Hi all, I wanted to put a background image on a ListView Control, but found that when you extend on the ListView Control the OnPaint() method cannot be overridden because the CF doesn’t not call OnPaint() on the ListView. It is called lower down in the OS. Anyway, I have managed to use a class that catches Windows Messages (WM_Paint) on the ListView Control and then calls a method in my ListViewExtender class (this is through a delegate). Now I can get the ListView to display the background image perfectly. But the ListViewItems that I add to the ListViewExtender instance do not get displayed. Is this because I have used the DrawImage() method which draws the images on top of the ListView items Or is it a case that I must also re-draw the ...Show All
Visual Studio Express Editions How to create Discussions forum in c#
How to create forum using c# /By using ASP.NET, which means the question is off topic here and belongs at www.asp.net . However, even there, you're not going to get a very satisfying answer, because your question is too broad. Buy a book on ASP.NET 2.0, download the web dev edition of Express, and ask specific questions as you work through your task. ...Show All
Windows Forms Excel Question - How can I convert a date?
I have a report that has a YRDATE format where YR=last two digits of the year the document was created and the DATE is the day number of that year. For example: 05115 which should be 04/25/2005. What would my function/ formula be to convert the 05115 to the correct common date You did I'm afraid. These forums are dedicated to Windows programming and not general PC/app troubleshooting or questions. Instead, I'd direct you to the Microsoft Newsgroups or even a dedicated Excel forum such as this one . ...Show All
Visual C# How to add a directory structure to a project ?
I have some code that I need to include in my project. The code is organized in a directory structure, such as: Directory1 - Directory2 - Directory3 - Lots of C# files. - Directory4 - Lots of other C# files I right click on the project, and select Add Existing Items, but it would not retain the directory structure, all files are added to the project directory. If I want to retain the directory structure, the only thing I can do is to manually create a directory structure as the structure of the external code. Go to each directory and import the files in the corresponding directory of the external code. Its the same for both Visual Studio 2003 and 2005. Is there a better way to do it Or let me rephrase m ...Show All
Visual Studio Instal problem from VS2005 Trial 180days
Hi, I am trying to install a DVD with VS2005 Trial. This Version was already succesfully installed on other PC. Now while VS2005 setup runs, loading bar goes to 3/4 and systems reboot or hangs, without any further error syntax. Here are the last lines of the install log: MSI (s) (24:A0) [23:52:45:218]: Note: 1: 2262 2: Extension 3: -2147287038 MSI (s) (24:A0) [23:52:45:234]: Note: 1: 2262 2: Extension 3: -2147287038 MSI (s) (24:A0) [23:52:45:281]: PROPERTY CHANGE: Modifying CostingComplete property. Its current value is '0'. Its new value: '1'. MSI (s) (24:A0) [23:52:45:281]: Note: 1: 2262 2: PublishComponent 3: -2147287038 MSI (s) (24:A0) [23:52:45:281]: Note: 1: 2262 2: SelfReg 3: -2147287038 MSI (s) (24:A0) [23:52:45:281]: ...Show All
Windows Forms Controls appear attractive in design but not runtime
Hello, I have recently upgraded a number of VS projects into 2005 and I have noticed that for each of these applications the user controls appear different at runtime. When using the designer in 2005 the buttons appear rounded, and more user-friendly (like the buttons in IE) however at runtime (or during debug) all controls appear a ugly, grey, windows 2000 style appearance. If I create an Windows Forms application from scratch in 2005 I get the attractive controls in all cases - It just seems to be the upgrade. Any ideas Regards, Luc Pettett Hi Luc, please check your buttons' FlatStyle property value - it should be set to Standard. Also, their UseVisualStyleBackColor property should be set to True. ...Show All
Visual C# String compa Cannot implicitly
I cannot get the syntaxt to work on the string compare here. I don't know why I keep getting a message saying it's trying to conver an integer to abool in my String.Compare: foreach (string excelDescription in exceldata) { using (ExcelWrapper xl = new ExcelWrapper(excelDescription)) & ...Show All
.NET Development File Operations in VB 6.0
I am a C programmer, and do not have too much of experience with VB, so sorry if the question does look too "newby" - as I am a newby when it comes to VB. I am trying to read CSV file. For that purpose I was trying to use code from help site, but was getting a lot of errors. Variable My is empty - how do I initialize it "System" is not recognized. If I try to use "Imports System" I am getting an error as well. Can Microsoft.VisualBasic.FileIO.TextFieldParser be used in VB 6.0 or should I use something else I would really appreciate any help and just to show me a direction in which I should go searching for my solution. Thanks. My.Computer.FileSystem.GetFileInfo() Dim setupFile As System.IO.FileInf ...Show All
.NET Development [C# Windows Service] Getting the absolute path of a config file
I have a Windows Service which tracks the performance of the database and application server and based on some user defined values which is lifted from a user defined XML config file, the performance of the servers are benchmarked against these user defined values. Now the problem is that i was having the config file in a fixed location (C:\UserConfig.config) and I hard code the location into the XMLTextReader XmlTextReader reader = new XmlTextReader(constObj.XML_FILE_PATH); As per the requirements, the config file should be along with the solution file and as the position of the solution file can change, i am now not able to hard code those values. I tried the Path class from the System.IO namespace strin ...Show All
Connected Services Framework How to Pass Parameter Value
Hi, In my webservice, i have a method called Addition and it takes one parameter. My question is, how to create routing table in the manifest.xml file and how to send this parameter to my web service Thanks in Advance. It would be a big help, if u send the sample code. Becuase, i am new to this CSF and i just changed the HelloWorld Sample. Regards, Rajasekaran Let us say web service you have method 'GetWeather(GetWeatherRequest)' that takes GetWeatherRequest as parameter and consider that the namespace of this getWeatherRequest XML schema is 'http://www.contoso.com/services/weather' . If you want to use message based routing you can use MESSAGE( this is root element of your parameter ...Show All
