cplusplus1's Q&A profile
Visual Basic Special Characters in XML File
Hi all, I have a little problem with XML. This XML file is a UTF-8 codeification and most of the times a "tiny square" appears inside the text, I know I can replace the character but I just don't know which character is. Working with VB.NET (System.xml and System.XML.Path), I tried to get the char number but I get two values: 63 and 13 Dim CharWeird As Char = GetChar(xString, 15) ' 15 is the position of the character (zero based) CharWeird = 63 BUT if I..... Dim CharWeird As Double = Char .GetUnicodeCategory(xString, 14) ' 14 is the position of the character (1 based) CharWeird = 13 Not to mention that if I lookup the char inside the string: xString.IndexOf(63) or xString.IndexOf(13) it always returns -1 me ...Show All
Visual Basic I want to trigger a public sub when a particular dll on my pc is run
Is there a way to open a vb program and run a piece of code when a dll is run OR actually when it is done running would be better. Thank you, Michael Matlosz Ahh...I wasn't clear enough. Sorry about that. Program "C" uses a particular dll file to export data to program "E" when a user clicks a button found in program "C". When that happens the code exports data into a temporary database, until the next time the button is clicked. I can't change code to program "C" or "E". I have built a third program, "D", to achieve the desired results. BUT to avoid the user having to click a second button in program "D", immediately after clicking button in & ...Show All
Game Technologies: DirectX, XNA, XACT, etc. A 2D sample code for my Tutorial 1
I am working for a tutorials for my students (I teach computer science in a secondary school), here the first. Please fill free to write suggestions and/or use it if you like . /// <summary> /// Tutorial 1 - from XNA help and forum community contributes - by Toni Greco /// _ Interactive 2D graphic application _ /// /// In project folders "tmpWorkingArea" you find some middle steps to build media. /// /// Features: /// resizable window (but then it go behind all others: bug ) /// toggle fullscreen/window mode (Home-Enter) /// control player ball with arrow keys /// background fixed (bitmap from Spacewar demo) /// XACT sounds ///   ...Show All
.NET Development <ItemTemplate> not supported
Hi there. Im working on a website that was created using visul studio 2003. Im now working on that project in Visual studio 2005. when I try to execute the project im getting an error about ItemTemplates not being supported. This is the part in question: <MyNo1 : NewsList RssUrl = http://www.hello.com/feeds/rss/howareyou runat ="server"> < ItemTemplate > <% # AddToC1(Container.Data) %> </ ItemTemplate > < AlternateTemplate > <% # AddToC2(Container.Data) %> </ AlternateTemplate > </MyNo1 : NewsList > the error message that I get is: Error 51 Validation (HTML 4.01): Element 'alternateitemtemplate' is not supported. any advice would be greatly appreciated. ...Show All
Visual C++ char * to unsigned short *
hi, I have to pass a string to a function, which takes input in "unsigned short *" format How can I do this conversion Thanks in advance, Prashant In addition to Viorel's (hope I spelled right) comment, if your windows application is unicode ready make use of TCHAR data types and _T macros for string definitions and also use "t" set of string copy and other string related functions. So that your source code will be compilable in both Unicode and ASCII builds. ...Show All
Visual Studio 2008 (Pre-release) Error Creating Projects March 2007 CTP
I downloaded and install the the March CTP VPC Images from http://www.microsoft.com/downloads/details.aspx FamilyID=281FCB3D-5E79-4126-B4C0-8DB6332DE26E&displaylang=en 7 parts starting with VSMar07CTP_VSTS_7PartsTotal.part01.exe. I can create an empty solution but it cannot create any project files.. tried class library, empty project, windows forms application. All I get is a note at the bottom of the screen... Creating Project 'ClassLibrary' .... project creation failed. Any ideas as to what went wrong with the install Well not sure what caused the problem but deleting the virtual pc image and redownloading and installing the base image then reapplying the March 2007 CTP seems to have&nb ...Show All
Visual Studio Express Editions ensure form runs on primary monitor
How can I ensure my C# form runs on the primary monitor in a multimonitor setup Thanks Ensure the form's bounds are within Screen.PrimaryScreen.Bounds; adjust the Left and Top property if necessary. ...Show All
Architecture Web Service for Bank's internal operations
Dear All. I am very new to XML Web Services. I read that ther are suitable for connecting different organizations and different systems. But What do you think Is it true logic to use Web Services for inside bank operations: f.e: AddNewCustomer, EditCustomer, DebetAccount. So, in general operatiosn that use "Data Manipulation Language". So, not to use siply Client-Server architecture, there will Client-WebSrvice/s - Database Server. As we know bank's has bunch of records. Are WebServices good candidate for such bunch operations Thanks in advance. Teymur When you look at performance, I think it will probably work, if the webservices are designed right. You should be aware of some requirements: ...Show All
Visual Basic using/calling/importing a vb.net function to vb6
just curious, is there anyway to use/access/call a function made in vb 2005 to vb6 there are some functions are are only available in vb.net and the old app i'm adding a function for is in vb6 so migrating immediately is not an option. i found stuff regarding this on msdn Article ID: 817248 but this was only for .net 2002 & 2003 and .net framework 1.0. if there is anyway then i'd appreciate the info dave. KB article 817248 applies to VB 2005 as well. You can find a bunch of other articles on the subject here http://msdn2.microsoft.com/en-us/vbrun/ms788241.aspx ...Show All
Visual C# c# exe file called from php page
i to all, i have to call a simple console application on a server (that only elaborate some jpg files) from a php page passing a parameter. the application have to return a parameter like true or false, how can i do it thanks a lot Teo System.Environment.ExitCode ...Show All
Smart Device Development rerieving the status of phone
hi all , in my application , i want to handle a following situation . 1. when the incoming call comes , i have to pause my application or the settings should be saved . 2. how to handle the incoming calls . In solution explorer, right click on the reference folder and choose Add Reference. Now, you can see a tabbed window. In .Net tab, you can see these assemblies. Select required assemblies and then click ok button. Now, it will be added in your project. ...Show All
.NET Development how to read and update an xml file
I have an xml file with the follow fields: <name> John Doe </name> <city> XYZ </city> <zip> 88888 </zip> How can i update for example the zip code to 99999 without affecting other fields Use System.Xml.XmlDocument and load the XML. Then you can use XPath with SelectSingleNode or SelectNodes to find nodes (e.g. //zip) and e.g. elementNode.InnerText = "99999" to change the contents of an element node found. ...Show All
SQL Server Sql Server 2005 servcie domain accounts
Hi There Currently we run a certain instance , agent under local system on a server. I want to create specific domain accounts for the sql server service and agent, now i know that one should create these accounts with the least priviledge for security reasons. cannot find the topic in BOL, can some please give me the BOL topic or a link to exactly what the least priviledge is for the domain accounts for sql server services. Thanx In SQL Server 2005, the service accounts will be made members of local groups, which had all the necessary rights assigned to them when they were created at setup time. If you check the groups on your machine, you will see a number of them with longer names; for ...Show All
Visual C# Best way to get around not being able to dynamically cast?
I'm trying to do something where it would be nice to be able to dynamically cast. I know this isn't possible in C# so I'm trying to figure out the best way around this. Basically the setup is I have a 'Segment' class. Then a have a bunch of classes that inherit from the 'Segment' class. Then I have a Segment collection class that has an ArrayList that stores different 'Segment's. What I want to be able to do is have a method that takes in a Type (which will be one of the classes that inherits from 'Segment') and have it return an array of Segments of that type. Something like this: private ArrayList Segmants; public Segment[] GetSegmants(Type reqType) { ArrayList thisList = new ArrayList(); &nbs ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Grand Theft Auto style game with XNA?
How easy it to make GTA-style game with XNA Game Studio Express.. I haven't downloaded it yet so I'm thinking of doing it.. :) Is it possible to make that kind of game Thanks, Timo Jim Perry wrote: exal wrote: Are we talking about creating a game like GTA It takes a whole studio to get a thing like that together. Not necessarily, at least something like GTA 1/2. Something like that (maybe not to the same scale) could be done by one or two people, assuming they knew what they were doing. I agree. ...Show All
