Peter Peter'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) Service and WCF
Hello Everyone, I asked a similar type of question before and I want to be completely sure as this is little confusing to me. I have a customer which wants to use the .NET 3.0 framework and WCF and everything should run as a service on Windows Terminal Services. I'm wondering what type of project should be made and how to use WCF there. Any examples, articles really appreciated. Thanks, Harsimrat You mean everything should run inside a terminal services session If so, that is orthogonal to how you host it. A terminal services session runs processes just like any other session. If that is not what you meant, please clarify. The service itself is implemented by implementing your Service ...Show All
Visual Studio Working folder changes after moving the code to other location
Trying to explain the problem by an example: 1. I set working folder folder as C:\Sourcecode 2. Now, idea is to have a copy of the source code as backup in different folder. So I copy the code from C:\Sourcecode to C:\Sourcecode_BAK 3. Now I go to C:\Sourcecode_BAK and open the solution. Unbind the solution from VSS and try to edit some code. 4. Now open VSS, you will find that working folder changes from C:\Sourcecode to C:\Sourcecode_BAK. As this is not consistent, you might not be able to reproduce. so try 2-3 times. I want to prevent this. though there are manual ways. I mean once copy is done remove all vss related files from the root folder and subfolders. Remove readonly attribute on rootfolder. Remove vss related entry from .sln ...Show All
Smart Device Development visual inheritance disabled
I am trying to use the designer for my forms, but on all of the forms in my project I am getting the message: "Visual Inheritance is currently disabled becuase the base class references a device-specific component or contains P/Invoke." I don't understand why I am getting this error message becuase the base class does not contain P/Invoke or use any device-specific controls. It only contains a simple event. Which controls would be considered device-specific anyway I am not using controls from Microsoft.WindowsCE.Forms.dll but I was able to fix the problem by combining my projects into one solution. In other words before I had multiple projects each with their own solution and I would edit them seperately. ...Show All
.NET Development Equivalent for Performance counter users group (win 2003) in windows 2000 server
Hi, i am getting an exception when i try to get the id of process using process.getprocessbyid function if my user account is not part of admin group. Below is the question and answer i got from the url http://msdn.microsoft.com/netframework/programming/bcl/faq/SystemDiagnosticsProcessFAQ.aspx#Question7 ------------------------------------------------------------------------------- How do I use the Process class under a non-admin account From Windows Server 2003, you will get an exception if you try to get process performance information under a non-admin account. The workaround is to add that account into the Performance Counter Users Group. -------------------------------------------------------------------------------- ...Show All
Visual Basic Can't Get VB6 Serv Pak 6 to install in Vista RC1
Has anyone gotten VB6 Service pack 6 to install in VISTA RC1 I tried and it errors out with some cryptic error about a missing file and quits. VB shows no sp installed and programs that were created with SP6 installd on XP will not run in the API on Vista RC1 with an error message "Component missing". Has Microsoft a fix for this We have lots and lots of custom written programs that we will have to maintain and support on VISTA (if installed) and there seems no way to do it because the service Pack 6 can't install. Scott, I'd like to keep track of issues with VB6 installing on Vista. You were trying to get this working on RC1 and you received errors. What build did you get it working on Thanks, Chri ...Show All
SQL Server Problem with NVarchar when Consuming Sql Server Webservice
Hi, I have set up a sql server 2005 webservice and have tried to connect to it from visual studio and c#. When I set up the web reference to the wdsl location and then invoked two different methods of the web service I received a couple of messages both relating to issues with nvarchar: Type 'http://schemas.microsoft.com/sqlserver/2004/sqltypes:nvarchar' is not declared or not a simple type. An error occurred at , (1, 2354). and then a second method returned the following Sql Message: Error converting data type nvarchar to smalldatetime. I haven't been able to figure out why this is happening, but have been able to connect by directing the webservice to WDSLSimple which then returns xml which I have to parse. Does anyone h ...Show All
Windows Forms Move Column in DataGrid
Hi, I'm using DataGrid where I need to move the last column to the first(Remember it is a CheckBox Column that I need to move) and the rest by one position(i.e 2nd to 3rd, 3rd to 4th....). I require a code snippet or atleast an idea about implementing this. Thanks Thanks Knowles, but, I need a Function which sets the transition of columns in the DataGrid ...not the DataGridColumnStyles...Hope to have a function from you. Thanks again ...Show All
Software Development for Windows Vista Can't Open a Saved Executing Workflow - Persistence Not Working
For some reason I'm not able to load a saved workflow that is executing. I've created a very simple workflow that has 2 delay activities. When the first delay activity executes the function workflowRuntime_WorkflowIdled is called. I perform a very simple test where I save the running workflow to a file and then I try to reload it off of disk. When I reload the workflow I get the error shown down below. void workflowRuntime_WorkflowIdled( object sender, WorkflowEventArgs e) { using ( FileStream saveFileStream = new FileStream ( "c:\\test.bin" , FileMode .OpenOrCreate)) { workflowInstance.GetWorkflowDefinition().Save(saveFileStream); } using ( FileStream openFileStream = new ...Show All
SQL Server Unable to connect to the remote server
Greetings: We have a copy of SQL2k Report Services running on a Windows 2003 Server. But the database used by the Reports is actually on another box in our network. (This is a option you can use during install.) This setup worked fine for about a year but now neither the reports and ReportManager no longer run. The Reporting services Log error is: System.Net.WebException: The underlying connection was closed: Unable to connect to the remote server. In a browser we get the error: --- " Directory Listing Denied " "This Virtual Directory does not allow contents to be listed." --- Turning on the option to list directory contents in IIS does not resolve the issue. Anyone seen this creep up before I ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do I protect my code when distributing it?
Having read the FAQ. I noticed that in order to share your game creations (and lets face it, you can't get recognised without sharing your games), you need to send the other person the entire uncompiled game. This includes sourcecode, graphics, music, sound etc. etc. They then compile the code and download it to their xbox360 account and then only if they too are on the games creation program. My key worry here is that you send them everything you have just worked incredibly hard to create. Presumably they can then send this stuff on to whoever they please and god forbid, even sell it on! It strikes me that there isn't much incentive to distribute things this way. How is Microsoft going to prevent the above scenario Is there going to be a ...Show All
Visual Studio 2008 (Pre-release) Custom fields
Hi, First of all, great work! Our application has the notion of custom fields which are stored directly in the owner table with alter table statements by a nice ui. As far as I know from the documentation, that scenario is not really possible in the present release. What would be needed I think is a new element as children of EntityType like this < EntityType Name = " Client " Key = " ClientId " > < Property Name = " ClientId " Type = " Int32 " Nullable = " false " /> < Property Name = " Name " Type = " String " Nullable = " false " MaxLength = " 50 " /> < Property Name = " Age &quo ...Show All
Windows Forms costum controls with GDI+
Hi, I would like to create a control with the same functions as a trackbar and it should look like this: http://users.telenet.be/ymweb/example.jpg I've been told that I should use GDI+ to do this but the problem is that I can't find anything on how I can create controls like these. The only thing I came up with was things like text tickers and drawing figures. Is there any good tutorial that will help me solve my problem or can anyone help me solving it Best regards, Yannick Hi, These tutorials may be useful: http://www.c-sharpcorner.com/UploadFile/mahesh/gdi_plus12092005070041AM/gdi_plus.aspx http://www.publicjoe.f9.co.uk/csharp/csharp21.html Have a nice day :-) ...Show All
SQL Server SET NEW_BROKER statement hangs system
SQL Version - SQL Server 2005 Standard Edition, SP 1 I have a database which is Broker Enabled. We use Query notification extensively and the application is in testing stage. Both Testing and development database is on the same server. When I create database for testing I used to do Backup-restore method. When i restore a borker enabled database, the restored database and the source database will have same GUID for Broker. So by default the restored database will not be broker enabled. So what I do is , i run Alter database somedatabase SET NEW_BROKER. This statement will generate new GUID for this database and then we can enable the Broker by SET ENABLE_BROKER statement. Till last week this process was working fine. When I did the same ...Show All
Software Development for Windows Vista State Machine Workflow with Parallel Workflows: How do I signal a particular state?
Context I have a reasonably complex state machine workflow implemented (and it works). Each of the 10 StateActivities in the root StateMachineWorkflowActivity has an EventDrivenActivity, HandleExternalEventActivity and SetStateActivity. In the client application, I've implemented an ExternalDataExchangeService local service and I can use it to signal the StateMachineWorkflowActivity to advance through each of the 10 states. No problem. I now want to add a ParallelActivity to one StateActivity add parallel execution of some new StateActivities in the root StateMachineWorkflowActivity . Questions 1. What do I do in my ExternalDataExchangeService local service to signal a particular StateActivity/EventDri ...Show All
