IreneSmith's Q&A profile
Visual C++ Mike Danes and Einaros_thank you
am happy to be part of this family. I yet have one more problem. When I tried compiling my code without ".h" and it did but with one other problem. My code ended with say :cout<<"Hello World"; return 0; but the compiler tells me an error message as: 'cout': undeclared identifier. Pls help me, am new in the programming business. Once again, thank you Mike Danes and Einaros Please refer to the basic I/O operations in C++. You need to include #include<iostream.h> // Old style or #include <iostream> using namespace std; // because cout and other classes are defined under the namespace std. int main() ...Show All
Windows Forms A Simple GUI Question
I have an application which requires saving data. But user do not need to open a file or save a file. But I need a save and exit. Do I still have a File Menu Intuitively, File menu is for saving files. What does the guideline say Thanks much There is no 'set' way to create a method to save a file and exit your application. You can do this however you want. From what you explained it sounds like you want to save the file when the program exits. If so then you can use your Forms FormClosing Event to save the file. System.IO.File.WriteAllText( text you want to save ); ...Show All
Visual Studio Team System Custom rules (and Mono)
Hi guys, I'm working on some custom rules (first time programming against FxCop, using 1.35). The ultimate goal is to develop a rules module to tell me where our code won't run against the Mono framework. In the meantime, I'm stuck on a simple one: public override ProblemCollection Check(Microsoft.Cci.Member member) { Method method = member as Method; if (method != null) { VisitMethod(method); } return base.Problems; } public override Microsoft.Cci.Expression VisitMethodCall(Microsoft.Cci.MethodCall call) { // Detect calls to System.Collections.Generic.List`1<T>.Sort(Comparison<T>) Expression e = base.VisitMethodCall(call); Member target = ((MemberBinding)call.CalleeExpression).Boun ...Show All
Visual Studio How unlock and undo checkout of an other user by command line being administrator
I can't unlock by administrator console command line an user which did checkout to a solution file . I am trying with the commands "tf lock" and "tf undo" but it's impossible if you don't do it at the local computer. There is any possibility of unlocking checkout if i haven't access to user computer which did checkout in local machine I'm waiting your answers and thank you for all. ...Show All
Windows Forms Change cursor problem
Hi, i got problem when i tried to build and run this: this .Cursor = new Cursor (GetType(), "pen.cur" ); or this .Cursor = new Cursor (GetType(), "Resources/pen.cur" ); I got thrown by NullReferenceException I have embed it under resources, change its Build Action properties to Embedded Resource . And it is under Resources folder that i have created. What's happenning The msdn help indicates the reference to the resource is case sensitive when compiling. So make sure you're matching case whether your specifying the command line arguments for compilation. If you haven't already, might want to try command line based compilation on a sample project to see if you have the same proble ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Is there anyway to get the XNA framework without having to mess with XNA Studio Express?
I just want to the framework, and I keep seeing links that say that the XNA framework and XNA Studio Express are available for download, but when I follow the links they go to an area to download the Game Studio Express. I use Visual Studio Professional, and I have no desire to mess with Visual C# express (which apparently is required for GSE). Is there any way to just get the XNA framework so it can be used in Visual Studio ...Show All
Visual Studio Team System Plans for Work Item Hierarchy?
In reading the "MSF for CMMI Process Improvement" Process Guidance is says "If a change request is accepted, it is used to generate tasks to implement the change." We plan on following this guidance closely and for the most part think it will work fine. The one issue we see is, a Change Request can be closed with out it's Tasks being finished, giving false impressions to our over caffeinated project management team. Ideally we'd like to have a hierarchy so that a Change Request stays "Active" (or in an Implement state in our case) until all it's children tasks are complete. I know this is not possible now (at least with out a lot of customization), but is a work item hierarchy (specifically change req ...Show All
Visual C++ How to get the handle of a window which proc is subclassed
I try to find the window handle of edit box in calculator. But failed.... I see from spy++, that the window proc of edit box is subclassed, i guess that may be the reason why I can't get the window handle. Because i can get all the other windows in calculator. My code is: [ DllImport ( "user32.dll" )] public static extern int FindWindow( string lpClassName, // class name string lpWindowName // window name ); [ DllImport ( "user32.dll" )] static extern int FindWindowEx( int hwndParent, int hwndChildAfter, string lpszClass, string lpszWindow); public static void Main() { int hwnd=0; int hwndChild=0; int hwndChild1 = 0; ...Show All
Visual Studio Team System How to delete unwanted Work Items and set new default items for new projects?
I created new Team Project and Wizard created a whole bunch of new Work Items which I don't need. I couldn' find a way to delete them from Team Explorer. Also - can I set a my own list of Tasks and Items for newly created Team Projects and how I can do it You can look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=327599&SiteID=1 for the information on deleting work items. And for customizing existing project you can look at http://msdn2.microsoft.com/en-us/library/ms194945.aspx#CustomizeExistingTeamProject . -Mohammad ...Show All
Windows Forms Can I store a bitmap file in a globally accessable file, instead of a form's imagelist?
Hello, I am aware of the methods for storing images in an imagelist that resides on a form. But sometimes my tree node does not have the form's pointer. I would like to store some of my bitmaps in a globally accessable singleton object. Has anyone done this Thanks for the help! Bob If you're using the Visual Studio 2005 resource editor, usually it's just a matter of using you application's resource manager--via its Properties class--to get at the image stored in the resources. For example: Image image = global::MyNamespace.Properties.Resources.MyImage; That's just a wrapper to something like: Image image = (Bitmap)ResourceManager.GetObject("MyImage"); So far, everything you've ...Show All
Visual Basic adding databindings to a user control
I have bound data to a combobox using the tools in the IDE, but when I load the .dll for the control, I get no data. Can i not do this Ok, I found the problem. IN the windows form application, the IDE will automatically add the following line of code: me.TableAdapter.fill(me.dataset) The user control doesn't once I place this line in the code it works as expected. Thanks for the help. ...Show All
.NET Development IIS 6 connection to SQL Server 2005
Hi, I have an aspx page with a connection to SQL Server 2005 which works fine on the local VS2005 setting. When I deployed it to an IIS 6 box it could not establish the connection. Could someone help shed some light Scenarios, Local to sql 2000 -- OK Local to sql 2005 -- OK IIS box to sql 2000 -- OK IIS box to sql 2005 -- Error The connection string is, "Data Source=DBServer;Initial Catalog=DB;User ID=uid;Password=pwd;Pooling=true;Max Pool Size=50;Min Pool Size=10;" I get the error message SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a conne ction to SQL Server) If connection string is, "Network=DBMSSOCN;Data Source=10.10.1 ...Show All
SharePoint Products and Technologies SharePoint 2007 - Access in Read Only to a folder
Hi, I have a folder. A Group A can access on it only in Read. It's seems ok because the buttons "New" and "Upload" dont appear anymore. But another problem appears : when a user open a file, and edit it, it seems that he's able to edit it and save it without any problem !! How can i manage this problem I dont want to allow them to edit documents. Thanks for help. Are they able to save it back into the document library Usually not... but they are able to save a copy to their computer. Anybody feel free to correct me if I'm wrong but I don't think sharepoint can keep the user from saving a copy. It can only prevent them from replacing the original in the document library. ...Show All
Visual Studio Automation only gets the most current version of a file
Previously, I archived the database, then restored it. I am not sure if this was the root of the issue or not. Now, when I use automation to get a previous version of a file, I either get the most current version of the file, or I get the error message: " An item with the name $/ASP.NET Projects/Intranet_DotNet.root/Intranet/AccountingModule already exists ". A call to GetVersionByLabel always returns the most current version number instead of the version number of the labeled file. A call to GetVersionByVersionNumber will return the error mentioned above if the version number is not the most current. I know the files in the VSS database are there because I can launch the VSS client and look at the history, and manual ...Show All
SQL Server Activation not working
Hi There Everything works 100% until i activate my sp. I specify to execute as 'dbo' in the alter queue statement. I also define the activated sp to execute as 'dbo'. But i keep getting permission errors from my activated sp. i have tried to excute as 'sa' , i have even tried to write a job that excutes to stored procedure but it also get weird errors. Bottom line if i exceute the sp in management studio logged in as sa it works , but thorugh activation or a job nothing works, as 'dbo' or 'sa'. Thanx Ok so it seems that if i reference sis.dm views in my activated sp i have to make the execute as user a sysadmin, or grant that user select on the sys.dm views , is this correct Howeve ...Show All
