Arkanoid's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Poser Model
I exported a model (V3) from Poser as both a DXF and 3DS file, ran these files through the Autodesk converter to make FBX files and loaded both of these my XNA Game Studio Express program. The FBX model from the DXF file yielded a big red square. The FBX model from the 3DS file yielded just the tummy of V3. Any suggestions as to the proper settings for the conversion of DXF and 3DS file to yield useable FBX models Thanks for any insight. Cheers, Scott P.S. Yes, V3 was clothed. Maybe that's the problem I've made the experience that the export functions coming with poser don't work satysfying. There a many 3d party ex-/importers available for poser and the most 3D programs that will do the job b ...Show All
Visual C# Can't read a zero value into a double
In the following code, asset.IStartVal is a double. The value is zero (confirmed with a breakpoint and watch). However, this code raises an InvalidCastException. asset.IStartVal = reader.GetDouble(reader.GetOrdinal( "IStartVal" )); The database is in SQLExpress. Steve, just a guess, but the usual culprit in this case is the type of the field. GetDouble() does not attempt any kind of cast, so you will get that exception unless the field "IStartVal" is declared in the database as "float". HTH --mc ...Show All
Visual Basic Visual Basic 2005 & Visual Studio.net
When I try to open a new web site project: I do not get the 'New Web Site dialog with the correct "ASP.net WEB SITE, ASP.NET Web Service, Personal Web Starter Kit and Empty Web Site --Templates. Instead I get the templates that one normally sees when starting a new windows application, so I suspect that something is amiss in my install or setup... Does anyone know how to fix my setup so that I get the correct templates when trying to start a new web project FYI: I try to launch the web project by using the : File/new/web project menu and this is not working as it should... Ideas anyone H.G. iT TURNS OUT THAT I WAS MISSING THE WEB APPLICATIONS EXTENSIONS TO MY VISUAL STUDIOS INSTALL... ...Show All
Visual C# Static function cross thread sharing problem.
This is my code to close a form. public static void Clear() { if (form1 != null) { form1.Close(); <----- cross thread error } } first i got a problem with cross thread sharing. then i created a safe method to close the form. private delegate void Delegate(); private void SafeCloseForm() { if (InvokeRequired) Invoke(new Delegate(SafeCloseForm)); else form1.Close(); } so now i got public static void Clear() { if (form1 != null) { SafeCloseForm(); } } But i have new problem with the static method An object reference is required for the nonstatic field, method, or property... What should i do ...Show All
.NET Development lock free multi threading .NET programming (volatile, MemoryBarrier, SpinWait and such)
I try to write a fast First In First Out buffer for 1 producer thread (Writer) handing over data records to 1 consumer thread (Reader). In order to get really fast, I do the following: Using strucuture for the data record and an array for the ring buffer. This prevents Garbage collection completely for the ring buffer activities. Correct Avoiding the lock statement. I read on the Internet that the lock statement was about 200 times slower on a particular PC than using volatile variables. Here follows my implementation fo the fast FIFO Buffer. public class FifoBuffer<DataRecordType> where DataRecordType: struct { private DataRecordType[] fifoBuffer; //Index into fifoBuffer, where next dataRecord should be written pr ...Show All
Smart Device Development EnableApplicationLauncher() catches state change only once
Hello to everybody! While developing an C# application on Windows Mobile 5.0 , I came across the State and Notification Broker . It is really a nice thing, but as it seems, it is not very well documentet, especially when it comes to the managed code in Microsoft.WindowsMobile.Status . I want my appliction to be launched when for example the property PhoneNoService changes. I am unsing this code to do this: if (!SystemState.IsApplicationLauncherEnabled(id)) { SystemState phoneNoService = new SystemState(SystemProperty.PhoneNoService); phoneNoService.EnableApplicationLauncher(id); } Now, when PhoneNoService changes, my application is launched as wanted. But only this time. After closing the application, it doesn’t start again, if Ph ...Show All
.NET Development how to send object between server and client
HI every one, How can I send an object between server and client while there is NO exist direct method to do this Do yourself a favor and look at the Windows Communication Framework (WCF) and stay away from Remoting - it is the way of the past - WCF is the yellow brick road to distributed systems. http://wcf.netfx3.com/ have fun...... mike ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Visual Studio 2005???
Why should I have to install Visual Studio C# Express if I own the full version of Visual Studio 2005 Pro I have a much more advanced version of C# than the one offered in express. Somehow this logic does not make much sense to me. Perhaps the install need to look for some install of C# but recommend the express if no install is found That would make more sense. Tis a bit strange, but i believe a "full" version of xna is coming out that doesn't need c# express. ( ) Just install c# express, install xna studio, then uninstall c# express. Then you can then just go add the xna references in vs2005 pro :) ...Show All
Smart Device Development Problem realted to creating msi for the project
Hi, I m trying to make the msi for my project, i have made the cab project that gave me the cab file. But i want to build msi for that. I reffered the msdn, but i cant get through it, its over my head, bump. Plz any1 can guide me I m using VS 2005 Thanx in advance. We have created a Pocket PC application in VB.Net on Compact Framework 2.0. I tried creating an Installer for my project (MyPocketPC) by following the steps outlined in the below link: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/deploy_cf2_apps_cab_msi.asp I faced a few stumbling blocks… The Installer installs all the files (exe, dlls , images, text files ) under “ My ...Show All
Visual Studio 2008 (Pre-release) Executing Commands from *any* event
I understand that commands can be triggered off certain events of certain controls. For example, specifying a Command for a Button will trigger it off the Click event. But what if I wanted to trigger a command off of a different event -- like a Load event Is there a way to do this at all If so, can I do it from XAML only I looked into this further, and it doesn't seem that deriving from TriggerAction will work, since TriggerAction class is "public abstract" but it has 2 "internal abstract" methods [2 overloads for Invoke]. Any plans from MS to change this This could be really useful... ...Show All
Visual Studio Custom code. How?
Choose and Switch and Iif get old pretty quickly. I'm trying to add some custom code via the report properties Code tab. I created a function in the code window (no intellisense) and tried to call it from a textbox's Expression by using Code. (read code dot) but the function doesn't show up. I can't find any examples of how to write the function and then use it. Any help greatly appreciated. And, can I use Select Case directly in an expression somehow rather than have to write separate code functions Wow, I'm getting out all the questions today. Deadline must be approaching. Amazing tip Dave. I had not seen this "code" tab. Can we write multiple functions in there Also can i refer to a val ...Show All
Visual Studio Express Editions Show Data Source item
When I try to open the Show Data Sources window from the the data menu, I get an error that says "Operation Failed Only True type fonts are supported. This is not a true type font." I've tried changing all the fonts in the options-environment-fonts and colours area to Times New Roman and restarting but the error persists. Any ideas Robert (in Brisbane) Things I'd try, in order (from VS2005 Prof): 1. Tools + Options, Fonts and Colors: click the "Use Defaults" button 2. Tools + Import and Export Settings: select "Reset all settings" 3. Re-install. ...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 We don't provide a simple gadget API to let two gadgets communicate with each other. There is no technical reason, however, stopping you from using any existing OS mechanism to communicate between two gadgets. For example, one gadget could write a value to a file, and another gadget could read it. (I'm not claiming tha ...Show All
Smart Device Development Assembly Permissions
Hi, I am using third party dlls, whenever I deploy my application I get if I want to use that assembly or not, how can I avoid it You (or 3 rd party) need to sign that assembly with appropriate certificate. ...Show All
SQL Server nvarchar(max) gets truncated at 4000 chars(?)
I’m trying to call sp_ExecuteSQL with a query that exceeds 4000 characters. DECLARE @sq NVARCHAR ( MAX ) DECLARE @from NVARCHAR ( MAX ) SET @sq = N 'SELECT Quite, AFew, Columns' SET @from = N ' FROM NumerousTables WHERE LotsOfConditions=''very big query...''' SET @sq = @sq + @from PRINT @sq -- This appears truncated at 4000 chars in the Messages tab. EXEC sp_ExecuteSQL @sq , @params , @Param1 , @Param2 , @ParamN , @Param10 -- gets errors Any suggestions Thanks. I realize that is what it says, but it is WRONG. This bites me almost weekly. I create dynamic sql to execute very large inserts and updates and every time it is over 4000 chars, it fails. It is easy to te ...Show All
