DIII's Q&A profile
Visual C++ Calling C++ dll from C#
I am trying to use a C++ dll in my C# application but unsuccessul. Here is what I have done: 1. The C++ code was developed using open BSD. 2. I made a C++ CLR dll using visual studio 2005 - "tc.dll" 3. In my C# application, I add the "tc.dll" as a reference from the solution explorer 4. I tried to instantiate the class of tc.dll using myClass mc = new myClass(); The C# program can not find the class at all. ...Show All
SQL Server Collapsing/Shrinking Rectangles?
Is it possible to have rectangles shrink when the textboxes that they contain are empty No, Rectangles cannot shrink based on their contents. They are always the size defined in the report definition. -Chris ...Show All
Visual C++ Unresolved external for IID_IXMLDOMDocument2
Hello, I am trying to reproduce a problem (huge memory increase) in an MSXML wrapper library. I Created (using visual studio 2003) a console application where I create a DOM document using IXMLDOMDocument. This works fine since there is hardly any code to go wrong The next step is to switch on XPATH support. For that I need the IXMLDOMDocument2 interface. So I figured I query IXMLDOMDocment for IXMLDOMDocument2. However when I try to ...Show All
Windows Forms BindingNavigator & Data Binding Problem
When I use BindingNavigator to add new record, I has a problem: I want to save time for input informations, so I set default value for some controls which has data bindings, but it's not working. for example, I always set DateTimePicker's value to System.DateTime.Now, set CheckBox's Checked to False. If I don't change the default value manually, when I try to save the new record, it'll said the value is null. When I use DateTimePicker, I must ...Show All
Windows Forms Output in label
A simple question I know, but decided to play around with C#. Getting the output in a label is easy, but I have to call the label from a seperate class. The label is in the form class and just can't seem to find the right s ...Show All
Visual Studio Express Editions Image.ImageUrl = "c:\thmb.jpg";
I am using C# and visual web developer 2005 express. I have placed an Image control and a button control on a web form and attaching the above code to it. It works if I alter the Image control proerty ImageUrl, why wont it work with the above code All I get when I press the button is a little hourglass curser for about 2 seconds and then nothing. Thanks, Paul This should work but it's not how it's usually done ...Show All
.NET Development testing presence of optional assembly
Hi, I'm developing a Windows.Forms program which talks to differet types of database backends. We got a number of drivers from various vendors, but not all of them will be present on a particular user's machine. I'm now looking for ways to dynamically discover whether an assembly is present. My best bet so far appears to be AppDomain.CreateInstance( ClassName, Assembly.dll ). I'm not really interested in the instance ...Show All
Software Development for Windows Vista msi.lib not found
I have a project that needs link with msi.lib and I got the following linking error: LINK : fatal error LNK1181: cannot open input file 'msi.lib' I have the following paths in the library directories: $(VCInstallDir)lib $(VCInstallDir)atlmfc\lib $(VCInstallDir)atlmfc\lib\i386 $(VCInstallDir)PlatformSDK\lib $(VCInstallDir)PlatformSDK\common\lib $(FrameworkSDKDir)lib I only found the msi.lib in $(VCInstallDir)PlatformSDK\lib\IA64 and $(VCInstall ...Show All
Visual C# how to set default dataGridView row Height
I am using a DataGridview while i am setting the height from the code it is not working if (dgviewSearchResults.RowCount != 0) { foreach (DataGridViewRow row in dgviewSearchResults.Rows) { row.Height =5; } } i am using the above code But it is not working for me ItemCreated event not exists in dataGridView Events can u please say More Descriptive. ...Show All
Visual Studio Team System Documentation for WIT types
I'm trying to customize our BUG work item item. Is there any reference documentation on the available "types" that can be used for new fields we might want to add ray To answer my own question. I found them here: http://msdn2.microsoft.com/en-us/library/ms243849(VS.80).aspx ...Show All
Visual C# key press help
How can i know if SHIFT+L keys are pressed i know how to capture just 1 key but how do i capture combinations Thanks Hi In the KeyDown event of your control you can use the Shift property of the KeyEventArgs to determine if Shift was pressed and used in conjunction with the KeyCode property to determine the key pressed will then tell you whether Shift+L was pressed: if(e.Shift == true && e.KeyCode == Keys.L) { MessageBox. ...Show All
Windows Forms Is taskvision free?
What are the terms and conditions for using TaskVision as the basis for an application used for commercial purposes Hi Mike (and any other reader), I am not trying to be difficult or a trouble maker, I have been burned in the&nbs ...Show All
Windows Forms Use of Custom Editor at run time
Hi, If I implement a custom editor by inheriting from UITypeEditor, Can I invoke it at RUN TIME from a standard control other than PropertyGrid, say a comboBox or a button If it is possible, could you please let me know how to do it or could you please direct me to some URL which shows how to do it. Do I have to create a custom control that inherits from control for doing this Thank you. regards. S Surely your implementation uses eit ...Show All
SQL Server Error 1418 and Good Basic Setup Guide
Hi, I'm new to DB Mirroring, and I am trying to get it going in a test enviroment between two SQL 2005 Dev Servers. I have followed documentation that I have found but cannot get past a 1418 error when establishing a connection between the servers initially. Does anyone know of any good step by step guides that I could look at, in case I have missed something stupid. Thanks in advance Stupots Hi, the easiest way is to r ...Show All
Visual C# Dynamic array
Hi. I want to have an dynamic array that don,t require to set this by dimension.In other words, an array that I add and delete from it. Thanks. ArrayList or a generic collection is probably better, but you can resize arrays. In version 2.0 of the Framework you can use Array.Resize for single dimension arrays. Otherwise, you can use the method I describe here: http://www.tangiblesoftwaresolutions.com ...Show All
