Wesley Wong's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. I need sum clarifications
Hi all, I just started to learn 3D GameStudio ( it's a game engine), it's ease to learn it has a GUI wher u can design ur level and assigne behavoirs , instant walkthrough etc. Is possibile to do that in XNA, I mean it has a GUI couse I installed it with the VC# express and I tryied to find graphic windows or sumthing that u can deal with interactivly . I found only code editor. Is this the only way to do in XNA I must do every thing by coding In case I want to learn XNA where can I start ( I don't now nothing about VC#) and I need long time to start doing sumthing interesting. Thanks for ur Help. wtmmag wrote: In case I want to learn XNA where can I start ( I don't now nothing about ...Show All
Visual C# reducing image size
Hi.. im building an application to distribute the desktop image to other clients... when i capture the desktop the image size is approximatly 55KB.. in a Jpeg format.. is there a routine or a method to reduce the size ! thnx Hello. I recently ran into this same problem while trying to resize images. While I know of no .NET easy solution to the problem, I modified an image library I found online to fit my needs. I have tested this following code somewhat, but it may contain some bugs as I have not tested it extensively. I made several changes to the code to give different options for scaling an image and a rework of the basic way it resized images. At any rate, I hope that it at least helps to push yo ...Show All
Windows Live Developer Forums Dynamically load API JS file kills IE6
I'm trying to load the veapi.ashx file dynamically, but I'm having a big problem with IE6, please test the following code out in IE6, you will need to clean your cookies and cache, to do that in IE6 you need to go to Tools --> Internet Options -->Delete Cookies & Delete Files.. and close all your IE, and start IE6 with these code.. <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script> var map=null; function include_js(file) { var html_doc = document.getElementsByTagName('head').item(0); var js = document.createElement('script'); js.setAttribute('type', 'text/javascript'); js.setAttribute('src', file); html_doc.appendChild(js); js.onre ...Show All
Microsoft ISV Community Center Forums Listing the attributes of a graph
I would like, by means of vba code, to list all the attributes and their values for a particular excel graph that I have. I want these values in order to be able to "mass produce", by means of vba, graphs with the same set of attributes and atrribute values). Anyone have code for that This would be a HUGE amount of code. It would be easier to create a user-defined chart type and apply it to your charts: http://peltiertech.com/Excel/ChartsHowTo/CreateCustomTypes.html ...Show All
Smart Device Development Q: POOM and named properties
After doing some research, I've managed to write some named properties using the Redemption library in C# Now I'd like to read the on my Windows Mobile Device and I understand the POOM library will allow me to read them using .netcf in C#. Does anyone have any hints/code that might make this task easier Thanks in advance! Adam Steven writes about POOM in his blog. It is a good starting point. http://blogs.msdn.com/stevenpr/archive/2005/06/15/429585.aspx ...Show All
Software Development for Windows Vista WSProfile Example of Sept 2005 CTP conversion to June CTP. Stuck.
I need the equivalent of the SecurityTokenServiceSamples folder from the FederatedIdentityAndAccessResourceKitSept2005CTP.msi that works with JuneCTP. I asked Nigel in another post if that sample is located in the Windows SDK as I was unable to find it. In the meantime I am trying to convert the WSProfile sample to work in the June CTP. I have it compiling correctly. I made minor Reference changes, using changes, and .config file changes. I can generate the mex and produce the new code for the generatedProxy.cs. When I run the sample, CardSpace pops up and I send the service my card. But the client comes back with this exception: ------------------------ Exception Type: System.ServiceModel.Security.SecurityNegotiationExcepti ...Show All
Software Development for Windows Vista Trouble with WF HOL Lab 3
This is regarding Lab 3 of the WF RC Hands On Labs , Hosting the Windows Workflow Foundation Runtime. Even after doing a repair installation, I am missing the SQL scripts for this lab. CreateDatabaseObjects.cmd executes Tracking_Schema.sql, Tracking_Logic.sql, SqlPersistenceService_Schema.sql and SqlPersistenceService_Logic.sql from C:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Workflow Foundation\SQL\EN\. That path does not exist on my machine. I did a search on those scripts and couldn't find them anywhere on my C: drive. Has anybody else had this problem If so, how did you resolve it Also, if anyone can send those scripts in a zip file to me, I can take it from there (hopefully). Thanks! Camey Combs, WF Newbie The ...Show All
Visual C++ Try This Code In VS2005
Here is a very problem i came through while writing a very simple program in VS2005 Professional Edition. Try the following code: #include<iostream> using std::cout; int main(); { int i=0; cout<<(i+1)<<" "<<i++; return 0; } The expected output is:1 0 However,the output comes out to be: 2 0. When i tried the same code on dev-cpp compiler the output is as expected i.e 1 0. I think the above code is not compiler dependent .So why is this problem with VS2005 compiler Kindly provide a solution to this problem and try to give maximum details. lali.b2 An excerpt from the the 1997 C++ Public Review Document published by the C++ Standards Committee (http://www.open-std. ...Show All
Windows Live Developer Forums Mapinfo co-ordinates
Can anyone help in identifing the projection used in virtual earth to display. We are importing coordinates from mapinfo tables in Irish transverse mercator grid and converting to lat/long but the points are not displaying in the incorrect position. Any help appreciated. Thanks Derek. Here is a reading from Mapinfo: Easting 247118.68 Northing 198208.55 -7 17' 51.260496 53 1' 57.058752 and the same in decimal degrees -7.29757 53.0325 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Sound performance problems
Hi! I've implemented a small arcade shooter-ish game to test XNA for my studio. I love XNA so far. Getting generally good performance. I'm doing most of my stuff on the GPU anyways. But I've got a problem with the sound: it kills my framerate. I'm justs playing some simple explosion and firing sounds, but they bring my framerate down from ~450 to ~100 without vsync, and down to ~30 fps with vsync enabled (!). Without sound effects I get a rock solid 75 fps with vsync enabled. Could this be the sound playback causing performance spikes The sound code and the sound effects are taken straight from the SpaceWars template (shame on me, I know). Johan Overbye www.artplant.no Well, without seeing ...Show All
Audio and Video Development Regarding Applicative Style
We can view a tick like this : tick start Live DOM a) evaluate all Xpath Expressions on LiveDOM (since all Xpath Expressions are evaluated on LiveDOM at start of the tick). b) Apply Animation ( LiveDOM modified) c) Draw LiveDOM tick end The question is when is the applicative style ( which is applied at every tick ) applied before a) or before b) The order in which styles are applied is covered in 7.6.1. Applicative -> Referential -> Inline -> Timed I don't believe HDiSim currently processes Applicative styles on every tick as the spec says it should; it only does it at the start. ...Show All
Smart Device Development where do I begin?
I am new to .net environment for mobile device, where can I get a good example and get started on this Is there any good book for programing WMD 5 Thanx The Windows Mobile Developer Center ( http://msdn.microsoft.com/windowsmobile/ ) is a good place to start. Especially, check the 'getting started' resources. ...Show All
.NET Development XML Serialization Over TCP Sockets
I have an appliction that serializes an object over a NetworkStream, and I want the receiving application to deserialize the object as effeciently as possible. Is it possible to directly deserialize an object using XML Serialization and NetworkStream's In VB, the receiving application has the following line of code: MessageObj = CType(Serializer.Deserialize(NetStream), Message) The application appears to hang on this line. However, when I close the application that originally serialized the object to the stream, the receiving application continues and successfully displays a value contained within the deserialized object. Is it possible for the object to be deserialized successfully in this manner It see ...Show All
Visual Studio Tools for Office Workbook.save() not behaving as expected.
I have a VSTO 2005 SE add-in for excel in which I need to programatically save the document on an event. When I tried workbook.save() to accomplish this the workbook gets saved with its temporary name eg "Book1.xlsx" in My Documents and doesnt pop-up a save as dialogue even with a document which is previously unsaved. I tried this with a word document and there the behaviour was as expected ie. it shows a save-as dialogue for a fresh document and doesn't when the document has been previously saved. Is there a workaround to avoid this behaviour As a crude workaround I wrote the following code. string path = workbook .Path; if ( String .IsNullOrEmpty(path)) { SaveFileDialog dialog = new SaveFileDialog (); ...Show All
Visual Studio Problem With Visual Studio 2005 Proff
Hi Freinds, I am trying to open the old .NET 2003 projects in Visual Studio 2005 IDE but i am getting contineous error. One or more error encountered while loading the designer.Some errors may be fixed by rebuilding your project, while others may require code changes. This error goes off when i Close IDE and again open it. But when i rebuild projects it shows the same error. I have seen one artile KB******, in that we need to download Microsoft.visualstudio.design.dll file but download for this is not available . Plese guide me how to fix this problem. Regards Suresh K. Hey guys i found 124 visits in this blog but i didnt get answers froom anybody. Anyway, i will share my words, how did i got through this probl ...Show All
