Jvtroyen's Q&A profile
Visual Studio 2008 (Pre-release) "yield enumerate"...
(Slightly off-topic, but it at least deals with enumerations.) Lately, I've found myself using the following pattern: public IEnumerable<T> Foo(IEnumerable<T> values, IEnumerable<T> moreValues) { foreach (T t in values) { yield return t; } foreach (T t in moreValues) { &nb ...Show All
.NET Development I get an invalid character erorr when trying to access an asmx file from internet explorer
I get the following error when trying to access the asmx file for a web service I created. The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. I have the same problem and could not find out why. I have Pro XP, IIS 5.1 and .NET 2.0 on my laptop. I can run the web service in Visual Studio 2005 without any problem. Then i create ...Show All
Visual Basic VB6 program running on Citrix
I'm creating a program that will be ran over Citrix but I can't get the data from SQL Server to display in the program. It works fine just running it but not over Citrix. Which is the best way to bind data in the program to run over Citrix ADO, ODBC There are other third party programs that also run on the Citrix Server but I don't think that they use windows authentication. ...Show All
Software Development for Windows Vista Outlook issue in Beta 1 Build 5112
Is any one else having a problem with Outlook 2003 under Vista Beta where you are connected to the exchange server but it will not synchronize the public folders and gives an error of 0x80040115. This happens whether I have my exchange set for cached mode or not, and also whether I have it set to prompt for a password or not. This didn't occur in my exhange profile under XP and it doesn't seem to matter whether I delete the email acc ...Show All
Windows Forms DrawRectangle doesn't work?
Look at this code: protected override void OnPaint(PaintEventArgs e) { base.OnPaint (e); Rectangle rect = new Rectangle(100,100,300,300); Rectangle rect2 = new Rectangle(99,99,301,301); Pen pen = new Pen( ...Show All
Visual Studio Team System Source Control for documents
What is the way to keep the documents included in the project document libraries under source control The team project library uses Sharepoint, which has some rudimentary source control features. If you want to store documents in TFS Version Control proper, use Source Control Explorer just as you would for any other file type. ...Show All
.NET Development CoCreateInstance is called in VS 2005 and Multithreading, Urgent help !!!
Hello folks or guys from MS can help, My code structure like the following using VC++ : CIrDlg::OnInitDialog(){ ..... m_pWaitForMessageThread = AfxBeginThread(WaitForMessage, this ); //create a thread ..... } ClrDlg::WaitForMessage(){ AxCOM::Class2 * pObj = new AxCOM::Class2(); //AxCOM is managed component; hRes = CoCreateInstance(clsid,NULL,CLSCTX_ALL,iid, reinterpret_cast < void **>(&pObj)); ...Show All
Visual Studio Express Editions Random Letters
How do I get a Random Letter I think I need to first get a Random number, then have the number = a Letter i.e A=1, B=2 etc but how do I do this This is shorter Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim intLetter As Integer Dim arrNumber(0 To 25) As Integer Dim Number As Integer Dim i, y As Integer ...Show All
.NET Development MaxRequestLength - is there a maximum value?
Hi, 1. In web.config I have set MaxRequestLength to 10000. I believe this value is the size of content that can be transferred using web services.. am I right 2. Is there a maximum value that can be set 3. What about performance as this value increases Does performance get affected by this value Thx, Srilatha I was curious about this as well. The limit seems to be 1907MBs in my upload APP. ...Show All
Visual C# AppSettingsReader and GetValue Problem
The following won't build and is driving me nuts! AppSettingsReader myConfig = new AppSettingsReader (); MyConnectionString = myConfig.GetValue( String MyConnectionString, Type String); Something is out-of-whack with my parameters to GetValue. I know this is pilot error. Any suggestion would be appreciated. DB Did you initialize MyConnectionString somewhere If so, try the following lines: string My ...Show All
SQL Server How to make this simple SELECT query perform faster
Hi, I have the following simple SELECT query: SELECT * FROM TRX_LAPD But the problem that table TRX_LAPD is very big. Althoug, I am using this query in a Network envirenment. If I implement this query inside Microsoft SQL Server, the first time is somehow slow (40 sec), but becasue of the caching cabability the next time is very fast. The thing that I am using this query in Visual Web Developer, so to be accessed by other users in the local ne ...Show All
Visual Studio Team System Import Tool from ClearCase
Will TFS have an import tool to allow one to import ClearCase/ClearQuest migration to TFS And if so will it preserve the history of the files, labels, etc That article talks about other tools (for example CVS, RCS, Subversion) but not ClearCase! ...Show All
SQL Server Combine Data and Split into separate txt files for each header/detail row groupings
I’ve created with the help of some great people an SSIS 2005 package which does the follow so far: 1) Takes an incoming txt file. Example txt file: http://www.webfound.net/split.txt The txt file going from top to bottom is sort of grouped like this Header Row (designated by ‘HD’) & ...Show All
Smart Device Development eVC3 and eVC4 bomb when loading projects
I'm trying to get eVC and eVC4 working on my main Win2K box. (Everything works fine on another machine). The IDEs each start properly. However, when I open any workspace, I get the following: eVC4: Instruction at "0x780104ac" referenced memory at "0x0000000". Opening the debugger gets "Unhandled exception in Evc.exe (MSVCRT.DLL): 0xC0000005: Access Violation" eVC3:Instruction at "0x510b2daa" referenced mem ...Show All
Visual Basic Excel 2003 Row Limit?
Title says it all. Thanks. ...Show All
