DRoden's Q&A profile
Smart Device Development Host Unreachable
Hi, I am using T-Mobile SDA (WM5) I am trying a ftp program. When I debug the program through VS2005 when the SDA is connected to computer, everything is working fine. I can connect to a ftp server and can download files. But when I run this on the cellphone as a standalone program without connecting to computer, its giving the following error: "System.Net.Sockets.SocketException: A socket operation was attempted to an unreachable host" I have a data connection (GPRS) and I can browse the internet. (But when I am browsing the internet the symbol "G" which signifies GPRS Connection is appearing on the top pane.) When I am running the program, it has to go through GPRS so I think "G" symbol must appear, But its ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Model Position Problem
I have this code that creates a model at the position of the mouse click but the model never shows up at that position. Maybe someone out there knows why the models seem to be offset. If I click in the top left corner of the screen, the model shows up in the center of the window. Here is the code: #region Using Statements using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Storage; using System.Collections; #endregion namespace Commander { /// <summary> /// This is the main type for your game /// </summary> ...Show All
Visual Studio Express Editions Express on Windows Vista?
Will I be able to install all the Express tools if I am using Windows Vista OS I looked and noticed I will need to wait to use SP1 but I do not see Vista listed on the system requirements for the SDKs. http://msdn2.microsoft.com/en-us/vstudio/aa948853.aspx Ok, I found the answer here. ...Show All
Windows Forms Loop capture image and generic error occured in GDI+
I've application to capture video of image and grab the still image. It runs well untill I put loop to regrab the still images many times automatically.. and the error (generic error occured GDI+) happend. For your information, I also run different code of application that have similar function which to capture the image repeatedly that I found from internet. However, it give the same error message. I think maybe I've to setup something in the configuration but I still blur about it. I'm using C# Express edition. Could anybody help me please... I'm using the Blas5's code from http://www.codeproject.com/directx/CapSample1.asp I'm using D-Link's web cam. I splited the windows (AddCam, MW and CW) and accessing through a Men ...Show All
Visual Studio Express Editions Snipets ??
Hiya, I was wondering if anyone could help me. I am very very new to visual basic (just going through the first tutorial in my book :) Its telling me to use snipets to add code in, which is fine, but i have noticed that when i put snipets in its only putting in a few lines of code, compared with the pictures in the book there should be alot more. At first i thought it might be because I have a different revision of VB than the one used in the book, but when testing it my programme is not working so i guess i am missing code :( Is there any setting's I need to change It's possible that the book was written using a beta version of the software: the snippet they used may have changed for a final ...Show All
Smart Device Development Customizable ListView Control
Hello Everybody, I am trying to develop an application where I require a grid with different formatting at the cell-level (something like MS Excel). Whenever a cell is clicked, I will need to get the text contents of that particular cell and change the formatting of that cell (make the text bold, change background color, etc.) How can I get that done I've tried finding a suitable solution but to no avail. Any help will be appreciated. Thank you, ~Ybawany If you require grid, use DataGrid control. Starting NETCF V2 SP1 you can override cell painting and do whatever formatting you want on a cell-level. See this . ...Show All
SQL Server Checking KPI value for divide-by-zero
We've got some potentially complex KPI value definitions, which can involve division of two cell values. I want to put in a check to make sure we don't do a divide-by-0. If I do, is there any performance implication due to the calculation of the denomerator happening twice (once in the first IIf clause, again in the actual value). For example, if I have a value that's essentially: [Measure1] / (Aggregate([A Set], [Measure 2]) and I want to make it IIf( (Aggregate([A Set], [Measure 2]) > 0, [Measure1] / (Aggregate([A Set], [Measure 2]), Null) Is there a performance hit for doing this Does the aggregate happen twice Is there a smarter way of doing this check Yes, Aggregate will happen twice. The best way ...Show All
Visual Basic VisualStudio 2005 BUG
Am developing a forms app using vs2005. All going fine till decided to publish via ClickOnce…. Having published to ClickOnce, now every time I try to debug (F5) the app after doing a code change or opening up the Publishing Project Properties, get “The operation could not be completed. The process cannot access the file because it is being used by another process” Try again – then get “Visual Studio could not copy a support file to this location: Q:\Development\Visual Studio 2005\Projects\projectname\projectname\bin\Debug\projectname.vshost.exe. Please verify the path exists and is writeable”. (projectname changed to protect the innocent) Think it is due to the code being not being on my machine but on the network A ...Show All
Visual Basic How do you replace text in Rich textbox?
When i use the replace command on a rich textbox, the formatted text suddenly resets.. If a word is bold, the whole text gets bold. Im using the command this way: RTF.text = RTF.text.Replace("Firststring","Secondstring") I have also tried this solution dim txt as string = RTF.text txt = replace(txt,"Firststring","Secondstring") rtf.text = txt But this dont seem to work. The thing is, the document is written as a file, and then when you want to open the file in my vb2005 application, it replaces words like [name] with the actual name. And it should keep the formatting if some text is bold or underlined.. Public Class Form1   ...Show All
Visual Basic Error on export to Excel
When I try to change data in Series object I got next error Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH)) Please Help! Dim oExcel As Object Dim oBook As Object Dim oSheet As Object Dim oldCI As System.Globalization.CultureInfo = _ System.Threading.Thread.CurrentThread.CurrentCulture System.Threading.Thread.CurrentThread.CurrentCulture = _ New System.Globalization.CultureInfo("en-US") 'Start a new workbook in Excel. oExcel = CreateObject("Excel.Application") oBook = oExcel.Workbooks.Add 'Add data to cells of the first worksheet in the new workbook. oSheet = oBook.Worksheets(1) Dim i As Integer For i = 1 To 5 o ...Show All
Windows Forms Remove background from GIF Image
Hello, Can i remove white background from GIF format image using .NET .I tried by using Bitmap class's - M akeTransparent method, It won't remove the background. If possible another way, Please let me know the procedure. Thanks lot. Thanks, Vivekanandan Check this thread ... ...Show All
Visual C# question about break
I am confused of using "break".... if i have this 2 cases... case 1 while() { if() { break } } case 2 case xx if () { break } case yy In above two condition, if it meet "break", it will jump out of the if function and continue execute in the while loop or case, or if it meet "break" it will jump out the while and case Thank you for the link......this is the condition which match my question.......i just confuse the break will terminate the loop or not.........i found the answer is "yes"...... class BreakTest { static void Main() { for (int i = 1; i <= 100; i++) { if (i == 5) { break; } Console.Wr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How can i find my model's frame's position
i have a human model. Its have alotofs frame like right_hand. How can i find my models frames poistions. i'mnot want to find model position i want to find frames positions is it imposible Thanks. Create an array of absolute transfroms using Model.CopyAbsoluteTransformsTo(). Loop through your Model.Meshes and you should see each of your Frames in there. The position of the frame should be: absoluteTransforms[mesh.ParentBone.Index].Transform in Object space. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Migration from Express to Pro.
First, I think this is a good approach by MS to get more games out there. I have a couple of questions though. Maybe someone from Microsoft will be able to answer these. 1. What will the upgrade path be from the Express version to the Pro version As the Pro edition comes much later, it's likely many independent development companies will start with the express version to get something going, then migrate up to the Pro when that is released. 2. There are people like me that are in the middle of the pack. I create commercial games for the PC and wish to get into the console market. This solution sounds like the answer. I'm not a hobbyist. I put food on the table selling my PC based games. Yet I'm not Electronic Arts either with ...Show All
Visual Studio Team System Cannot add work items in TFS for Developers
Hi I have just installed TFS for Developers, and cannot add any Work Items. I am the administrator of the project and when I right click to add work items I get a menu with 1 item which is disabled. The text of the menu item is "Error loading menu: Index was outside the bounds of the array". I have installed VS Tools for Office Runtime and have even tried repairing my VS Installation. I am running XP SP2 and have the latest windows updates installed. We have other teams who have installed the software and it works. Thanks Andre This is most likely because of registry key issues with our UI components. We thought we fixed it but looks like it still happens in some circumstances. To fix it, delete ...Show All
