Chris Ellis's Q&A profile
Visual C++ Initializing statics in native library
Hello. We have a native C++ .lib that we have created that uses a const string in it. The string is initialized to "". We have successfully linked this native library to a managed Windows C++ Forms project and have code in the form to instantiate one of the objects defined in the native library. However, when the Forms application starts, it attempts to instantiate the const string in the native library and a _CrtIsValidHeapPoint ...Show All
Windows Forms How to save contents of checked list box to disk
Hi, I'd like to design a small application that saves the contens/items in a checked list box to disk (C:\ ,D:\ ect) and then be able to retrieve/open the saved file. Does anyone know how to do this Your help is much appreciated hakl ...Show All
Visual Studio Team System Load tests not getting dependent files
I have some working coded web tests. However, when I use them in a load test, almost nothing happens. The first POST is passed and then the load test does not GET the dependent files (with the exception of the style sheet according to the server log). After this, nothing. The load test does not attempt another POST. In fact, the load test monitor does not even report that any tests are under way. It only reports user(s) and request(s). ...Show All
Visual Studio Express Editions Remove Global Hotkey?
Just trying to figure out how to remove a global hotkey. When debugging I have f12 mapped to perform an operation in a different program, but VS2005 wants to recognize this as a break command. I have tried going to options > environment > keyboard and removing the hotkey for f12 then restarting VS, but the hotkey still is in effect. Is their another way to remove VS from using global hotkeys if I don't wish it to ...Show All
Windows Forms Add controls to a child control at design time.
Does anyone have a solution to this problem: When implementing a ControlDesigner or ParentControlDesigner, if one has a UserControl that contains child controls as follows: +========UserControl=========+ | +-----------------------------------+ | | | Caption Panel | | | +--------------------------------- ...Show All
Visual Studio Team System Exclude EnumStorageShouldBeInt32 for importing C++ enums?
I got hit with the "EnumStorageShouldBeInt32 " rule ( http://www.gotdotnet.com/team/fxcop/docs/rules.aspx version=1.35&url=/Design/EnumStorageShouldBeInt32.html ) One area that I don't think this makes sense for is when using enums to import native C++ DWORD-based enumerations. For example, I want to import kernel32!ContinueDebugEvent, which takes a DWORD for its 3rd parameter, and that can be set to one of several strange va ...Show All
SQL Server Sending reports using Lotus Notes
Dear all, I need to have a report to be sent automatically in an e-mail. My only problem is we are using Lotes Notes. Any idea how this could be done Thank you. Reporting services ships with an email delivery extension. This enables reports to be scheduled to be delivered via email. The email delivery extension can talk to any SMTP server to deliver email. You can find out more info here: http://ms ...Show All
Visual Studio 2008 (Pre-release) How to bind data to listview from storeprocedure?
please help. ...Show All
Visual Studio Express Editions permission denied runtime error 70
I'm writing a program that copies a file over another. Either of the files could be in use at any time by others (momentarily). I want to ensure that I won't get permission denied if one of the files is in use. My thought was a loop that waits for the file(s) to close(if needed), then copies it. How do I check if the file is in use Thanks in advance for your help! http://msdn2.microsoft.com/en ...Show All
Windows Forms How can I trap the up arrow or Down Arrow or Page Up/Down Events in a form?
Experts, I need help on two issues. 1. I have a form and a dategrid in it. I am unable to handle the up arrow or Down Arrow or Page Up/Down Events. I tried KeyDown, KeyUp and KeyPress, does not fire. I am missing something here. Do I necessarily go for windows message handler These keys are working, but I am unable associate the method handler to it. 2. My "Enter" is not working(same form and datagrid). It should work like TAB. What should I do ...Show All
Visual C# disabling and/or hiding Windows taskbar
Could somebody post code that disables and/or hides Windows taskbar and enables it when I or user click on the button in Form. Goran The P/Invoke needs: [DllImport("user32.dll")] private static extern int FindWindow( string className, string windowText); [DllImport("user32.dll")] private static extern int ShowWindow( int hwnd, int command); private const int SW_HIDE = 0; ...Show All
Windows Forms How do I get the textbox control to work like it did in VB6
I'm having a problem with the GotFocus event using the mouse. In VB6 if I selected the TextBox with the mouse, it would raise the GotFocus event. If you clicked the TextBox a second time the cursor editing point would be set. In Visual Studio 2005, I can raise the GotFocus event only with the Tab or keyboard events. Clicking on the control with the mouse sets the cursor to the point in the text to be edited. I would like to raise the GotFocus ...Show All
Visual C# How to get return code from a launched process
I need to capture the return code from an external program that I am launching using the Process class. I can't seem to find information on how to do this. An example would be, my program launched a legacy executable that returns a value indicating the success/failure of the application. Assuming that you call Process . Start () then it returns a Process object. If you call Process . WaitForExit () to bloc ...Show All
.NET Development Getting started with XML & serialization
Im new in XML using vb.net and sound idiot to ask for help to get started. i have look thru the very basic of read and write xml but it doesnt help much to understand more complex x-path inside the selectSingleNode(//abc[name.@...). Also, i have come across serialization but not much example to get started. Anyone can provide good link/examples to get me started i would like to search thru my xml and put the correct value to th ...Show All
Visual Basic Protecting Class Library DLL's?
I originally posted this on VBForums.com, but haven't received any replies yet, so I thought I'd try here. Anyway, the project I'm currently working on is getting quite large and we are looking at breaking a few components of the software off into manageable class libraries (i.e. DLL's). I've been experimenting with it over the past few days and the problem I'm finding is that the DDL's are insecure. What I mean by this, is that when we distrib ...Show All
