monkeynova's Q&A profile
Commerce Server Accessing Addresses in Total pipeline
I'm trying to write a custom pipeline component, I've read all of Max's posts on everything I could possibly want to know about pipelines. I'm starting from the MinMaxShipping SDK example and am running into a problem. Basically what I want to do is assess at the Tax stage whether the billing address is in the same state, and if so apply a standard state tax rate to the entire order. I finally have been able to access an address ID, but the Addresses IDictionary (setup in the OrderPipelineMappings.xml) always has Count of 0. I had considered getting the address and putting it in the context, but the pipeline is being called from the BasketHelper.RunTotalPipeline() method and I am not certain (A) whether this method is doing anything else ...Show All
Smart Device Development GPRS connection in real device
Hi,everyone.I wrote an TCP client to connection the public network.I tested it successful in emulator. But when I tested it in real device,it failed.Then i added the connection manager,it seems that I can attached GPRS successful,but the tcp client can't connect the public network,can anyone help me Here is the code: ConnMgrEstablishConnectionSync//establish an Internet channel successfully tcpcilent.connect("220.34.24.48",9999) tcpclient.sendData() Thanks for your help. I have found the error.I opened the wrong connction. It seems that no matter what connction you open, the icon shows that it is a GPRS Connection ...Show All
SQL Server Cannot get CREATE LOGIN from a Windows group to work
I have created a database fronted by an ASP.Net application. It's all nice and simple, and I only need a very simple level of security (and even that is only as a protection against accidents rather than maliciousness). My intention is that users connect using Windows impersonation (<identity="true">), with the database creator having full access and the public group (I'm talking SQL groups here) having specific premissions granted on specific tables. If I set <identity="false"> on my XP box the application connects to the database as [MACHINE\ASPNET]. This is easy to set up access for - I simply do a CREATE LOGIN [MACHINE\ASPNET] FROM WINDOWS and then within the actual database do a CREATE USER [MACHINE\AS ...Show All
Visual Studio Team System Feature Request - Schema Compare
One nice feature would be "Next Difference" and "Previous Difference" buttons (and associated hotkeys) to quickly jump through differences. This is a pretty common feature in File Comparison utilities (such as ExamDiff). This would be extremely helpful when you are comparing extremely long stored procedures, objects, etc. I see. Your suggestion applies to Object Definition window. Good suggestion. I will bring it to the attention of other people. Thanks Sachin ...Show All
.NET Development GetResponse method from System.Net.WebRequest
Hi I've written this code for retrieving some web pages using the WebRequest and WebResponse methods: private void webDownload() { foreach (WebPage w in webList) { // Initialize the WebRequest. WebRequest myRequest = WebRequest.Create(w.Url); try { //get the response WebResponse myResponse = myRequest.GetResponse(); //the code for the decodeData method is taken from [1] String htmlContent = decodeData(myResponse); myResponse.Close(); //here I'll do some tiny operations with the html.. // .... } catch (WebException e) { if (e.Message.Contains("(4 ...Show All
Visual Studio Team System How to manage multi users in load test ?
Hi: I have a multi-user(with different logins and different rights) web application that everytime creates a unique product. I thinking about how to manage users to generate the load. My thoughts is: 1) To make one script running through the all process with each user login/logout. 2) To make a scripts for each user and synchronise them with sync points. Any other suggestion what is the best way to generate load fot that application Flow of the users in the app: Proc. |----------------------| user1 |--->| |--->| user2 |--->| user3 |--->| user4 |--->| Thanks, K. I would suggest option #1 and you can use data binding in your web test and use data binding fo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Asteroid Defense. -- That's an EXE!!!
In this game you are a ship protecting a planet from incoming asteroids. Controls: 360 controller: Left Joystick -- Move ship left and right. A -- Shoot Right or Left Trigger -- Change Weapon. Keyboard Left and Right Arrow Keys -- Move ship left and right. Up and Down Arrow Keys -- Change Weapon Space -- Shoot The weapon you are using is shown in the top left corner. The stronger the weapon you use, the less points you get for destroying an asteroid. Levels progress at timed intervals and more and more asteroids come down. You lose when one of them reaches the planet. Screenshot: http://www.rocketsoft.gm-school.uni.cc/uploads/ADScreen.JPG Game File: http://www.rocketsoft.gm-school.uni.cc/uploads/AsteroidDefense1.1.rar All in ...Show All
Visual Basic vb inherited form: cannot see from which form it inherits
If I look in the vb code of an inherited form I cannot see which form it inerhits from. I have to look in the hidden file ...designer.vb to see the inherit statement and to read the name of the base form. Is that normal Maybe normal for some, but it developerfriendly it is not. Tell me how to distinguish in VS2005 at a glancein the code if a form is inherited or not You have to select 'show hidden files' click on the plus sign under the form to open the designer file code and then see it. ...Show All
Windows Forms Access Checked Items in Databound Checked ListBox
I am using a checked listbox that I populate by using databinding. On a button click event, I want to do some processing based on which items were checked in the control. I can get the indices of the checked items using: this.LocationLB.CheckedIndices But I'm having trouble figuring out how to get the values of the items. If I do this: MessageBox.Show(this.LocationLB.Items[item].ToString()); The output is "DataRowView". Any ideas ...Show All
Visual Studio Team System DoNotDeclareStaticMembersOnGenericTypes again
There was a post more than a year ago: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=84539&SiteID=1 . Any news on this rule Alex, This first fix made it into FxCop 1.35, however, the fix for protected members did not. I'm sorry for the inconvenience, this should make it into the next version of Visual Studio Code Analysis and FxCop. Regards David ...Show All
Visual C++ Compatibility with VC++ 6.0
using when code written in VC6.0 in VC 2005 express changes the workspace files After the changes are applied will the project be fine in vc 6.0 That depends... The project file (.vcproj) that Visual C++ Express uses is incompatible with the workspace and project file format uses in VC6, so any changes you make to the project itself in VC++ Express will be incompatible with VC6. Aside from not trying to do this... would be to manually make changes on either side... or use a converter. When it comes to a converter I’m afraid that I have yet to see one that can go between VC6 and 2005... most simply work between 7.0 and 7.1. ...Show All
Visual Studio Team System Unit Tests - Test generation settings
How customizable is the 'Naming settings' in the 'Test Generation Settings' dialog of Visual Studio Team Test edition for creating tests For e.g. the default naming setting for a method name in Team test's test creation wizard is [Method]Test. I however want to name the method test for a method that takes in 2 int parameters as [Method]Test_Int_Int and a different method with the same name that takes in a double, and an int param as [Method]Test_Double_Int. The default naming generates [Method]Test and [Method]Test1 as test names in this case. Thanks. in http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvs05/html/UTFwVS05TmSys.asp it said that, "With the Beta 2 release of ...Show All
.NET Development C2664 Error with SSPI
When I rebuild by release mode, I got an error. "error C2664: 'InitializeSecurityContextA' : cannot convert parameter 3 from 'SEC_WCHAR *' to 'SEC_CHAR *'", but rebuild by debug mode, can build it succeed. Paste code: SECURITY_STATUS sResult = InitializeSecurityContext( phCredential, NULL, const_cast<SEC_WCHAR*>(pwszServerPrincipalName), reqContextAttributes, 0, SECURITY_NATIVE_DREP, NULL, 0, this->contextHandle, &outBuffDesc, pulContextAttributes, &tsLifeSpan ); ...Show All
SQL Server Distinct count with where clause
Hi there I've little experience with MDX and would appreciate any help. I have a distinct count of a fact table of customer_id but I want a second measure where the distinct count has a where clause, where revenue(measure) >0. Both of the fields are in the fact table. Thanks in advance. Derek Hey Deepak Thanks for the reply. Yes I'm using 2005. Wow I wouldn't have ever thought of that so are you suggesting that I have just the player_id date and revenue in this second table, would I remove revenue from the first table Also how will this affect performance seeing that I'm almost doubling the amount of fact rows. Cheers, Derek ...Show All
.NET Development How to: Create a web UI that would mimic ClickOnce functionality to deploy and install MSI's on remote server(s)
Any help would be greatly appreciated or maybe even using WMI with a web UI. ...Show All
