uncbiz's Q&A profile
.NET Development Integrated Security with httpwebrequest
Hi, I am working on an vb.net compact framework application that runs on Windows Mobile 5. I'm using httpWebRequest to authenticate to a web server as follows: mywerequest.Credentials = New NetworkCredential(myusername, mypassword) The virtual directory that the app communicates with is set thru the IIS to only allow Windows Integrated Security. The reason I use NetworkCredentials instead of the DefaultCredentialCache is because the user doesn't login to the device. The functionality works great the way I have it. My question is, can I still be confidient that my application is only sending a hash over the network for authentication and not a plain text password, even though I'm not using it the way it is normally used ...Show All
Smart Device Development Socket connection in .net CF
Hi, I'm trying to establish a simple socket connection between my pc (server) and my HP ipaq (client). I downloaded the sample synchronous server and client programs from the msdn. The programs work fine when both the server and client are running in the PC. However, when I run the client proggram in the pocket pc, it throws a socket exception. Can you tell why it happens. Also, my device gets connected to the internet using Wi-fi connection. But the moment I use a USB cable to connect it to my PC, to deploy my program and test it, the wi-fi connections get disabled. Only the ActiveSync connection remains. Can you tell me why it happens Any help to help me solve these problems is much appreciated. Thanks, Archana ...Show All
SQL Server Disarming IDENTITY generation
Ok, suppose I have created a new table with an Identity column, but I want to load the table from an existing table and I can’t let SQL Ev reset the Identity values. In SQL Server I can turn off Identity generation using SET IDENTITY_INSERT biblio.dbo.authors OFF Is there an equivalent in SQL Ev My next question is (if this does not work), can I use ALTER TABLE to disarm the Identity value and re-arm it after the load I would like to know how can I make it work using the alter table statement since I tried and it did not work.I tried using the SQL Server Editor in Visual Studio and at runtime .None of those options seems to work. Thanks in advance ...Show All
Software Development for Windows Vista New Screencast: Introduction to State Machine Workflows
Folks, I finally decided to get around to doing a screencast. Aside from a few problems where my microphone turned me into a heavy-breathing stalker, I think it turned out quite well. It's 24 minutes long, so it may take a few minutes to download if you're not on a good broadband connection. Click here for the blog entry and the screencast . Enjoy! I have to agree that passing the Local service into the workflow isn't a good thing. If you want that service from an Activity you should call ActivityExecutionContext.GetService - services should live in the host layer - not be serialized and sent into the workflow. I am not against sending in something as the "sender" argument - just not that local service. ...Show All
SQL Server MDX Queries and Parameters
Hello, I'm kind of confused. I have been using Analysis Services 2000 and Reporting Services 2000 for quite some time. I was looking forward for the improved support of MDX in the 2005 version. Creating queries has been improved but why is it so difficult to use parameters in a query I want to use simple parameters as discribed in this article: http://msdn2.microsoft.com/en-us/library/ms155824.aspx but is doesn't work. I get a message saying the my parameter is not defined. Only when I define a Variable in the "Query Parameters" form it works. But creating such a variable also automatically creates a report parameter which is not desired. The only way I figured out to use query parameters without defining variables is to build ...Show All
Game Technologies: DirectX, XNA, XACT, etc. SpaceWars example, don't understand a scope thing
Ok, i've been trying to solve this in my own game classes, and I'm wondering how exactly the SpaceWars game does it. for instance, if you look at Font.cs, and go to: public static void Draw( FontStyle fontStyle, int x, int y, string digits, Vector4 color) { float xPosition = x; FontInfo fontInfo = _fontInfo[( int )fontStyle]; for ( int i = 0; i < digits.Length; i++) { //Do't draw anything if its a space character if (digits != ' ' ) { //Look up the character position int character = fontInfo.Characters.IndexOf(digits ); //Draw the correct character at the correct position batch.Draw( SpacewarGame .ContentManager.Load< Texture2D >( SpacewarGame .S ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to disable driver anti-aliasing
I need to preserve the exact colors (and thus, hard edges) when I read back the rendered image via an offscreen surface filled with GetRenderTargetData. There is an option in the control panel where the driver forces anti-aliasing for all applications. If I do not set the quality-performance slider correctly, I will get anti-aliasing. Is there a way (in code) to prevent that Set your multisample type to None in your presentation prameters, and set anti-aliased line enable to false in the device render state. ...Show All
Visual Studio Express Editions geting numeric data in and out of text boxes
Hello, Summary: How do I set up text boxes so that when I enter numeric text in one box (named X_Test_Input) , it will raise events that the other box (named X_Accel_Raw_Value) will collect/consume and display the data in that second box. Overview: This is my first attempt Windows programming. My goal is to collect six numbers from an embedded device over Ethernet (five to ten times a second) and display them on my computer so as to have them available for further processing. In dividing this into small steps, I first want to be able to get values from somewhere and display that data. Only after I get the basic windows display part of this working will I attempt to get the data from the embedded device. In my ...Show All
Windows Forms Non ASCII characters
Hello, I need to output some non-ascii characters in some of my strings. Basically, chemistry formulas like H2O, NH3 etc. I need subscript 2,3, and possibly 4. Unicode defines codes 0x2070 through 0x2094 for a full set of super- and sub-script digits. See this document as a reference. The trick is to find a font that supports these codes, the fonts on my PC (USA) do not. Try using the links in that document... ...Show All
Visual Studio Tools for Office Transfer windows form contents to a word File
I am having a VS .NET C# windows form containing about 20 textboxes, 20 labels and 5 combo boxes. I want to have a button on the same form. On click of this button i want to tranfer all the contents of this form to a word document and it should show the word document containing whole data. Also there should be no versioning problem with word version. User can have any version of office installed on the system or not installed at all. Gaurav Funny. We all earn our living by writing solutions. Why would we email one to you for free... In any case, this is not the appropriate venue for getting assistance on how to automate the Word application interface. You should ask for help here http://m ...Show All
Windows Forms getting error msg "The folder path 'v4.0 (DHR 10/14/04)' contains an invalid character"
First time building a setup project so bear with me. Not doing anything fancy here just a basic setup project for a console application though not a windows app. When I run the msi I get the error ""The folder path 'v4.0 (DHR 10/14/04)' contains an invalid character". If I just hi light the msi file in an explorer window and look at the file properties I see the same 'v4.0 (DHR 10/14/04)' value is being used in the Author field for the MSI. So I assume the setup project is pulling this value from the Author field. However, I didn't set that Author field value and have no idea on why it is trying to use that value as an install path. I would just erase the values out of the author field but I have no idea on where to go to do that. Any ide ...Show All
Commerce Server OrderContext from a non Web application.
I have been able to create a CatalogContext, Profile, etc. contexts. But I don't know how to create an OrderContext. All the samples and documentation that I have seen reference CommerServerContext.Current which in a non-Web application is null. How do I create/initialize an OrderContext object so I can amonung other things manage baskets, payment methods, orders, etc. It seems that all of the objects in the Runtime namespace are a mystery to me as far as a non-web application. Thank you. Kevin KevinBurton wrote: I notice that CatalogContext etc. can also be initialized with just the site name rather than a URL to the cooresponding web service. This certainly seems easier. What are ...Show All
Windows Forms Filtering data source for a combo box in a datagridview
I have a form containing a datagridview in which I want to display a subset of the data table on which it is based. I have achieved this by using the Filter method of the bindingsource. In one of the columns of the datagridview I have a combobox which uses the same binding source but the filter is not being applied. How do I get around this or what am I doing wrong Thanks Thanks. I can see what I've done wrong. In fact I've discovered that you can apply the filter to more than one field by saying "age = 24 AND height > 10". ...Show All
Visual Studio 2008 (Pre-release) Relationships and inserts
Below is some code existing in an entity. Whenever the user changes the GroupName property value via user interface, I'm expecting the GroupID value to be updated upon submitting changes. However, as soon as submit changes the data context attempts to insert the newly set view definition group into the appropriate table. Since there's a unique index on the group_name field in that table, I get an error. Can anyone point me in the right direction as to how to have a relationship like the one below behave like I expect it I understand there is a similar thread at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=685935&SiteID=1 , however, I believe the way in which I am setting my relationship i ...Show All
Visual Studio Team System Data truncated to 255 characters when copying TFS-Excel form
Hi Guys, Possibly an old question, but I can't seem to find the answer anywhere, and it is quicker to ask. I am trying to migrate data from our old Problem Tracking system to TFS. I have jumped many hurdles and have a working template and the process is almost complete. I have created two spreadsheets, one using a query to get data directly from our old database, and another directly generated from TFS. Copying and pasting from one to the other seems to work perfectly (some minor transition flow validations aside). However! I have found that the longer fields, eg: Description, are being truncated to ~255 characters! Is there any way to resolve this problem NOTE: If I manually go through each and every field in the original, edit the cont ...Show All
