John Justice's Q&A profile
Visual C++ Problem with WM_CHARTOITEM message for applications using a manifest
Hi, I've a problem with the WM_CHARTOITEM message of a list box control. I'm writing a MFC application using Visual Studio 2005. The application use a manifest file. My listbox send a WM_CHARTOITEM message to the parent window but the parameters of the message seems to be wrong. In MSDN the parameters are described like: wParam The low-order word specifies the value of the key the user pressed. The high-order word specifies the current posi ...Show All
Visual Studio Tools for Office How to use a C++ class library in VSTO?
Hi, I want to create a C# Excel-application that uses a C++ class library. To start of I have a made a very simple C++ library with just one class which looks like this: public ref class Test { public : Test(){}; double Calculate( double number){ return number * number;} }; Similarly, the C# Excel project is really simple and contains the code: public partial class ThisWorkbook { private void ThisWorkbook_S ...Show All
Visual C# C# Needs a Property keyword like MC++ has now
I've said this before, even directly to Anders, and I'll say it again: C# needs a simpler way to declare properties. Don't believe me Check out this video of a John Lam talk about the future of programming languages that espouses dynamic programming langauges like Ruby: http://www.ftponline.com/channels/net/reports/vsliveto/2006/multimedia/lam.aspx About 1/5 of the way into the presentation he gives this example of a piece of code everybo ...Show All
Windows Forms Tab Control Data Loss
I have a data form that has controls in the top portion of a form and then also controls divided on a tabs in the bottom portion. If I put text in the control manually it works fine. If I put the text in programmatically and  ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How does hardware fail? Silently?
A basic test pixel shader outputs solid red, but when rendering in hardware the color of the model is solid white. I use ps_1_1 for this and have no errors except the wrong color. I thought the compiler would complain if it could not implament the shader on the currently selected graphics card, and not simply skip the shader step. If this wrong The only error is that the pixelshader is aparently not run. instead every pixel defaults to white. T ...Show All
Visual Studio Team System Team Project Creation Failed
I installed beta 3 server and connected. I then went to create the project "test3" which fails. Here's what i get (see below). I connected/logged in as administrator user on the team foundation server (TEAMSERVER) machine. Is this the problem Should i have logged in as tfssetup or someone else As a side note, i can't login as anyone (i've tried all of the users - i think) into my sharepoint site on the server now. Thanks, Ted Error Insufficien ...Show All
Visual Studio Tools for Office I cannot get Add-in object instance in Outlook VBScript
Hi, I have developed with VSTO 2005 an Outlook COM Add-in and I want to use some functions of Add-in. But I get error messeages from Outlook and I cannot reache the functions or objects of Addin. Under my VSTO Project I have two files : frmCalendar (Windows form) and ThisApplication.vb : Imports Microsoft.Office.Core Imports Microsoft.Office.Interop.Outlook Imports Extensibility Imports System.Runtime.InteropServices ...Show All
SQL Server How to retrieve data from query and link the data to a data number?
i'm doing a project on SQL Server 2005, i'm stack in searching the data and can't link the data in the data number.. can someone help mi with the programming code as i can search for the words in the table but i can't link with the data number.. first thing is how to search the keywords from the tables Second thing after u search the result ,how to link the result to a number related to the result ...Show All
.NET Development Using WMI to identify the device type (A NAS Server or a General File Server)...
Hi All, This is a query on WMI. How can I identify a device is a NAS server or a general File server using WMI. Is there any property that tells us a device is a NAS Server or a General File Server or somethig else Regards --VVPrasad This is not an appropriate forum for the WMI question. Please try http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx dg=microsoft.public.wmi.programmer& ...Show All
Visual Basic Need advice on fundamental build/development style...
Hiya! ***All text in blue is extra/background information. Feel free to skip it entirely...In fact, you could just skip straight to the Questions as I did my best to word them so they could be answered in a standalone state...the details are only intended to give the questions context. I have been building a utility for an online game called Diablo II. I'm actually kind of re building a utility based on Raymond Kleefstra's&nb ...Show All
Visual C++ CComboBox dropdown won't stay down
I construct and create a CComboBox in a dialog (not from a template) and load it with strings (CBS_DROPDOWNLIST style). I give the box plenty of vertical size (~150 pixels) to draw the dropdown. I want to use the combo box to overlay portions of a list control to allow chosing options for "fields" in the list control. The combo box appears in the proper position, with the proper size, with the loaded strings. When the dropdown arrow ...Show All
Visual C++ changing file path for a project
Hallo, 1) Suppose in my project, i have added c++ files from location c:\c++. Now if i have moved the files from c:\c++ to c\proj\c++, ofcourse when i open the c++ file in the project i will get the error "file not found" . one solution i know is to delete the files from project and add from the new location. but this is not always practical. is there any way to change the path without deleting the files from the project and adding from n ...Show All
Visual Studio Team System Load Test Plugin build error
Hi, I've been trying to implement one of Bill Barnett's custom Load Test Plugin as per Ed's blog. I keep getting the following error when I'm trying to build (either example) No overload for 'loadTest_Heartbeat' matches delegate 'System.EventHandler' Have I missed something I'm fairly familiar with the WebTest plugin styles, but I'm no C# developer. Thanks in advance It appears that the example ...Show All
Visual Studio F5 Debug Freezes
Hi, I'm having some problems with my VS.Net 2003 Enterprise Architect. When I press F5 to start debugging, the app finishes building and then freezes. However, Ctrl-F5 works okay and all the release and debug exe's work fine too. Also, this problem only happens with one of my applications. All the other apps on my computer can be debugged with F5 with no problems. Help! newbie programmer ...Show All
SQL Server Log shipping best method?? How to initiate an existing plan?
My question is two fold. First, What is the best method for mirroring to a fail-over server Replication has limits on tables that do not have key fields, and I am finding that Log Shipping is harder to work with. I have set it up several times, and conducted tests with test databases, but when it fails, I get no indication as to why, and I also can find no way to re-initiate it (without deleting the maintenance p ...Show All
