Michael Tissington's Q&A profile
Visual C# how i can work with struct and union(struct in union etc)
there're 3 types below i can't work out,please give the samples ,thanks 1、struct in union: union Test1 { struct { long m_time; }; }; 2、union in struct: struct Test2 { SCHead m_Head; union { long m_tSumary[1]; }; }; 3、complex union in struct struct Test2 { SCHead m_Head; union { long m_tSumary[1]; struct { char m_cClass; }; }; }; ...Show All
SQL Server question on namespaces
hi, i cant seem to import Microsoft.SqlServer.Dts.Pipeline. What i only have is Microsoft.SqlServer.Dts.Runtime. can you tell me how to have to this also, how can i access ComponentMetaData object Is this part of Dts.Pipeline thanks. - ranier http://msdn2.microsoft.com/en-us/library/microsoft.sqlserver.dts.pipeline.wrapper(SQL.90).aspx It looks like dtspipeline.dll is the dll you need to reference. I'm not sure what you need to do to have that installed. I'm just looking on google, I've not used it. ...Show All
Visual Basic I have problems in my registry app, please help?
Hello, I got this application which was compatiable with Visual Basic 6.0 so i upgraded to Visual Studio (basic) 2005 BETA 2 and then it didnt work. What it does you click a command button and it inserts keys to the registry and adds a Shell Context Menu and 'Upload to GuruImages' will appear when you right click a .png file. Could somebody tell me why this doesnt work, and how would I make it insert these keys into the registry on installation and how will I set the values Thank You, Here is the code: Option Strict Off Option Explicit On Friend Class Form1 Inherits System.Windows.Forms.Form &nbs ...Show All
Visual Studio Team System Version Control Events
I have a listener for the Checkin event that analyzes changesets but the event is not being fired when a changeset is modified (i.e. after adding checkin notes). And I ceretainly would not expect that particular event to be fired by such action but, is there an event defined in TFS that fires when this occurs I checked the Registration web service and it looks like VersionControl only has the Checkin event. Any help will be much appreciated. I can't think of any efficient workarounds off the top of my head. Can you tell me a little more about what you're trying to do Perhaps there's a ...Show All
Visual Studio Reportviewer Paper size
Is there any way to set the paper size for the Reportviewer control other than at runtime using the Page Setup button. It always defaults to "Letter" which is not really suitable for all countries. I am using Visual Studio RC1 on Windows Forms application. Thanks for the Information. Come Service Pack Come Come Come .... ...Show All
Visual Basic WriteAllText Method
Hi guys, I'm a new VB6 user. I'm trying to write text to a file using the reference provided on MSDN ( http://winfx.msdn.microsoft.com/library/en-us/dv_vbalr/html/f507460c-87d9-4504-b74f-3ff825c7d5c4.asp frame=true ) I'm using this code: Private Sub Command1_Click() ' Declaration Public Sub WriteAllText(ByVal file As String, ByVal text As String, ByVal append As Boolean) End Sub My.Computer.FileSystem.WriteAllText("C:\TestFolder1\test.txt", "This is new text to be added.", True) End Sub When I run it, I'm getting the message "Expected End Sub", I tried adding another End Sub down at the end but nothing changed. There seems to be a problem wi ...Show All
.NET Development missing an assembly reference
hi!i am developing a asp.net web application with c# ,using visual studio 2003.i want to align text in a label . this is what i found in a help topic: Example The following code example demonstrates how to center the text of a label. [C#] private void Form1_Activate(object sender, System .EventArgs e) { Label1.Alignment = Alignment.Center ; Label1.Text = "Earnings Update"; } Requirements Namespace: System.Web.UI.MobileControls Assembly: System . Web .Mobile See Also System.Web.UI.MobileControls Namespace when i start my application the following error message appears: d:\web\intranet\intra2\appl\pettycash\defaul ...Show All
Visual Basic Login in VB app
Can you help me! I have a SQL Server 2005 with a database on it. I would like to create a login form on a VS 2005 VB app that validates a user's credentials. Thanks guys, Zack Owens sure, no problem mates. any extra problem, please email me / pm me on silkkeng@hotmail.com(removethis) For dataset and datatable. their structures please refer to msdn. in one dataset, you can have as many datatable as you like. Treat datatable like your database tables. There are few ways to get data out. I'm more confident on dataadapter instead of using datareader though. After getting data out, we need to put into dataset. Dim cn as new sqlclie ...Show All
.NET Development OleDbCommand.ExecuteNonQuery "Insert Into Select From"
Hello, I am working with OleDb to perform a bulk insert from a temporary table to permanent database table, both of which belong to the same database. I am wanting to use "INSERT INTO <permanent_table> SELECT * FROM <temp_table>". The query I run in MS Access to perform this bulk load does process correctly, but not in code using OleDb. After properly setting up my OleDbConnection object, opening it, and properly creating my OleDbCommand object, my question is this: when I call "ExecuteNonQuery()" no rows are returned and no data shows up in the permanent table. My connection opens perfectly and the ...Show All
Visual C++ Help! LINK : fatal error LNK1181: cannot open input file
Im just a starter on Visual C++ 2005 and needs help from anyone. I renamed a form from its default (Form1 to frmMain) and now I encounter Link error. It says it cannot open the old resource file, but it should not be referenced anymore. Below is the build result. ------ Rebuild All started: Project: General Ledger, Configuration: Debug Win32 ------ Deleting intermediate and output files for project 'General Ledger', configuration 'Debug|Win32' Compiling... stdafx.cpp Compiling... General Ledger.cpp AssemblyInfo.cpp Generating Code... Compiling managed resources... Read in 3 resources from "c:\General Ledger\General Ledger\frmMain. ...Show All
Windows Forms a datagridview and combobox problem
I am using VS 2005 Professional. I have a master-detail form on which I have a datagridview(detail) that is bound to a table. Within that grid, one of the columns displays values from another table using a combobox. Under normal circumstances this all works quite well. However, if you go to the new record at the bottom of the grid and click the down arrow of the combobox the autonumber field populates, as it should, and the master key value is also automatically entered in it's field, as it should be. The problem is that if the user decides not to select a value from the combobox at this point, and they try to delete t ...Show All
Visual C# Problem with build Web Site
When I try to build a web site solution I get the follwing errors : Error 1 (0): error CS0006: Metadata file 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files\testeinf\15e74bc9\75b17dc3\App_Web_tzppu2tl.DLL' could not be found Error 2 Metadata file 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files\testeinf\15e74bc9\75b17dc3\App_Web_tzppu2tl.DLL' could not be found I close VS.NET 2005 Beta2, restart and now it's building. After I chenge something and build again I get the same error. So I close VS IDE, restart again and build again. And so on.... Is it a bug I have VS ...Show All
Visual Studio Connecting to two different databases on different domains
I need to connect and work with two different VSS databases under VSS 6.0. One database I log in using my default workstation login, so have no problem with. However, the other database I need to log in using a different domain\login to connect to, but I am having trouble connecting to it. If I do "Open Sourcesafe Databases..." then I'll get access denied. If I start VSS 6.0 using "Run As" and using my other login info, then I can see the database but cannot save/select the database to connect to. Any Ideas does this even make sense Thank you Hi, SourceSafe 6.0 uses Windows file-sha ...Show All
Visual Studio Team System Mark methods as static on auto-generated method
Hello, I have 5 Web User Controls in my ASP.NET project, on one of them FxCop remarks CA1822 on the Web Form Designer Generated method InitializeComponent(). What might be the reason for that Could this be related to the fact that I don't use any page event related methods such as Page_Load in this specific control (that's the only difference to the other 4 Web User Controls) Thank you, Andy For this control, there's no access through the 'this' pointer to set any field state, or to call any methods. That means it could be marked as static, except for the fact that it's a designer-emitted method and shou ...Show All
Windows Live Developer Forums Is anyone having problems with messengeractivitysdk
When I download the sdk and then open messengerp2p.chm, all the topics are blank. I am experiencing this problem on my work pc as well as my home pc, so that it appears to be a problem with the sdk help file. Thanks, Jeff No problem, I had the same thing, but I searched a bit and found the solution. I hope this helps other people too. It isn't a bug btw, but it's a result of MS's security policy... ...Show All
