Jake McCutcheon's Q&A profile
Visual C++ dialogs appearing behind the main window
hey guys, i have a simple problem with my MFC app. the messagebox's and color dialod's r appearing behind the main window. maybe is it because i have directx rendering a static text control in the main window so it always stays in focus or soemthing i dont know here is my code for displaying for displaying a color dialog: CColorDialog cd = CColorDialog(0, CC_ANYCOLOR); cd.DoModal(); when i press the alt button the color dialog appears. is there some special setting of some sort i have to do to get the dialogs to appear infront of the window im quite new to mfc so sorry for my newbie questions. thx in advanced ...Show All
Windows Forms Determine a Datagridview column x coordinate
Is there a way to determine a Datagridview column x coordinate I don't mean when a user clicks and the hittest method is used to determine which row and column, I need to do the opposite, given a column determine its x coordinate. Thanks! Simmy hi, Could you be more clear in your problem definition Thank you, Bhanu. ...Show All
Visual Studio Express Editions deployment error
I have created a wonderful windows application with visual C# express, this is quite a feat since I new nothing of programming before I started. Thanks to lots of help from articles and forum entries. Thank you. My issue is I can "click once publish" and install on my production machince xppro and when I try to install on another machine xphome, I simply get the application has encountered a problem and wants to send an error report to microsoft. Any thoughts on how to get more information I am using MSAccess database, directx and interlop to word all installed on the other machine also. hmmmm. help ...Show All
Visual Studio Team System TFS Add Windows Folder?
I've searched and I haven't been able to find any posts/blogs about this. I'm coming from a subversion world, where windows directories actually reflect what stored in the repository. I have an app that creates the directory structure for me, but I don't seem to be able to check in directories alone. I can check in directories once they have files in them, but this would be a pain as I'm not the person who will create content for all of those directories. Is there any way to do this Thanks, Paul There are two different ways to do this. The first is from the command li ...Show All
Visual Studio 2008 (Pre-release) CustomControl woes
I spent all day trying to get a very simple CustomControl working. All I wanted it to do was to display a Button. To do so, I followed the Case Study by Kevin Moore ( http://winfx.msdn.microsoft.com/library/default.asp url=/library/en-us/wcp_conceptual/html/ecb97ed4-e659-48a4-a1e0-893309569f2f.asp ) wherein he shows how to implement a Color Picker Control. At one point in the study there is the sentence : "For now we will just put in a TextBlock to make sure things are working correctly." ... I did exactly that (not even bothering with a Button). I built a Avalon Application to test the Control ... but lo, the TextBlock was not displayed. ...Show All
Visual C++ vector crashes on method use on debug but not release
The std::vector class is throwing an exception when I try do add something to it by using vector::push_back(). I have declared my vector as: std::vector<MyTreeCLass *> mNodes; Actually, it doesn't just do it for that, even if I did this: // At the beginning of the class, before I add elements if(!mNodes.empty()) // it throws an exception here, but I don't even know which one it is { // foo } When I run it in the debugger, I see that the Like the subject says, this happens on debug mode. The above snippet works fine on release. The release still crashes in unexpected places, although not while something so trivia ...Show All
Visual Studio Express Editions Displaying forms to another user account (NEWBIE HELP)
how would i show a form in a different user account lets say i have formmessage.vb and i want it to show itself [formmessage.show()] how do i make sure that it shows itself in a user account different than mine lets say im Owner and the windows xp user account i want to send it to is Guest how do i show the form in Guest if they are logged on hi, Could you tell us when would you like to invoke this messagebox and also where is the button to invoke this messagebox Thank you, Bhanu. ...Show All
Visual Studio Team System Using Microsoft Project to create work items
I'm trying to use this function (from the right-click menu in Team Explorer for work items). When I add a task in Project and try to link it to a work item, I get a message saying the tasks must first be published. In order to publish the tasks I have to provide a URL for "Project Server 2003" to use. I have tried using the TFS portal URL but that fails. It looks like Project Server 2003 is something different from Team Foundation Server. How do I publish Project tasks to TFS so that I can link the Project tasks with work items in Team Explorer All of the VSTF commands for Offi ...Show All
Smart Device Development a lot of exception
when I debug my appliction with .netcf , the output panel display a lot of exception as shown the following, But it still does work , just very slow. What's matter ...... A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dllA first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll 'MobileCard.exe' (Managed): Loaded 'System.SR.dll', No symbols loaded. A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll 'MobileCard.exe' (Managed): Loaded 'System.SR.resources.dll', No symbols loaded. A first chance exception of type 'Syste ...Show All
Smart Device Development SerialPort Component IOException issue
I have a Ipaq Pocket PC. It connects to a bluetooth GPS Receiver (COM6). Whenever I try to open this COM Port using the SerialPort component I get an IOException. I have even tried listing all COM ports on the PPC, and opening each one inturn. Some work and some throw an IOException. Does anyone have a suggestion Hi carda, You will need to pair up with the bluetooth receiver before you use the serialport class. Are you able to use other programs to communicate with the receiver Cheers, Anthony Wong [MSFT] ...Show All
Smart Device Development minimize by code ?
Hi, how can i minimze a form by code. i still want my form to be on the 'running programs' list. 10X, Hi, this .WindowState = FormWindowState .Minimized; This minimizes the Form to your Taskbar. ...Show All
SQL Server Creating an asynchrous output
Are there any good examples creating an asychronous output. I need to be able to output the values from the input as well as adding 7 new columns to each row. http://msdn2.microsoft.com/en-us/library/ms136133.aspx The answers are available, you just need to search for them. I found the link above by typing "asynchronous component code ssis" into Google. -Jamie ...Show All
Windows Forms BindingSource and Deep Properties
Hi, I have class hierchary as follows. City.Province.Country So basically City has a property of type Province called Province and Province has a property of type Country called Country. In addition, each have a property of type string called Name. Now when I drag the City object from the DataSource windows, it binds the label Name perfectly. When I run the project I see the City and Province Name fine but for the Country I see the namespace of the Country class. The Text DataBinding property is set to CityBindingSource - Province.Country.Name Is it because BindingSource only supports properties 1-leve deep Any feedback will b ...Show All
SQL Server Error generating symmetric key
Hi, After installing SQL Reporting Services 2005 and starting the Reporting Services Configuration tool the reporting server is reported as uninitialized. The cause seems to be the creation of the symmetric key. Below I attach the relevant part from the log file: ReportingServicesService!crypto!8!1/4/2006-11:20:55:: i INFO: Exporting public key ReportingServicesService!crypto!8!1/4/2006-11:20:55:: i INFO: NT Service self activating ReportingServicesService!library!8!1/4/2006-11:20:56:: Exception caught while starting service. Error: System.Runtime.InteropServices.COMException (0x80090008): Invalid algorithm specified. (Exception ...Show All
Visual C++ Convewrting VS 2005 to 2003 (c++)
Hi, How can I convert a vs c++ 2005 project to 2003. It is a ISO c++ project so there theoretically should be no problem. Are there some tools for it Or maybe some twaeks for the solution files Re: "I don't know..." Sure, i know :) But because I have 50+ files in about 10 directories It would take some time. I was asking about an easier way to do it. ...Show All
