malefly's Q&A profile
Visual Studio Can we generate code?
Is there a way to generate code from a class diagram Given a project without the type on a class diagram, wouldn't it be nice to be able to generate that stub If there is a way to do this, please let me know. If not, why not Thanks! Hi, You should be able to create new types by dragging the item from the toolbox (it should be visible when you have a class diagram open if not, you can bring it up by going to the View menu and selecting Toolbox). In the RTM bits, you will be able to create new types from the context menu (right click) on the class diagram design surface. Once you create a type ...Show All
Visual C++ Migration from VC 6.0 to VC 7.1
I am porting from VC 6.0 to VC.NET 2003 and I am getting the following issue:- error C2143: syntax error : missing '}' before 'constant'. Plus any document or help on migration from VC 6.0 to VC 7.1 Best Regards, Just another try. So you include MSXML4 with an import. The ShObjIdl.h needs the DOm pointer definition. So using namespace MSXML2 will over this definition for the heaer file. Try to place: #import "msxml4.dll" using namespace MSXML2 ; in front of the #include of ShObjIdl.h Or use #import with the no_namespace option. ...Show All
SQL Server Execute SSIS package on vb.net
Hi All, I would like to write a small application for execute a SSIS package manually, but i got a error message as following: Coding: Dim oPkg As DTS.Package2 oPkg = New DTS.Package2 'Error Message Here oPkg.LoadFromSQLServer("SQL2005", "sa", "abc", DTS.DTSSQLServerStorageFlags.DTSSQLStgFlag_Default, Nothing, Nothing, Nothing, "AccessImport") oPkg.Execute() oPkg.UnInitialize() oPkg = Nothing Error Message: The specified DTS Package ('Name='AccessImport';ID.VersionID = {[not specified]}.{[not specified]}') does not exist. So what is the problem here Thank a lot. Laputa You're us ...Show All
Windows Forms system.runtime.Interopservices.SEhexception in VB.net
Hi, Iam opening a form from another form. The second form is getting opened. But when i close the form iam getting the following error. --------------------------------------------------------------------------------------------------------- "An Unhandled exception of type 'System.Runtime.InteropServices.SEHexception' occured in System.Windows.Forms.dll" Additional Information: External Component has thrown an exception ...Show All
Visual Studio How Can I create a solution and Project programmatically using EnvDTE vs 2005?
I need to create a solution and project programmatically. I have found a couple of example on msdn but they dont work in vs2005.Can somebody post a small snippet how to do it I get all sorts of errors! My attempt using c# 2005 --Created a new project --Added references to EnvDTE and EnvDTE80 private void CreateSolution() { Solution Sol ; Sol = Solution ; Sol.Create( @"c:\Temp2" , "TestMySolution" ); } Thanks in advance Perhaps the code to the Add-in Wizard at http://www.microsoft.com/downloads/details.aspx FamilyId=79C7E038-8768-4E1E-87AE-5BBBE38 ...Show All
Visual Basic TableAdapters?
In my application I created a datasource connection to an oledb database. I also got a dataset containing 3 tables. From the toolbox I dragged one table adapter, and the dataset icon to my form. I can do: Private Sub Form_Load() me.myDataset.MyTableAdapter.Fill(me.myDataset.myTable) End sub But I've seen code examples using like: me.myDataset.MyTableAdapter.Fillby(...... Is the .Fillby some sort of query And how do I create it programatically I just don't want the whole table What's the easiest way to do this Thank's for helping me out The FillBy methods are queries yo ...Show All
Visual Studio Team System Problem when changing status from active to closed
Hi, We have Agile based team project which contains the bug.xml file from CMMI process template (Beta 3). When opening a bug, and changing the bug status from active to closed (in all other cases work fine), we get an error message: "tf20012 field 'closed date' cannot be empty" "tf20012 field 'closed by' cannot be empty". What is the problem Thanks, Michael Hi there! I've got beta 3 refresh and I can change from active to close status. Take a look at Bug.xml file and see if you have this xml code bolck in workflow: < TRANSITION from = " Active " to = " Closed ...Show All
Visual Studio Team System Web test on the remote machine
Hi, I would like to test asp.net application on remote machine, I want to see performence counters ( Memory, CPU .. ) of remote machine. I set up this counters for this, but when I run test ( from scenario ) I see only performence counters of local machine. How can I setup this.   ...Show All
SQL Server Database List Hardcoded into SQL Server Management
Hi, i'm working on the rtm version of mssql 2005 and i'm wondering to find that the database list are hard coded into SQL Server Management. I need to hide databases list for (newbie) users on EM 2000 i can hide this list using this kb http://support.microsoft.com/ id=889696 but on the new SQLSM The database list is hard coded into this batch query SELECT dtb . name AS [Database_Name] , 'Server[@Name=' + quotename ( CAST ( serverproperty ( N'Servername' ) AS sysname ), '''' ) + ']' + '/Database[@Name=' + quotename ( dtb . name , '''' ) + ']' AS [Database_Urn] , case -- if all these are fal ...Show All
SQL Server dbo - Database ownership
I have created tables within SQL Server database. My tables I have created do not have the dbo ownership( )...how does one transfer a table to dbo advTHANKSance It actually depends on which version of SQL Server you are using. With the use of SQL Server 2000 you can use the sp_changeobjectowner procedure. In SQL Server 2005, you may have a look on " ALTER SCHEMA schema_name TRANSFER object_name " as well as in the BOL under the sp_changeobjectowner in the BOL 2005, there is some information about the changes of the features which are in common related on the introduction of schemas in SQL Server 2005. HTH, Jens Suessmeyer. - ...Show All
.NET Development CompressedStack documentation?
Is there some documentation, article or tutorial related to the CompressedStack class Thanks in advance, Joannes Vermorel CompressedStack is basically a capture of the code access security state of the thread you're reading it from. Do you have some specific questions about using it -Shawn ...Show All
Visual Studio Visual Source Safe 6.0 can it be used on Visual Studio 2005?
Hi. Hope you can help with a question. Can Visual Source Safe 6.0 can it be used on Visual Studio 2005 Thanks. Best Regards Cecilie Hi Cecilie, Yes, VSS 6.0 can be used with VS2005. However, the user experience is better when VS2005 is used with VSS 2005. When using VSS 6.0 with VS2005: - to get new files added in database to web projects you will need to select the web node in SolutionExplorer and do GetLatestVersion; The Get... dialog may not list all the new files in database - you will not see Renames and Deletes in the Get... dialog nor you'll be able to synchronize them from database to the enlistment (the experience will be ...Show All
Visual Basic Visual Studio 2005 Standard Edition
I'm having an issue with Visual Studio 2005. I've never had a Beta version installed. However, I did have the Express version installed. I cannot create an SQL Database for my project. Visual Basic becomes non-responsive. After about 10 tries, it finally created a database. However, when you try to add tables, it again becomes un-responsive. I had no such problems with the Express version. I got this version for free after attending a Ready to Launch seminar. It came with SQL Server 2005 Standard Edition. However, VB.Net seems to only want to work with the Express version. I a ...Show All
Visual C# Timer execute once
Here's my problem: I am making a proof-of-concept security system for my room. I wanted to try hardware interfacing with the parallel port. What i want to do, is poll the parallel port on a constant interval and notify my by email if the door is opened. The only problem is that I don't want a bazillion emails because i'm polling few milliseconds. What i want to know is how I can email myself only the first time the door is open. What bit are you stuck on The code has a boolean flag which is set to false. When someone walks into the room, set it to true, after sending the email. When th ...Show All
Visual C# saveFileDialog
Hi, I need your help with that saveFile code that seams to compile but hit with an exception: private void saveAsToolStripMenuItem_Click( object sender, EventArgs e) { SaveFileDialog saveFileDialog1 = new SaveFileDialog (); saveFileDialog1.Filter = "Text files (*.txt)|*.txt|All files (*.*)|*.*|RTF Files (*.rtf)|*.rtf" ; saveFileDialog1.FilterIndex = 3; saveFileDialog1.RestoreDirectory = true ; if (saveFileDialog1.ShowDialog( this ) == DialogResult .OK) { childForm childForm = new childForm (); String filename = saveFileDialog1.FileName; using ( StreamWriter writer = new ...Show All
