Troy Lundin's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Render to Texture Inside Shader?
I'm sorry if this is a stupid or obvious question, but I am completely new to shaders. Is it possible to render to a texture inside of a shader For example I want to render to a texture in the first pass and then use that texture in the second pass. I am currently using XNA's render to a texture successfully. However I was wondering if it was possible to implement it inside of a shader, because I feel it would be faster, not to mention make the XNA code simpler. My gut feeling is that it is not possible, however I am kind of confused by RenderMonkey. It uses Render Targets which appear to do what I want. However, I think it may just be doing some DirectX render to a texture operations in the background. Y ...Show All
Software Development for Windows Vista Shell Namespace Extension inconsistencies in Windows Vista
Hello all ! I'm developing a Shell NSE for Windows 2000/XP and Vista, and I've come across a strange problem. The interface IShellFolder provides two functions, CreateViewObject and GetUIObjectOf. According to the documentation, the first function is used to obtain a IShellView pointer to the view object that presents the items of the folder. It is, also, used to get other interfaces, such as IContextMenu, IDataObject etc. for the folder object itself. The latter function is used to obtain similar interfaces for items contained within the folder. However, I've noticed that in Windows XP SP2, the CreateViewObject is not queried at all for IContextMenu or IDataObject when it comes to the folder object. All these interfaces are queried throug ...Show All
Visual Studio Team System application designer - how to deal with custom return types?
Hi, I have been using the application designer for a few days, and I want to design a web service to return objects of a custom class to a web application. My problem is that if I define an operation in the webservice "GetStaff", and specify the return type to be a bindinglist of Staff objects "System.ComponentModel.BindingList(Of Staff)", I get exceptions when I generate all applications because my Staff class doesn't yet exist. Is there a way to have the Staff class generated along with the webservice, webapp etc Many thanks in advance, Gordon Doherty That's good news - it means we're seeing the same behavior. You can make Visual Studio create your types at the same time it generates t ...Show All
Visual Basic PublicKeyToken=b77a5c561934e089' failed
I am trying to locate which section of the configuration section I can change the trust level, I just added IIS 6 to my machine and have gotten this (PublicKeyToken=b77a5c561934e089' failed) message I have researched and found that it has to do with permissions I don't want to make the wrong changes and dig myself further in to a hole can someone explain in detail where it is I change the configuration. DKB Thanks Bruno I will give it a wurl. One more thing can sql 2000 MSDE be on a same machine as sql 2005 express it means I would have to decide a few things 1 of them being if I change isp's 2nd if I format and back up lots and lots of learing material and install 2000 I would hate ...Show All
Windows Forms Creating Flat Tabs
Hey there, I'm working on an app that has one tabControl component, and which has a bunch of tabs associated with it. I noticed that in the properties for buttons you have the option to control FlatAppearance. However for the tabControl, there is no option to display the tabs flat (like that you see in Excel and Visual Studio). Its a nice look imho, and I'd like to implement it into my app. I was poking around the MSDN library to come up with something that could control the look of the tabs I found the VisualStyleRenderer.DrawEdge Method public Rectangle DrawEdge ( IDeviceContext dc , Rectangle bounds , Edges edges , EdgeStyle style , EdgeEffects effects ) Does anyone have any experience with this metho ...Show All
Visual Studio Team System T-SQL colour highlighting
Quick one. I've just noticed that certain fuctions such as: SUSER_NAME() CURRENT_TIMESTAMP probably alot of others (maybe all of them ) show up as pink/purple in SSMS which is useful because it differentiates them from other keywords. In datadude these show up in blue, the same as all the keywords. Can that be changed to be more like SSMS -Jamie cool thanks Mairead PM, TS Data Check out my new blog http://blogs.msdn.com/mairead/default.aspx ...Show All
.NET Development Al.exe and satellite assemblies
Hello. For my application I have created an satellite assembly for a cultural reference, for example "es" or "de". The point is that mentioned assembly it does not have assigned the cultural reference for which was destined. I have used the tools "Resgen.exe", to create the resources, and "Al.exe" to create the satellite assembly. Respect to the Al.exe tool I have not had problems previously. The command line for Al.exe (v 8.0.50727.42) is the following one: Al.exe /target:library /embed:MyApp.es.resources /culture:es /out:MyApp.resources.dll /template:MyApp.exe Why the assembly contains a neutral cultural reference From already I thank for the time used on my consultation. Martin ...Show All
Visual Studio Express Editions Using Speech SDK with VisualC++ 2005 Express Edition
None of the speech SDK sample projects compile or link. Fatal error C0183: cannot open include 'atlbase.h' Installed Platfrom SDK, and somewhat it's working. In the project wizard ATL and MFC options seem to be disabled, why I really need to get my tiny project forward, what tools I need for the few lines of code to get speech work This is frustrating. Spending few hours to download stuff to get started, figured out how to write the little utility, and finally find out that the tools are not working. What is wrong here The Express edition doesn't include ATL or MFC, you'll need the retail edition. Time is money. ...Show All
SQL Server General Layout
Hello, is it possible to create a general header which can be used from all reports I want to change only this one header and all reports from this Project get the same header, too! Greez DYDaniel You can create a report template where you add your header, check out this blog entry . However: These templates are not "connected" to the reports created from them. So when you update the template, the reports created from the template won't be updated to reflect the changes. ...Show All
Smart Device Development Emulator mouse driver problem
Hi All, I have been able to develop an OS image using Plaform Builder and I am able to deploy the application on the ARMV4i emulator. However, when then application loads I cannot seem to use the mouse on the emulator. The mouse pointer remains at a fixed location and cannot be used, however I can use the keyboard to navigate through the application. I have included the S32410 Matrix Keyboard/Mouse English device driver when the OS image that was built. From my understanding, it is the device driver that the Microsoft ARMV4I Device Emulator supports. Just to clarify what is installed, I have the following; Virtual Machine Network Driver for Microsoft Device Emulator ARMV4I BSP for Windows CE 5.0 Microsoft Windows CE 5.0 Emulato ...Show All
Visual C# VB.NET 2.0 to C#.NET 2.0 (Help Please)
I'm working on Converting a VB.NET 2.0 Project to C#.NET 2.0 and need a bit of help with this... Here is the VB.NET Code i'm coverting:: statz.Items.Item(2).Text = "0" For i = 0 To CInt (ClientList.Text) ClientID(i) = ListView1.Items.Item(i).SubItems(1).Text Socket(i).Close() Socket(i).Connect(ServerList.Text, 5050) If ServerList.SelectedIndex = ServerList.Items.Count + 1 Then ServerList.SelectedIndex = 1 Else ServerList.SelectedIndex = ServerList.SelectedIndex + 1 End If /****************************************************/ ListView1.Items.Item(i).SmallIcon = 2 http://www.google.com.au/search hl=en&q=VB.NET+C%23+convert+buy&am ...Show All
Visual Basic Calculations
This is totally differetent from Access I have got a field's property set to money I need to divide that field by 2(sounds simple) but VB is haven a fit. I am used to me.text1= me.text2 / 2 its saying that / is not defined how do you divide and multiply in VBE Davids Learning Calculations in what respect Are you talking about mathematical calculations. In which case a search on system.math namespace would probably provide you with some info. ...Show All
SQL Server Help on global variable for insert statement
I am new to DTS, but really enjoy it and was wondering if someone could help me with the following small vb app. I am using the following DTS insert statement to insert records into my table. I have multiple textboxes that needs to be filled and then inserted, none of them exept Nulls. How can I modify my code to insert those textboxes as well as run through the boxes and then check if they have nulls and NOT insert the ones that has nulls My form has 9 textboxes. Textbox1, 2, 3 Needs to insert values into the first column. Textbox4, 5, 6 into the second and then Texrbox7, 8, 9 into the last column. My question is how do I format the following line of code to do what I need oCustomTask1.SQLStateme ...Show All
Software Development for Windows Vista Vista build 5308 February CTP and soundmax audio drivers
I had installed December CTP build 5270 few days ago on Winxp Sp2. But I was not able to install soundmax audio drivers which I used on Xp sp2 in Vista. It said those drivers were not meant for this OS (vista). I looked on internet for solution but all in vain. Now I m going to install February CTP build 5308 and I want a solution at hand before installing vista. I have come across some threads on forums which said they have installed on Decembef CTP. Is there anybody who has installed it on Feb CTP Plz help me :( So my question is "How can we install soundmox audio drivers on February build " or "Is there any problem at all with audio drivers in Feb CTP " thanks in advance System specifications :- RAM 1 ...Show All
Smart Device Development MIME Parser
Hi, Follow to 'PR_CE_MIME_TEXT' returned value, Is there any kind of a built-in MIME Parser under Win32 API Have a nice day, Asher There are no programmatically accessible MIME parsing components on Pocket PC. If you are interested in message body, a simplified rule is: Read all headers - lines of text followed by CRLF. Stop when you get an empty line. The rest is the message body. This is only true for purely text messages. To make sure the message is text, while reading the headers watch for one called "Content-Type". If this header value is multipart/alternative, then you have multipart body and need a decoder. Also, if you encounter a header Content-Transfer-Encoding: quoted-pr ...Show All
