MichaelB's Q&A profile
.NET Development Default value for a type T
How do I determine what the default value of an arbitrary type T is ...Show All
.NET Development Sql Connection Hang
Hi, I am using .NET 2 (beta2) and are having problems with using a SqlConnection. I have created a test application that opens a sql connections, gets some basic data and then closes the connection. When i run this application as the administrator it works fine. However if i run the application as a standard user the application hangs indefinatly on SqlConnection.Open(). I dont get any time out or any exceptions. It just hangs there. I am using SQL Authentication. I have tested this on many computers and the same happens. My main issue is getting this to work on Windows2000 Server (Sp4). thanks Arran ...Show All
SQL Server Using stylehseets on reports
Hi, Is there a way i can use class and stylehseets on "reports" not the report viewer or report manager It is very tedious to provide entire formatting for each textbox field on the report. Thanks. Goto report server folder and modify the CSS file according to your requirement. <<ReportServerFolder>>/Styles/{HtmlViewer,SP_Full,SP_Small} ...Show All
Visual Studio Express Editions Where to declare variables?
I apologize if this has come up before, but I'm new to this forum. I have been programming for almost 20 years, in QuickBASIC, Visual Basic and now VB Express, but I don't do a lot of programming, and the stuff I write is very basic (no pun intended). My typical program consists of a few screens where the user enters data, hits a continue button, then that screen goes away and another screen comes up, either to enter more data or to display results. Very simple stuff, but I'm having a really hard time getting started in VB Express, even though I've done a lot of searching and reading. I feel kind of like I have a new car ma ...Show All
.NET Development FTP application problem
Hi, I've noticed in other FTP applications that they are able to retrieve a remote file list with other attributes concerning the files, such as size, date modified etc. All this quite quickly. Does anyone know how this is done. I am able to send an FTP command to get a file list but then to get the size information I am sending an FTP command for each file. I'm putting everything in a listview control and obviously this is taking some time. Compared to other FTP software mine isn't really living up speed wise. thanks for any help, Chris Hi Sean, Thanks for your answer. I have tried t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. (C++) DXUT & ID3DXMesh not rendering. Also crash in dxutenum.
Hi, I was reading over the DX documentation for C++ and came across the DXUT framework. Thus, I gave it a try and whipped up an example using their VS.NET project installer. The example is basically the mesh tutorial. The problem is that the mesh does not render on screen. I have played with many parameters such as the view matrix and far clipping plane, however, nothing has prevailed. Also, the solution compiles with no errors/warnings. However, the program does crash. I went through the debugger and it throws an Unhandled exception at 0x0044d08b in demo.exe: 0xC0000005: Access violation reading location 0x00000009 when a poi ...Show All
Visual Studio ToolBox Tool Window Missing
I have a VSIP package with a form. I want to add controls to the form but the ToolBox Tool Window item is missing from the View menu. Do I need to reinstall KJ, In Whidbey the "Reset Window Layout" command has moved to the Window menu. Do you have that If you try it, does it fix the Toolbox window appearance problem Please let us know how it goes. Thanks ...Show All
Visual Studio 2008 (Pre-release) ... like in Ruby
Is it possible to extend int (simple types) to be able do something like in this code, written in Ruby 3.times { print "X " } Yeah, I understand. But what real world scenario would involve doing an operation on a literal value I'm not picking on the feature, but rather asking a theoretic question. Is the ability to do it against a literal just a "you get it for free anyway" side effect of type extensions or is there a scenario where someone would really want to do this Brian ...Show All
.NET Development Email not being sent from IIS 6 Virtual SMTP server
Wrote a vb.net console app (framework 2.0) that sends email to an smtp server. Got the app working but now the email just sits in the SMTP queue and never actually gets sent. The size of the app in the SMTP queue is appropriate so I know the app worked, the attachments got attached, and the email got to my SMTP server okay. My question is why does it just sit in the SMTP queue and not go anywhere I don't know that much about SMTP servers so any leads or ideas would be appreciated. I installed and configured the SMTP virtual server and I think it is configured correctly but I am not sure. Thanks Steve Wells There are ...Show All
Visual C++ Overriding IEnumerator<T>.Current and IEnumerator.Current
I am trying to implement a collection in C++ deriving it from ::System::Collections::Generic::IList<T>. I am almost done but I am stuck on the following problem in the implementation of the enumerator: - the enumerator is derived from ::System::Collections::Generic::IEnumerator<T> - since IEnumerator<T> derives from IEnumerator we must implement IEnumerator<T>::Current returning a 'T' and IEnumerator::Current returning an 'Object' My question is: how to explicitly override two properties coming from 2 distinct base interfaces and having the same name I tried various combinations without success. The syntax for expl ...Show All
Windows Forms Pencil glyph not displayed when row dirty
When editing a cell on a DataGridView, the pencil glyph is shown only as long as the focus remains in the cell being edited. It disappears when moving to another cell in the same row. This is inconsistent with what described in the reference documentation that states that the propery IsCurrentRowDirty " returns true when the pencil glyph is displayed in the row". Even worse, this goes against normal user expectations leading to believe that the modified cell has been commited to the data source, when infact it has been not. How can I fix it Thanks Luca ...Show All
.NET Development unable to connect to SQL server
hi everybody! I am just a beginner in asp.net. i am trying to connect to the sql server and getting an error: Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection. the code line for connection is : cn.ConnectionString = "Data Source=DENVER; Initial catalog=pubs; user id=sa ; Pwd=" right click on the server name - properties gives a message saying only sysadmin can access this feature. do i need to change something in code please help. I cannot login in QA using my own account. I don't know the password for sa account. mixed authentication is surely ...Show All
Smart Device Development VS2005 CR1: Failed to open vpc network driver
My emulator is working fine except it can't connect to the network. Here are the steps: 1) Try to use Pocket Internet Explorer, type my favorite web address 2) Got the following bubble message: Cannot Connect, Unable to connect: blah blah 3) Dismiss the message, go to Setting-> Connections-> Network Cards 4) It says "My Network Card connects to: Work" (Good) 5) On the emulator window -> File -> Configure -> Network -> Click on Enable NE2000 PCMCIA network adatpter and I get the following error message: Failed to open the VPC Network Driver. Verify that the driver is installed, or install the driver from the Web downloa ...Show All
Visual Studio Visual Studio 2005 SDK (December 2005 CTP) Released
I installed this sdk but having trouble to get it to work with our package. The error message is "The object already has a CCW associated with it. Parameter name: o". Could anybody shine a light Thanks, Jillaint Hi Jillaint, Could you provide a little more information What exactly are you trying to do Do you mean that you rebuilt your package with the December SDK and now you are seeing this error Was this working with the October 2005 SDK Can you determine when it is occurring Based on my glances through the VS 2005 source code, this seems to be an exception that is thrown in Mars ...Show All
Visual Studio Express Editions Truely a Newbie
I am Very Raw at this. I have visually constructed a Windows App. But now I don't have the slightest clue how to "Tell" It what I want it to do. I have various text boxes for inputing numbers. I want to do math equations. Example...as an investment calculator and a mortgage calculator. I would like to hit the "Button" and run the calculations. I don't even know where to start. I know NO code at all and can't seem to find any online rescources to help. Thanks so much.... Have you tried the Visual Basic Guided Tour It is a series of lessons aimed at newbies - once you complete the lessons, you shou ...Show All
