Daikoku's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Creating depth textures and getting back buffer in beta 2?
Alright, so the API for this is totally different for beta 2. That's fine. But I can't see how you create depth textures now. I'm using them to render shadows. Also, how do you get and restore the back buffer now Do you do something like: RenderTarget2D backBuffer = (RenderTarget2D)device.GetRenderTarget(0); ... device.SetRenderTarget(0, backBuffer); Also, ResolveBackBuffer (slowly) copies the contents of the current backbuffer for the given index into the provided texture, which you could use as an input elsewhere. You wouldn't need to "get the RenderTarget from it" - RenderTargets have Textures, so you can use the results of a rendering operation. If you want to use the Texture2D you passed into ResolveBackBuffer as an in ...Show All
Visual C++ Lost! Vis C++ Interaction with Web Based Databases...
Hi, I'm a reasonably experienced C\C++ coder, and I've decided to write a client based program which interacts with several server-side databases. I've done a quick search on the net and found very little information about this, other than the mention of embedded SQL. What is the best way to do what I need to I need to be able to access the databases quickly and easily, and keep the databases secure online so that the content of them cannot be viewed. I also need to have read and write access to them. Is there an easy way to do this If not, could someone please point me in the direction of somewhere I can learn the necessary skills to do this Thanks in advance! :) SB I think Microsoft has ...Show All
Visual Basic How to program software updating from the web
I would like to add automatic software updating over the internet into the program I have written, but I don't know where to start looking for the relevant information. My program is written in VB.NET 2003 / Windows Forms and we use InstallShield Express 11. I have figured out how to create the web-based setup in InstallShield, and we have got a location to store it on our website. Now I need to find out what code I need to determine if an update is available, download the correct update, exit the program, run the setup and then restart the updated program. If someone could please point me in the right direction to any articles or examples of how this can be done in VB.NET, it would be greatly appreciated. Thankyou in advance. ...Show All
Visual Studio Team System Is there any “forbidden code patterns” example anywhere on the internet ?
Again, a new cool tool by Microsoft that has simply no use, the “forbidden code patterns”, is there any practical sample of how to write a single useful C# “forbidden code pattern” I can defiantly tell the tools not to accept any code that has the word “Hello World” in it, but that’s about it, ok, maybe a bit more. I want any useful example, anything :-) I want to see the example so I can write my own custom code patterns, I have a long list, and I still can’t implement it. Maybe the tool is ok, maybe I am missing something or don’t have the experience, who know, let us see a sample, I am sure you tested that tool with something :-) See my other response - yes, it uses the .NET Regex class, a ...Show All
Visual Studio Tools for Office Stack overflow in calling Range.InsertXML()
I'm using Range.InsertXML() to display an xml blob on a particular area on the document. The xml blob comes from the database and I use recursion to insert all records on the word document. I'm getting a stack overflow error when the records gets too big (50+ pages). I saw a thread on stack overflos in excel and it suggests using Application.EnableEvents set to false before calling a method. Word don't have this event. Any ideas how to prevent this error I'm trying to display about 175 records (probably more) using the Range.InsertXML() method. The "xml blob" is inserted to the database using the Range.get_XML(false) method and retrieved using a custom task pane, which displays it on the word do ...Show All
.NET Development proxy authentication with domain authentication
I want internet explorer to always prompt me for authentication, instead of using my domain authentication already logged onto the workstation. Whats happening now it is using my current workstation credentials to authenticate me to my proxy server. i mean it works, but what if i want to login as another account i'd have to log me out of windows completely and login as that account to gain internet accesss with that account can anyone help You have two choices 1. Running IE as a different user OPen a command prompt under different user using runas /user:<user> cmd.exe and then type program files\internet explorer\iexplore.exe 2. If you don't want IE to ever use your credentials Go to tools - internet option ...Show All
Windows Forms Images do not appear in listview
Hi all, I am using a listview and have images being shown in the first column, however these images do not show up every time. Every now and then, there is no set pattern, the images do not show and there is an empty space instead. If anyone can help me it would be greatly appreciated. Thanks in advance Nothing really jumps out as "that's why!". You specifically use a blank bitmap when the XML string is empty, be sure to put a breakpoint on that statement. More relevant perhaps is that your app is behaving as though the garbage collector is disposing your images. That would explain the random behavior. Test that theory first by calling GC.Collect() after you've loaded the images. If tha ...Show All
Visual C# Embedded Control Characters
I am dealing with source files that contain embedded control characters. Can Visual Studio be configured to display those characters as either hexadecimal or octal values in the editor Thanks Tim, I'm one of those dreaded newbies, at least as far as VS goes. I took my best guess as to where I should ask my question. drd-cw ...Show All
Smart Device Development Xml validation
I greetings to all, threre is an effective way to validate XML in CF I tried to validate it using XmlReaderSettings but it is not effective. So someone knows how to validate an XML Greetings. Yeah but to me it doesn't work. I tried this simple example: http://msdn2.microsoft.com/en-us/library/56xykaw6.aspx but it terminates correctly without raising any validation error. I copied the files without any modification but it doesn't work. Someone has never tried to effective trying to validate an XML against a schema in CF Any suggestion Thank you ...Show All
Visual Studio Express Editions Transparent BMP
I would like the user to be able to click on one (or more) colors in a .bmp image, which would cause that color (or those colors) to become transparent in the image. The only transparent .bmp color code I have seen is where the programmer specifies that a certain color in a .bmp image will be transparent, which doesn't help to solve my problem. I am very new at this, and any help will be greatly appreciated. Here's some sample code to get you going. Start a Windows Forms project and drop a panel on the form, large enough to contain your bitmap. Alter the path in the Load event to use your own bitmap. Public Class Form1 Private mImage As Bitmap Private Sub Form1_Load(ByVal sender As System.Object, ByV ...Show All
.NET Development Time Zone Issue.
I am doing a simple testing. WinForms application sends Current Time after converting into UTC to a WebService as a parameter. eg. DateTime.Now.ToUniversalTime() at WebService end i am receiving this time and Converting it into LocalTime eg. ReceivedUTCTime.ToLocalTime() The Problem: when i debug my application the conversation happens properly, but moment i shift my webservice to another Box its unable to convert ReceivedUTCTime to localtime. After excuting the .ToLocalTime() method the conversation does not happen. it remains same. I am surprized, what could be the possble reason Finally My Application is going to reside on Box1 wth ,NET 1.1 and WebService is on Box2 with .NET 2.0 - Jignesh Note: Currently Box ...Show All
Community Chat Virtual Intelligence, AI
People we need to talk about this. When people talk about this, they say its based on storing and retriving information. The learning process for the computer would be to save as much information as possible from its interactions with the environment. But when I think about this, I feel its a restriction to learning. Consider this, when we are small adding two numbers 2 and 3, would be done on fingers or on a peace of paper. But when we grow up we dont use the fingers or paper. So my point is: The input(add 2 and 3) remains the same, also the output(5) remains the same. So where did the process of learning go. Thus, I would suggest that a machine should not only learn and save in information, it should also learn to proce ...Show All
Visual C++ Making an Installer package with sounds
I'm having problems making an installer package with sounds. I can do it without sounds, but when I add sounds it says that wmp.dll is protected and can't be added. I tried excluding the file but that makes it so no sounds are played. I was wondering if there is something else I need to do. You will probably get better answers for such issues at the newsgroups at http://msdn.microsoft.com/newsgroups . Folks there will be more familiar with similar topics. OTP Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Basic Outlook upgraded; What about program?
I am using vs.net 2003 to develop a program. We use Outlook 2000 for email on our computers. Some of our computers have recently upgraded to Outlook 2003. The new computers with Outlook 2003 cannot send emails through our program that we are developing. What are my options for upgrading this program to interact with Outlook 2000 and 2003 The code we use to send the emails is this: Dim olApp As Outlook.Application Dim olMailMessage As Outlook.MailItem olApp = New Outlook.Application olMailMessage = olApp.CreateItem(Outlook.OlItemType.olMailItem) olMailMessage.Subject = "Some subject here." olMailMessage.Body = "Some text here." olMailMessage.To = someone@somewhere.com olMailMessage ...Show All
.NET Development WSDL & SOAP
Hey all, Hoping someone can point me in the right direction here. Typically when building my soap object, the operation appears as <wsdl:operation name="ccValidateCard" parameterOrder="merchantName ccn expdate maskedCcn cardType returnCode"> <wsdl:input message="impl:ccValidateCardRequest" name="ccValidateCardRequest"/> <wsdl:output message="impl:ccValidateCardResponse" name="ccValidateCardResponse"/> </wsdl:operation> in the WSDL. Then i can go ahead and create my soap object using code such as soapResponse = objSoapClient.ccValidateCard(merchant, CCNumber, dateMMYY, maskedCcn, cardType, returnCodeValidation) I'm working with a different WSDL file ...Show All
