Linda Cornerstone's Q&A profile
Visual C++ Hello World code compiles succesfully but doesn't run
I will apreciate if you can help me with my following trouble as I'm trying to find a solution for the last 2-3 days. I've got a simple hello world code (see below) and I'm trying to build an executable. For compiling and linking I'm using "cl -GX hellow.cpp" and the operation completes succesfully without errors. hellow.cpp: #include <iostream> using namespace std; int main() { cout << "hello world\n" ; return 0; } However, when I execute the derived executable the "hello world" text isn't displayed. Any clues why Note: I'm using Visual Studion 2003 .NET and the compiler is ver. 13.10.3077 for 80x86. Also, I've tested the code on another PC with the same software and works like a swe ...Show All
Visual C++ Strange Compiler Error!!!!!!!!
Hello, I have recently begun programming in DirectX. I am compiling a single file(.cpp), that requires nothing but a link to DirectX in Visual Studio 2005 Professional (Which I own). I have linked everything to the DirectX SDK files, but I receive the following errors. error C2065: 'index' : undeclared identifier error C2228: left of '.x' must have class/struct/union error C2228: left of '.y' must have class/struct/union These seem familiar with "C" style errors, but I'm using C++. I might have the compiler settings wrong, so that it could think that it was C, not C++, as .x, and .y is straight C++ so somethign is wrong here, there is nothing wrong with the code, as it is from a book and have given it to other ...Show All
Windows Forms outlining (the +,- collapse) effect in richtextbox or usercontrol
how to achieve outlining (the +,- collapse) effect in richtextbox or usercontrol tht displays documents such tht it outlines the document by paragraphs (much like code-editor of vs 2005 having code outlining - i want paragraph outlining) i am using vs 2005, c# thnx. this is an article about richtextbox class, NRtfTree library is a set of classes written entirely in C# which may be used to manage RTF documents in your own applications. ...Show All
Software Development for Windows Vista Monitoring problems
Hey! Just installed Vista a couple of days ago, and it works really smoothly, except one problem. When I start a game, and try to tab out - the only thing that happens is that I get alot of thick green/white lines all over my monitor (A 19" Sony XDK95) the same happens when I don't touch the computer or any programs are running (It takes maybe 30 minutes) there's no way to get into Vista, I have to reboot every time. I'm going VGA->Dvi (Monitor->GFX) I've got the newest GFX drivers (Nvidia 7950 gt) My other specs are (If that should matter somehow) is E6400 2,13ghz Core2duo, 1gb of DDR (5400 Corsair memories) and Msi Power up Edition. Anyone encountered the same problem and knows how to solve this issue ps: (Whil ...Show All
Software Development for Windows Vista Setting volume levels with IAudioVolumeLevel
Hello, I've been trying to set the level of a particular part by using the IAudioVolumeLevel interface of the API. I can Activate a valid instance of the interface, and when I call GetLevelRange on it, I get a min value of -34.5, a max value of 12, and a step value of 1.5. However if I loop through the valid step values and set them with SetLevelUniform, while comparing the value of the volume level slider in the Control Panel (which goes from 1-100), I get unexpected results. The number on the slider (and volume from the speaker) remains at 0 for the first 8 iterations of the loop until I get to a level of -24 for the SetLevelUniform call, at which point the slider value moves to 1, where it remains until the 8th iteration in the loop ...Show All
Visual Studio Express Editions Detect event for Windows logout/shutdown
Hi, I use VB2005 and i need to develop an application that start by itself when a user log in and launch a last command when the user log out or shutdown windows. To start the application it's ok and fine but i'm not able to find in any documentation how in a console application you can create a addhandler command that will be triggered when the user leave windows or shut it down ... Any help would be greatly appreciated! Thanks, N. Here is my code: ApplicationEvents.vb: Namespace My Partial Friend Class MyApplication Private Sub MyApplication_Startup( _ ByVal sender As Object , _ ByVal e As ApplicationServices.StartupEventArgs _ ) Handles ...Show All
Game Technologies: DirectX, XNA, XACT, etc. No typedef and no Include. . .
Are these VBA programmers writing the .Net framework and languages Many of you probably already know this, as I'm arriving late to the party. I wanted to use the typedef equivalent but apparently not in C#. Then of course I thought I'd try the #include -- maybe so, if I wanted comments (I gather). The end result: Common.cs using System; namespace <yoursHere> { using ID = System.Int32; public class objID { private ID itsID; public objID( ID theID ) { itsID = theID; } public ID ID { get { return itsID; } set { itsID = value; } } } } Did I miss something Why not just: class AClass { public uint itsID; } The reasons why you need ty ...Show All
Visual Studio 2008 (Pre-release) XBAP size
Hi, When I publish my XBAP application, the following four files get copied into the xbap directory, in Debug or Release mode: Draft.PresentationDesignMarkup.dll (408KB) PresentationDesignCore.dll (184KB) PresentationDesignDevelopper.dll (372KB) PresentationDesignFramework.,dll (84KB) This adds up to about a megabyte minimum size for the XBAP, before any of my code gets included. This is kind of heavy for lightweight applications, and I don't understand why these dlls aren't included in the 3.0 runtime. Is this still going to be the case after .NET 3.0 RTMs Hi, Today, there is a known bug in the Orcas extensions. The references to the above DLLs have "CopyLocal" set to True. It should be fa ...Show All
Audio and Video Development Can component in PMP communicate with 3rd party driver?
Hi all, Is it possible for PMP Media components ITA/Decryptor/MFT to communicate with a signed 3rd party driver How can I make custom kernel mode drivers trusted for PMP Thanks. SarahT, Yes, PMP Media components can communicate with 3rd party drivers. As far as signing custom kernel mode drivers trusted by PMP, please see the whitepaper at: www.microsoft.com/whdc/winlogo/drvsign/ Pmp -sign.mspx Eric. ...Show All
Windows Search Technologies SIMPLE instructions to REMOVE Windows Desktop Search
I have written to MS without receiving a simple, non-MIS/IT description of how to remove this horribly intrusive add-on, that installed itself DESPITE clicking on DO NOT INSTALL. So (and without getting into the politics of who is behind this), all I want is the easy way to remove this program. I have gone into Add/Remove Programs and YES, clicked on Show Updates, but there is NOTHING clearly identified as Windows Desktop Search. ALSO, and most important, I DO NOT want to disable or screwup other programs/software. HELP. What is the point of having multiple users with passwords if ANYONE can access the entire history of EVERYONE Batman - - , where is the instructions to remove thi ...Show All
Visual Studio Team System Unable to upgrade for Workstation to full TFS
I installed the Workgroup version of TFS and we purchased the "full" license. I called in and received the Product Key. I entered the product key and say the command window open, stop IIS, restart IIS and closed. I am unable to add any users to the [server]\Team Foundation Licensed Users group. It keeps giving me this error "TF50626:Maximum Users(5) in License Group. Any help Are you a vlume licensing customer If so, Rob Caron 's post on upgrading may help you. To answer your concern, install/repair should not damage or alter the data in your system. However, it's still a very good idea to take a backup of your current information just in case something unexpected occurs during th ...Show All
Visual C# How can I move the focus to particular Tab Page in Tab Control?
I have tried to move the focus to particular tab page in tab control at run time. It can not get the focus to the specified page. Here is the code that I had tested this issue. this .tabControl1.TabPages[2].Focus(); Thanks in advance. hi, you have to use the selectedindex property to switch between the tab pages. this.tabControl1.SelectedIndex = <Tab Page Index to be focused> (e.g.) this.tabControl1.SelectedIndex = 1; i think it would help you. Regards, Perumal.R ...Show All
Visual Basic How to change ComboBox items in VB 2005 Express
I use 2 ComboBox. I want the second ComboBox to display different items when user selects different items in Combox1. Is there anyway to do this in VB 2005 Express I know in Matlab, I can simply write: set(handles.popup2 , 'String' , 'item1|item2|item3' ). Is there any similar way in VB 2005 express Thanks, Lili Simply add the items to the combobox2 items as a result of determining which Item was selected in the combobox1 EXAMPLE Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.ComboBox1.DropDownStyle = ComboBoxStyle.DropDownList Me.ComboBox1.Items.Add("Item1") Me.ComboBox1.Items.Add("Item2") ...Show All
Visual Basic how to autosize the tab control inside a window's form
I have a tab control inside a form. When I drag the border of the form to resize it, the tab does not resize with the form. What should I do so that the tab control can automatically size with the form Thanks. You either set the .Dock property or the .Anchor property of the tab control. ...Show All
Visual C# Do two types have inheritance (generalization) relationship in C#?
Is there a way to determine if one of two types is a descendant / ancestor of another Better yet can I identify all descendants (like Fox, Cat, Dog ... classes) of a given class (like Mammal class) by means of C# reflection or otherwise at runtime Thanks Hi, We can use is keywords. Say Fox Class is derived from Mammal Class, then the instance of Fox is compatible to Mammal. For example: Class Fox: Mammal {...} Fox fox = new Fox(); Mammal mammal = new Mammal(); if(fox is Mammal) MessageBox.Show("fox is mammal's descendant "); else MessageBox.Show("fox is not mammal's descendant"); Otherwise, t o judge whether the class is ...Show All
