David P's Q&A profile
Visual Studio Using SymSrv Wrongly Downloads Files Locally
We were using the following _NT_SYMBOL_PATH to download symbols from Microsoft's Symbol Server: srv*\\ourNetworkMachine\debug_symbols*http://msdl.microsoft.com/download/symbols This seemed to work great, until one day I discovered that any compressed symbols we received from the Microsoft site were being stored compressed on our downstream server (ourNetworkMachine in the above example), and decompressed locally onto whatever machine was being used for debugging, in what seemed like a random directory (our best guess is that it was whatever was some form of "current directory" when starting debugging; at different times I got it in directori ...Show All
Windows Forms text on the disabled combobox
Hi, I need to make the text on a combobox that is disabled to be drawn with a black color. I was not able to find any help on this online. The drawItem seems to apply only for the dropdpwn items. Any ideas or sugesstions would be appreciated. Thank you, Vish ...Show All
Visual C# multidimensional array trouble
Why is this not working It should return a two dimensional array, but I get trouble with the two dimensional array. OutofMemory exception outofrange exception nullreference exeption In a class I have this method. public string[][] vulListbox(String query) { SQLiteDataReader reader = null; //if I don't want to initialize here; I have to initialise resultaat also in the catch block// normal what is the normal way to do I want to do in the try block string[][] resultaat; int teller = 0; int velden = 0; bool gelukt; try { ...Show All
Visual Studio Shared files are not marked with any special icon
I noticed that source safe shared files are not marked with any special icon in the solution explorer. This is very inconvinient, since anybody can forget that a file is shared and harm other projects using it! Thanks for reporting this. I opened a suggestion bug for this, but it's unlikely we are going to change this behavior for VS 2005 release. Hopefully we'll fix it in next realease... Thanks, Alin ...Show All
SQL Server job failing
Hi, After our server was moved two jobs running in our sql server since last couple of years have failed. (first job was doing the back up of production database and then restoring development database every night from that back & second job was backup and shrink transaction logs) I checked job status history in sql server agent and I found these error messages. (For first Job error message):The job failed. The owner () of job Truncate Log does not have server access. (For second Job error message) : Executed as user: NT AUTHORITY\SYSTEM. sqlmaint.exe failed. [SQLSTATE 42000] (Error 22029). The step failed. Owner of both the jobs is SA ...Show All
Visual Basic define excel table in vb 2005 oledb using excel.xls file
Hi, i am making an application that will use a access database and an excel spread sheet. It will basically save data from mutiple text box inputted by the user into both excel and access. The part of the application i need help with is below what i am trying to do is learn how to define the table in the excel tables. I have looked around and have had no progress with defining tables field. Below i have included in the comments the definition type for each column. If possible I would like to have a complete list of excel definition for the field I can use with excel oledb. Any help will be surely appreciated. thx. example: ...Show All
Visual C++ Scroll limitation issue
hi, I have recently taken over the a project for someone, one of the issues we have come across is that you cant view an entire document, in a window with scroll bars if its really big. I track this problem down to the ranges on the scroll bars. Once the range of the scroll bar exceeds 32000 pixels, it is set, by my ex-colleague back to 32000. So when you view a document, depending on the zoom factor you may only see a fraction of the document (until you let the zoom, zoom out to say 25% and you can see the whole document but its obviously too smal. So easy fix I thought just not have that reset in there...wron ...Show All
.NET Development COM vs Component
Hi, I am looking at developing a component within .Net which can be distributed to non-Microsoft (Java, C, Delphi) design environments. Traditionally, this would be performed through distributing the code as a COM. According to Microsoft's website, it is suggested support for COM is being phased out, and all future development work should be done as a component. Since components appear to be incompatible with non-Microsoft design environments, this recommendation seems to defeat the purpose of originally using COM's. Could someone please confirm: a) Components are actually incompatible with non-Microsoft design environment ...Show All
Visual C++ Portable C++/CLI programs
Hello, is it possible to compile C++/CLI code working with unmanaged pointers into a pure IL assembly that doesn't contain P/Invokes I tried /clr:pure, yet there are still several methods (GetProcAddress, ReleaseActCtx, ...) P/Invoked from kernel32.dll. Hello Tomas, Short answer: There's no way to create pure IL image that doesn't have P/Invoke implemented functions. Long answer: When you compile your code /clr:pure the image will run on any 32bit architectures without problems. If your concern is to be able run the image on 64bit as natively then that would be a problem, however you should be a ...Show All
Smart Device Development Lifetime Data Calls
Hello everybody! When I access the Call History option, in the Windows Mobile 5.0, exists a timer Lifetime Calls. My question is: Exists a timer that registry the lifetime calls of GPRS data If yes, how am I active this option Thank's Mauricio We do not have a counter for data calls. There are 3rd party products (from SPB and others) that provide this capability. ...Show All
Visual Basic VB vs C#. How capable is VB compared to C#?
I need some clarification please. I am learning VB.NET right now and have a co-worker who has a very strong technical background and feels very strongly that learning VB is a "waste of time in all respects" compared to C#. I don't understand this point of view. Since VB is a .NET language does it not posses the same capabilities as C# Am I on the wrong track I really enjoy the VB.NET syntax and am picking it up quickly. Here's my background ( being totally honest ). I am self taught, I learned C++ back in the late 90's. From there, I moved to C# because ASP.NET is the best platform availabl ...Show All
SQL Server NTEXT Data Type Problem
Depends on how you process them. If you can, I would recommend upgrading to SQL Server 2005 as soon as it comes out (and now develop using the CTP version). How do you process it If you use OpenXML, I would recommend the ugly work-around of writing an ADO app that gets the XML through the stream interface and pass it back as a parameter to a stored proc that then applies the T-SQL logic. You then use the sp_OA stored procs to invoke the ADO code [I said it was ugly]. Using SQL Server 2005, you can either use the XML datatype or use the new max-types that can be specified as variables. &n ...Show All
.NET Development Start the database service?
I know the answer to this question may be "you can't do that", but I thought I'd give it a shot. Is there any way to start a SQL Server/SQL Server Express instance on a local machine from an application which connects to a database therein Or does this violate some security rule I've experimented with creating an installation package of a VB.NET/SQL Server Express application and I'm very happy to see how the package will download not only the 2.0 Framework, but SQL Server Express too. But what if the user shuts down the database service without knowing what it is I'm hoping there is a way that the database applica ...Show All
Visual Studio Express Editions Small textbox, read file error
Hello I'm testing a code verification (people entere a code and then the code gets written to a file and read by the program to change labels and acces to certain parts of the program). This is the code I used: Dim var1 As String TextBox1.Text = var1 My .Computer.FileSystem.WriteAllText( "c:\test.txt" , var1, True ) Dim filereader As String filereader = My .Computer.FileSystem.ReadAllText( "c:\test.txt" ) If (filereader) = ( "12345" ) Then TextBox1.Text = "testuser1" But when I press the button that makes this run, the file is created, the text but the text (var1) is not written. I ...Show All
Visual C++ LINK.EXE BUG: /OPT:NOREF option doesn't work!
My program contains static objects whose constructors are supposed to run at the beginning of the program, but otherwise those variables are unreferenced . The problem is, when I put these variables into a .lib file, they get completely optimized away and never appear in the resulting .exe! My understanding is that /opt:noref is supposed to cure this, however, it has absolutely no effect. I also tried __declspec(selectany) on the vars, also no effect. The same behaviour occurs with VC6, 7 (2003) and now also 8 (2005 Express). This looks very much like a linker bug. Is there any workaround to this problem (Such as additional linker fl ...Show All
