Mongsreturn's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Shader Problem (+video)
Hi all, I seem to be having a slight problem with one of my shaders. See the video: http://luteo.us/wp-content/uploads/2007/01/ShaderError.mov As you can see, the transparency is not acting as it should. Though the transparent sphere I can see the tiger and the yellow globe but not the cylinder. I'll post the .fx file if you request it. Some more info: I'm building this all in C# 2005 (Std), using the latest DirectX SDK (December 06). Thanks in advance, Eddy This is not a problem with your shader. This is a Z buffer problem because you're sphere is renderer before the cylinder. The tiger and the globe are rendered after the sphere so there's no problem with them. Right ...Show All
Game Technologies: DirectX, XNA, XACT, etc. mp3 player
I'm planing to make an mp3 player for the windows version of xna using lame or wmp(or if someone noes better ). just before i start what do you think the best method would be Do you think they will even work Unfortunately, XNA itself doesnt support any way of playing files other than those prebuilt using xact. You cant directly modify buffers or anything like that so using XNA for sound is probably completely out. You could use some 3rd party sound util (or DirectSound), but your not touching XNA with it. Also youd lose the ability to easily port to the 360 in future (which may or may not be an issue for you). You can however use XNA for some nice visualisations, and to make the 360 controller rumble t ...Show All
.NET Development HELP : URGENT : How to get the list of printers on the web server?
ASP.NET 2.0 (C#) application Using Windows authentication and impersonation Windows Server 2003 (IIS6) Server is a member server on a domain Logged into server as a domain user that is in the local Administrators group on the server Workstation is on the same domain Logged into the workstation as the same domain user, which is also in the local Administrators group on the workstation I'm having what seems like a strange problem. I have an ASP.NET 2.0 (C#) application that is running on my Windows Server 2003 web server. In this application, I have an .aspx page that tries to get the list of printers on the web server (using code-behind). When I run the application using IE on the server, it works fine and I get a list of the prin ...Show All
SQL Server VB 6.0 with SQL Everywhere ??
Can anyone help me by telling whether SQL Everywhere can be used with Visual Basic 6.0 This is urgent.Plz write me to : ayan.gupta@yahoo.com Ayan You are right lysy. we dont officially support ADO with SQL Server Everywhere. The sample code was given just to unblock. Going forward, I would advise you to move towards ADO.Net or OleDB stack. These two would be the officially supported data providers for SQL Server Everywhere. -Vels ...Show All
.NET Development WSE 2 HTTP Compression
Has anyone implemented WSE 2 with HTTP level compression using GZIP I have a web service that returns data in compressed format to improve performance but the WSE proxy does not let me extend the SoapWebResponse in proper fashion to decrypt incoming stream. I was able to do this with SoapHTTPClient. Explanation:I am able to request GZIP stream data from the server by overriding GetWebRequest (which is type of SoapWebRequest for WSE) but I can't decrypt the response since it's wrapped in SoapWebResponse. The SoapWebResponse does not allow direct access to the stream which I can understand since it's setting up Pipeline and filters but why doesn't it allow HTTP level access Is this a bug Does anyone have a workaround to this N.S. ...Show All
Windows Forms Windownmediaplayer component versus disable control?
I have a datagrid control and named "dg" and windowmediaplayer component name "wpl"; in form1_load event I wrote { this.dg.visible=false; } but in fact my datagrid still visible and if I try to right click tit's context menu I will got and error about the datagrid is not visibled to do that. so how can I set this datagrid. visible=false and I see it nowhere in the form Thank for any help DongMT Im working with C# ...Show All
Visual C++ Visual Studio Designer problem, "The designer could not be shown for this file..."
I get this message from a component in a hierarchy of components: "The designer could not be shown for this file because none of the classes within it can be designed." While I edited the component file created by the IDE I did not change any of the data created by the designer which encompasses: " /// <summary> /// Required designer variable. /// </summary> System::ComponentModel::Container^ components; #pragma region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> void InitializeComponent(void) { components = gcnew System::Component ...Show All
.NET Development Which class I should use in communication?
Hello, I am a new user of this forum. I need some advice. In System.Net.Sockets namespace there are two class, NetworkStream and Socket Classes and in System.IO there is Stream class for using TCP/IP connection between server and clients. I have read their members, properties and events in MSDN, they are nearly the same but I wonder there are any advantages or disadvantages between them. For my program which class should I use I use TCP/IP and DNP (Distributed Network Protocol) for my application, some devices connected to LAN sends data to my application also my application can send commands to these devices. But I can not decide which class do I use. I have not been using my english in writing for a long time, therefore sometimes ...Show All
.NET Development Wrting all XML data to txt file??
I have a listbox with some xml files listed instead of reading each one at a time and displaying the values i need in some textbox controls i wanted to know if someone could lead me in the direction so that i can loop though all the xml doc and write the data i need from each one...The data i need does not change from document to document...This is what i had so far but this is not correct....Any help string [] thefile = listBox2.SelectedItems; FileStream fs = new FileStream("c:\\maninfo.txt", FileMode.Create); StreamWriter sw = new StreamWriter(fs); if (thefile.Substring(thefile.Length-3,3).ToLower() == "man") { XmlDocument xd = new XmlDocument(); xd.Load(thefile); Messag ...Show All
Commerce Server Adventure Works Catalog Import Export
Hi All, I am a beginner in CS 2007. I wanted to start changing few things in the CS 2007 Starter Site. I wanted to know that if I remove the Adventure Work's Catalog then can I actually import it back I have seen a facility in the menu of import, so I presume that would do it. But would the Adventure Work's Catalog be restored exactly as it was configured when I configured the Starter Site or do I need to do some other configuration once I have imported it back. Also does any one know a way of hiding a catalog or specific products in a catalog could be hidden Many thanks, Shriroop. The starter site contains the AdvworksCatalog.Xml file which contains the Adventure works catalog. You cn import ...Show All
Visual Studio Tools for Office Adding Series to graph throws exception
Hi there, I add a graph to a worksheet at design time (Sheet2) and add a little data on Sheet1 (A1:A10, just numbers 1 through 10). I have a button on the action pane that calls the following code. Excel. Range range = Globals .Sheet1.Range[ "A1" , "A10" ]; Excel. SeriesCollection seriesCollection = (Excel. SeriesCollection )myChart.SeriesCollection(missing); try { seriesCollection.Add(range, Microsoft.Office.Interop.Excel. XlRowCol .xlColumns, missing, missing, missing); } catch ( Exception e) { MessageBox .Show(e.Message); } However, it always throws "Return argument has an invalid type". If I throw this error away, the series is added just as I want, so I can ignore it if I wanted.& ...Show All
Software Development for Windows Vista How do I get my custom activities to appear in the toolbox?
I have a project with some activities which all appear in the toolbox while I’m working with the project. Next I compile the project, open a new project, and reference the assembly from the first project. What do I have to do to get the activities from the first project to appear in the toolbox automatically I’m using the ToolboxItem as shown below: [ ToolboxBitmap ( typeof ( Page ), "ExtendedCodeActivity.ico" )] [ ToolboxItem ( typeof ( ActivityToolboxItem ))] [ Description ( "Like a System.Workflow.Activities.CodeActivity" )] [ Designer ( typeof ( ExtendedCodeActivityDesigner ), typeof ( IDesigner ))] public partial class ExtendedCodeActivity : Activity { ... } Should I use the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. JIT register allocation and bounds checking
A few questions for Shawn or one of his buddies: 1/ Does the register allocator used in the XBox JITter use all of the available scalar floating point registers If not, how many can it deal with 2/ Does the XBox VM ever skip array bounds checking, and if so under what conditions 3/ Presumably there are no bounds checks when using unsafe code and pointers 4/ Are the method inlining limitations of the CF VM mentioned here still applicable to the XBox VM - especially the one about not inlining any method with floating point arguments or return values (yikes, that would be all floating point setters and getters!) Andy. 3/ Unsafe code is fine on the XBox. Really Have you tried it If ...Show All
Visual C# Trying to understand IComparable
I try to understand an IComparable code example. MyIndividual object uses the IComparable interface with the CompareTo memberfunction. MyGroup object contains a private ArrayList with several MyIndividual objects. When executing the MyIndividual.Sort function the ComparTo memberfunction is called by the operating system many times to do the comparison. So far so good. The CompareTo memberfunction compares some property of the received argument object against the same property of the 'this' object. Now I don't understand how the 'this' reference is pointing to one of the MyIndividual objects. Which or What is responsible for initializing the 'this' reference I am confused as normally I think when memberfunction code ...Show All
Visual Basic Multithreading issues....
Hello everyone, I am currently writing a program that sends a message to a server and recieves it onto another client, I have successfully bounced the message off of the server but when it is recieved the message is not being transfered over to the main thread from this thread to be posted into the textbox. Dim server As TcpListener server = Nothing Dim port As Int32 = 13000 Dim localAddr As IPAddress = IPAddress.Parse( "ip" ) server = New TcpListener(localAddr, port) server.Start() Dim bytes(1024) As Byte Dim data As String = Nothing While True Dim client As TcpClient = server.AcceptTcpClient() data = Nothing Dim stream As NetworkStream = cl ...Show All
