Nubby's Q&A profile
Visual Studio 2008 (Pre-release) svcutil and proxy authentication
I'm currently sitting with a proxy between me and the internet that requires authentication (Ntlm AFAIK) and if I just invoke svcutil e.g. like this: C:\temp>svcutil http://services.msdn.microsoft.com/ContentServices/ContentService.asmx wsdl I get this error: The remote server returned an unexpected response: (407) Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. ). The remote server returned an error: (407) Proxy Authentication Required. How do I make svcutil.exe cope with this situation (and the generated proxies also) we discussed similar topic before here,I am not sure this fetaure is available in june ctp or not,I will c ...Show All
Smart Device Development [System.Serializable]
I'm trying to port my .net 2.0 class library to compact framework, but it shoots me an error for having the [System.Serializable] above my class. Is there something else I should be using instead If you use binary formatters, try http://gotcf.net . - BinaryFormatter compatible with the one found on full .net framework ...Show All
.NET Development Converting string to double
I have an input flat file that I am working with. One of the fields is an amount and is displayed like this: 000012500 I need this string to end up in SQL as 125.00. I can't seem to get Convert.toDouble or Double.parse to work for me. Does anyone have any suggestions Thanks! I guess I thought the convert statement would assist in my formatting issue. The fix is quite easy once I understood that it just needed to be formatted: public double BuildAmount( string sAmount = "000012500") { string sBeginAmt; string sEndAmt; sBeginAmt = sAmount.Substring(0, 7); sEndAmt = sAmount.Substring(7, 2); sAmount = sBeginAmt + "." + sEndAmt; double dblAmount = ...Show All
Visual Studio Express Editions a newbie needing help with random numbers and the chi square test as described by Donald Knuth
I'm a sophomore in high school and I'm doing a science project on random number generators (specifically i'm comparing Combined Linear Congruential Generators to Multiply With Carry Generators). In order to do this i'm writing a console application that will (1) generate the random numbers and (2) apply statistical tests (from The Art of Computer Programming, Seminumerical Algoritms, vol. 2 by Donald Knuth) to these numbers. My problem is with applying the chi square test, I've checked my code with the formula in the book time after time and it looks to be the same, but the numbers don't make sense when compared to the values in a chi square distribution table. The numbers I get for X 2 are: 1481974.4496, 1111763.1976, 1255825.4114, and ...Show All
Visual Studio Team System Checkin changes on behalf of another user
I cannot seem to be able to checkin pending changes performed by another user (schan)using the tf following command: tf checkin /author:schan $/Adventureworks/TPOnline/VBProjects/test.frm /login:mchan,mchan TF keeps coming back with the following: There are no pending changes. No files checked in. But there are pending changes and I have administrative permission and should have permission to checkin other users' changes. I have successfully undo other users' changes. Is there something else I need to do tf checkin /author works the opposite way from what you're trying. It checks in files from your workspace on behalf of someone else. If the edits are in their workspace, you need to unshelve ...Show All
Windows Search Technologies Outlook folder searching
Hi, I have been using a Lookout for a long time and this week I have got meself a new hard drive and make a new installation of the complete system. I have installed the WDS to give it a try, but it gives me below error message when selecting the Outlook folders I want to index in the "Windows Desktop Search Locations" dialog box. "One or more of the Outlook folders you have selected is populated by an add-in program. Indexing these items may cause unexpected behaviour in Outlook. If you experience any problems with Outlook, please contact the maker of the add-in program for support." Please note that I do have a standard installation of Outlook 2003 SP1 and the only add-in I can think of is a McAfee VirusScan ...Show All
Visual C# Reversing Rows of an Image in a Byte Array
My core dilemma is to read each line of an image and then flip those rows bottom to top while keeping the columns of the image the same. I know that Array.Reverse() is close to what I need, but it messes up the columns. The reason why I need to do this, is because .bmp images are apparently "bottom up" and my other functions don't understand that the image data is "bottom up", so I need to find a way to account for this "bottom up" structure. The only general advice that I received was there should be 2 for loops and for each column (0 to width) do (row * linedelta + column) and swap that with (height - current row -1). But I'm still confused on how to write the code. My Code: int Line; long LineDelta ...Show All
Software Development for Windows Vista Persistence Services and DTC
I'm using a TransactionScope Activity that required me to add a Persistence Service to the runtime ( I understand this) However, when I add the SqlPersistence Service to my runtime, I started getting DTC errors. I'm running a WCF Service hitting the SqlPersistence DB on my local machine accessing data on a separate SQL Server box. Is it a requirement to have DTC enabled on my local machine and the SQL server Is this strictly because I don't have the my local SQL server and the network SQL Server linked Any help would be appreciated. Thanks! I have the persistance table and the data on the same table on a server, when I whant to execute the Unload() I have and error than Says that the transaccion administrator has desabled my soport ...Show All
.NET Development Max. Socket Connections
Is there any way to know the maximum socket connections available to open in windows. Could I monitoring those connections Help!!!!! Thanks for help.... Brokfstrel wrote: Is there any way to know the maximum socket connections available to open in windows. Could I monitoring those connections It depends on the Ports availble on your computer which are not already being used by some other program. You want to monitor which connection and what do you mean by Monitoring Connection Best Regards, ...Show All
Visual C++ include XML file into a class at compile time
Hi All, I have an XML file that must be included (or linked) into a class object at compile/link time. Basically, we cannot send this file along with the product and read the data from the file into memory at runtime. My question is, is there a way to tell the compiler to read the content of the file into a CString, or a string buffer at compile time My project file is a VC++ ATL project and does not use .NET framework. Thanks You should add the resources to a dll or exe project, as they will not be linked with a static library. Alternatively, you can take the compiled resources from the lib and add it manually to the linker options of your exe-proj. I'd go with the first alternative, if possible. ...Show All
.NET Development .Net Framework installation problems
Hi, This is my first posting - so appologies if its in the wrong section. I require assistance with the installation of V2 . net x86 framework installation. To date I have had no problems installing V1 or V1.1 patch. However when installing V2 I get an error message sayin the the installer cannot access the Microsoft_VsaVb.dll file. I have a massive logfile (8Mb - yes 8Meg) to compliment the problem. I have uninstalled zone alarm. I diabled my Antivirus (AVG - girsoft), I disable all programs in the system tray just to proceed - but still no luck. I require V2 to run some new appliations and realy would appreciate some assistance. Thank you . Regards, Marcel It doesn't solve anyt ...Show All
Visual Studio 2008 (Pre-release) Does the .NET 3.0 July CTP include ADO.NET 3.0?
The .NET 3.0 July CTP can be downloaded from here: http://www.microsoft.com/downloads/details.aspx FamilyId=62057A6F-185F-41DB-ABE5-678F6FC388F0&displaylang=en Does this include ADO.NET 3.0 If not, when ADO.NET 3.0 is released, will it be part of a .NET 3.0 CTP ...or a standalone CTP Michael. Jesus Jimenez - I feel renaming .NET 3.0 back to WinFX or something else this late in the cycle will cause EVEN MORE confusion. It was a mistake to name it .NET 3.0 - no qualms about that, but let us just count our losses and move on for now, and hope that MSFT will consider asking their product teams before making silly name changes going forward. Sahil Malik http://blah.winsmarts.com ...Show All
SQL Server ReIndexing all Tables in a Database
I need to reindex all tables in my database and would like to do this without using a Cursor. What is the simplest way to achieve this. Cheers Nat You could also look at SMO for this operation. I have been working with it and have been very impressed. Here is a link to the database class, it will be a good starting point. http://msdn2.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.database.aspx ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Simple Game
I can't wait until tomorrow. I have a idea for a hope a simple game which I believe could be a really addictive live game. I know I can't do multiplayer so I'll will be working on the single player game. I have no programming experience shock horror. So here it is. Im assuming this is going to be 'click and play' and then program something like Gamemaker. Will it be easy to swap a characters charistics ie basically swapping from one type of thing into another. I don't want to give too much away! I really do think this could not be acually ground breaker but really addictive. There isn't another game of its type out at the moment. I dreamt about it last night :) AFAIK, there will be nothing bu ...Show All
Windows Forms DataGridView wont show new entry..until i run it again
Guys..i'm new here...and new with VB2005..im having this problem..that my datagridview wont show the new entry(i have a reg page) until i rerun the program...can anyone please look it up..tnx very much..could really use some help.. Form1.vb: Imports System.Data.OleDb Public Class Form1 Private AccountsDataSource As New BindingSource(My.Application.DAL.dbDataService, "Accounts") Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.dg.DataSource = Me.AccountsDataSource End Sub Private Sub dg_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dg.CellContentClick End Sub Private Sub Fill_Click(ByVal s ...Show All
