tattoo's Q&A profile
Visual Studio 2008 (Pre-release) Calling "transactional web services" within a series of database update calls - is Indigo the only way?
SCENARIO Suppose I call the following method in a ServicedComponent: public void DoMixedUpdates() { DoDBUpdateA(); DoDBUpdateB(); CallWebService1ToDoDBUpdateC(); CallWebService2ToDoDBUpdateD(); DoDBUpdateE(); DoDBUpdateF(); } All 6 calls perform DB updates but the middle 2 calls call "plain old" ASMX web services that each then call a component that performs DB update C and DB update D. QUESTION On the current shipping versions of Windows Server 2003, does a) .NET 2.0 with WSE 3.0 or b) .NET 2.0 without WSE 3.0 support the "transactional web service" scenari ...Show All
Visual Studio Express Editions bacis progam problems
#include <iostream> using namespace std; int main() { int age; cout<<"Type a number between 1 and 10: "; cin>> age; cin.ignore(); if ( age < 10 ); { cout<<"Yay you can follow instructions\n"; } if ( age >= 11 ); { cout<<"were going to try this again and you going to do it right\n"; } for ( int x; age < 10; ); { cout<<"Type a number between 1 and 10: "; cin>> age; cin.ignore(); if ( age < 10 ); { cout<<"Yay you can follow instructions\n"; } if ( age > 10 ); { cout<<"w ...Show All
Windows Live Developer Forums SDK Updates
Hi all- Just wanted to let you know that the SDK has been updated with several bug fixes. The downloadable CHM and the Interactive SDK have been updated; the online version at MSDN should be live later today. Thanks (and apologies) to those of you who found and reported the bugs! As always, feedback (bugs, suggestions, comments) on the SDK are weclome and appreciated. Post them here or mail to maphelp (at) microsoft.com. Be sure to put "Virtual Earth SDK" in the subject line. Cheers, Caleb Hi, I am trying to get to work some functionality related to a multilayered map. I would like figure out how to determine when a custom layer is completely loaded. Basically a multilaye ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to make a main menu?
How do I make a main menu that you see in alot of games these days I'm kinda curious... I haven't tried it yet but I think something like the following should work: - Declare a boolean boolGameStarted or boolShowMenu - Create a custom menu class or something else, ie a simple array, that holds the currently select option - Depending on the boolean, draw the menu options, e.g. strings or a sprite, and draw the currently selected option in a different color for example (ie. different color string or tint a sprite) - In your code that handles the keyboard/gamepad menu, depending on the boolean, check for input (up or down, start/enter, etc) and change the currently selected menu option in the menu class or array ac ...Show All
Visual Studio Express Editions Looping through filenames
Hello, I developed an application that creates a webpage for the end user after they simply fill in some text fields (among other fields, too). This program is a piece of a much larger application. Once delivered to the customer, it will be their responsibility to maintain the webpages using this application. The webpages represent products that they will be selling. All that said, I need to be able to create a unique filename everytime a new prduct page is created. The format of the file name is such: AM_001_BEV_ProductFullName.htm AM = AMbient product 001 = unique Ambient product identifier. Say the files are saved in "c:\Product" directory. I currently have it so that I read all files in this directory tha ...Show All
Visual Basic ComboBox Frustration: Setting a default "SelectedIndex" when adding a new record refuses to work.
Help! This is a very frustrating problem. Ok I have a typical databound Form with a bound ComboBox bound on the form Load event. I have a typical BindingSource and BindingNavigator Control with an "AddNew" button. When a new record is added to the dataentry form (i.e. not the combobox) I intend the combobox to default to the first value in the list by setting... mycombo.selectedindex = 0 I have this in the BindingNavigatorAddNewItem_Click event but it has no effect! I also tried placing mycombo.selectedindex = 0 in the BindingSource "AddingNew" event but this also has no effect. I have discovered that the "selectedindex" is somehow inexplicably changing itself back to -1 As an experime ...Show All
Visual Studio Express Editions Version
What is the most currant build for Visual Web Dev Thanks for the help!! ...Show All
.NET Development Need HELP in understanding the power of ASP.NET/C#
Hi, I am producing a Web application that must be able to upload and download files to/from the web server. These files must be downloaded to the client hard disk for future editing by the user. The upload/download process must require a minimum amount of user interaction and where possible be done fully automatically. I have achieved the uploading/downloading by writing a standalone windows application that makes a Web/HttpWeb connection for each action. The file (or in some cases just data - for the download) is then either downloaded to the client hardisk or uploaded to the webserver hard disk and the connection is closed. This is all driven from the standalone application - ie: the user selects upload or d ...Show All
SQL Server Need Performance Tips - Zip Code Locator
I have a stored procedure used to lookup ad's similar to ebay. We want to allow the customer to search based on their zip code in relation to the items location. This query works but it takes too long. We only want to return the top 100 records. It also uses indexed searching for the main search terms. Any ideas what we can do to improve performance CREATE PROCEDURE Search @SearchText varchar(200), @CategoryID int = Null, @TxtDesc bit = 0, @PriceMin money = 0, @PriceMax money = 250000, @ZipCode varchar(5) = Null, @Distance smallint = 0, @ManMul int = 1000, @ModMul int = 1000, @TitMul int = 100, @DesMul int = 1 AS BEGIN DECLARE @CenterLat float DECLARE @CenterLon float -- Earth Radius In Miles DECLARE @EarthRadi ...Show All
.NET Development Adding files to ClickOnce VB.Net application
I have two problems with my ClickOnce VB.Net application: Is there a way that one can specify a default location where the application should install How do I get the path to location of the applocation once it is installed on a clients pc The problem is that my program reference some compiled help files and an access database and need to keep track of where these files will be located once installed. I am using Visual Studio 2005 to publish the app. you mean i can hard code the application path if so, which form i should put web.config or form1 and what is the coding many thx hunb ...Show All
.NET Development downloading/reading source code from websites
I just got visual C#, had been using java, and am stuck trying to figure out how to read the source code from a public website. In java it was... URL yahoo = new URL(Site); BufferedReader in = new BufferedReader( new InputStreamReader(yahoo.openStream())); String inputLine = in.readLine() I then read the strings from that source code to extract the daily data I need(don't need help with that part). If someone could just post a few lines of code that would get the source code from a website into string format, it would be much appreciated, thanks. Hi Sven, I am pulling out my hair. I have done the above and it works perfectly except I don't get the whole site. I ...Show All
Smart Device Development Treeview.nodes.Find not found
I am tryin to use the Find () of Treeview.Nodes but my project is not able to detect the Find() and reports an error . I have .NET CF 2.0 installed and that is what my project is using .. What can be the issue As documentation states, that is not supported on NETCF. You can loop through nodes to find whatever you want instead. ...Show All
Visual Basic 2 Questions: Drag and Drop File Path AND SQL Server Update Database
1)What code would I use to get the file path of a file that is dragged and dropped into a form 2) I have a certain table represented in an application as a listbox. On the form opening, the listbox is filled with the contents of the table. How can I have it that the table is saved with the listbox items at the form closing (what code , i'll place it on Form_Closing) Yes. You may also want to modify the Drag_Enter event handler to check the data (similar to the code in Drag_Drop), and not set the effect value if the length of the array is not 1. That way you will only see a drag_drop event if they drop 1 file, and if they try to drag multiple files they will get a visual indication that they can't do this. -Scott ...Show All
.NET Development App.Config - Enterprise Library - Security Issues
Hi guys, I am just trying educate myself on the usage of the Cryptography Application Block from the Enterprise Library. When you select a symmetric algorithm and then define a key file using the Enterprise Library EXE, it modifies the contents of your application's app.Config file. When examining the app.Config file, I can tell the name of the symmetric algorithm used and the location of the keyfile. Forgive my noob understanding but doesnt this pose as a security risk Since the location and the name of the symmetric algorithm are presented in clear text How does one go about protecting this type of sensitive information within the app.config file. Is there an enterprise library method that I could use to encrypt this section of the a ...Show All
.NET Development Make a tcp packet
What is the best way to make a tcp packet and send it in c# I'm using sharppcap to do some sniffing, and filtering packet, but I need to create a packet and send it using PcapSendPacket() with a byte array or a packet, what is best and how can I do it ...Show All
