Alba's Q&A profile
.NET Development Memory Costs (Static class versus instance)
Hi every one! I have a rather big class "A" (~2000 lines of code, and yes I wish I could break it up into smaller ones...) that is used for image processing by class "B" and now I would just like to ask you all a basic question about memory costs. I have a choice between making "A" a static class or creating an instance of "A" and pass a reference to it to "B" or making it a private static member of "B" or making it a private instance member of "B". The question is what would be the initial difference in memory costs between these approaches, if any Or to put it more general, is there a noticable difference between creating an instance of a (utility) cl ...Show All
Visual Studio Tools for Office SELECT Statement against Excel file?
How can I run sql statement against excel file. I am using office 2003 and want to run retrieve information from a column in excel file. SELECT DISTINCT Code FROM Excel_File_name Is this possible Thanks I tried this Dim conn As New OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0; " & _ "data source='" & "C:\Temp\SSPortfolio.xls" & " '; " & _ & ...Show All
Game Technologies: DirectX, XNA, XACT, etc. MDX 2 Time Bomb
Almost all MDX2 Ctors are calling the bombing code below: public static unsafe void CheckTimeBomb () { DateTime time1 = new DateTime ( 0x7d6 , 10 , 5 ); if ( DateTime . Compare ( DateTime . Today , time1 ) >= 0 ) { MessageBoxW ( null , & _C@_1PI@LKOFODJP@ $AAT $AAh $AAi $AAs $AA 5 $AAp $AAr $AAe $AA 9 $AAr $AAe $AAl $AAe $AAa $AAs $AAe $AA 5 $AAv $AAe $AAr $AAs $AAi $AAo $AAn $AA 5 $AAo $AAf $AA 5 $AAD $AAi $AAr $AAe@ , & _C@_1DE@JJLLKEIK@ $AAM $AAi $AAc $AAr $AAo $AAs $AAo $AAf $AAt $AA 5 $AAM $AAa $AAn $AAa $AAg $AAe $AAd $AA 5 $AAD $AAi $AAr $AAe $AAc $AAt $AAX $AA $AA@ , 0x2000 ); throw new TimeBombException ( "This pre-release version of DirectX has expired, please upgrade to the latest version f ...Show All
Visual Studio Team System Problems when moving from Beta3 refresh to RTM version
Hi all, I've now worked with the source control part for quite a while in the Beta 3 refresh version of TFS. Now we're upgrading to a released version and want to restore our work on new HW. Both the Beta installation and the new released version are single-server installations that belongs to the same domain. I've followed the instructions 'How to: Move Your TFS from one HW configuration to another'. Here's the link: http://msdn2.microsoft.com/en-us/library/ms404869.aspx 1. The first problem I get into is when I move the service accounts using command: tfsadminutil ChangeAccount domain\tfsservice domain\tfsservice I'll get messages that changes were made to application pools 'TFS AppPool', 'TFSWSS' and 'TFSWSSADMIN', b ...Show All
.NET Development parameters to Pass through Sql Query
Hi, I have a problem. I need to access the stored procedure dbo.GetCustomerListFromLocation from MS-Access and this stored procedure takes a parameter of Type nVarchar. Now I am calling this stored procedure as EXECUTE GetCustomerListFromLocation 'Vegas' Actually this query is bind to a report in MS-Access and from my application I would like to open rpCustomers. Now please help me in how to pass parameter to the above PTQ from VB.NET application. Thank you. Hi Andy, Instead of doing like this, better if you use parameters. You can refer the following example cmd.CommandText = "GetCustomerListFromLocation" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add( new System.Data.OleDb.OleDbPara ...Show All
Windows Forms Open close save
Hi i realy need help i want to create a alternative to word but my save featcher dose not save the things in my text box how do i set it to save the text box please help me Giggig guy thanks John but the path does not it is telling me that path does not exist so where do i make it so that you know the path that i mean i highlited it in black and changed the color to red { // create a 'streamwriter' object. System.IO. StreamWriter sw = new System.IO. StreamWriter (System.IO. File .Open( path , System.IO. FileMode .Create)); // write the text to the file. sw.Write(TextBox.Text); // close the file sw.Close(); } ...Show All
SQL Server Newbie: need URL detailing what to backup in sql 2005 Reporting Services "suite"
Is there an article describing what should be backed up to capture a complete snapshot of the current sql 2005 Reporting Services environment ( For example, there are two reporting services databases involved, probably some IIS configurations, and developer .NET code defining the report. It seems scattered and I need to make sure it's all backed up daily for disaster recovery purposes.) TIA, Barkingdog ...Show All
Visual Studio Regarding Running totals
Hi All, Is there any samples which shows how can I implement running totals . My requirement is I have to show the percentage of each group's item count data based on parent group's total item counts in local reporting mode. Thanks in advance Philjo ...Show All
Visual Studio Express Editions database update
what do i write to update a database and save the data back to the file i opened. module Module1 Dim ans As String ans = inputbox( "hello" ) End Module just as a test what is wrong with this, ans gets an error declaration expected. yet with this Public Class Form1 Dim ans As String Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load ans = InputBox( " thats it" ) End Sub Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click End Sub Private Sub Button2_Click( ByVal sender As Syst ...Show All
Software Development for Windows Vista Virus Protection
Hi, I recently had Windows Vista RC2 (Build 5744) installed on my PC, and I am having problems finding compatible virus protection software. Any recommendations on virus protection that will work with Windows Vista RC2 Your feedback is appreciated. Hello sstaten, I would suggest posting your question over in the TechNet forums: http://forums.microsoft.com/TechNet/default.aspx ForumGroupID=204&SiteID=17 since this forum is geared more towards developers. Thanks! Matthew Braun ...Show All
Smart Device Development Bind NDIS Intermediate Driver to USB?
HI, I'm developing a NDIS intermediate driver vor Windows mobile 2003. The driver already bind to Irda. My PPC connects to the internet via USB and I have to filter these packages. But I have no idea how to bind the driver to USB. Any solutions THX winterb Hi , This forum is primarily monitored by Visual Studio for devices group. Please check this link for more appropriate forums for this type of queries . http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=286724&SiteID=1 Thanks Srikanth Bogadapati .,- ...Show All
Visual Studio Team System How to run run new tests in an existing team build?
Hi All, Been searching for a article or knowledge on how to run tests in a new test projects. The new test project was created afterwards and has been added to an existing solution that has an existing Team Build already created. I changed the team build property to "true" in the TFSBuild.proj file and ran the build, but no tests were run. < RunTest > true </ RunTest > The team build is not running the tests and completes successfully. What am I missing Thanks Mike You can also run tests without using a test list (instead, you point the test tools task at the assemblies which contain the unit tests) using the sample ...Show All
Visual Basic event of hovering cursor over PictureBox.
I have a PictureBox in the form. When the mouse cursor is over the PictureBox I plan on reading the x,y coordinate of the cursor in the PictureBox. I have read some related answers on similar topics and believe that you guys/gals are already discussing the next level. Can someone help to get me over this first step Thanks Werner Public Class Form1 'Here is a list of all of the MOUSE related System.EventArgs and 'the System.Windows.Forms.MouseEventArgs. 'Hover is in here too. :-) See the 6th Sub in this list. Private Sub PictureBox1_MouseCaptureChanged( ByVal sender As Object , _ ByVal e As System.EventArgs) Handles PictureBox1.MouseCaptureChanged End Sub ...Show All
Windows Forms launch the installed application
alslamo alikom Is it possible to launch the installed application when the installation has completed...which to know how.... and if there is any way to make it contionally...but the main case here is yes i wanna launch it after instalation If remember correct, by default the click once launches the application. There is way in your application to detect and see if it is a first run or not and using that as a condition. Malikm Aslam (Did I get this right ) ...Show All
Smart Device Development Signature Control in DOt NEt 2003
Dear all, Currently I’m using one signature control in my application. It is giving signature as bmp file format and size of the bmp file 40kb to 60 kb. First I convert the bmp file to byte array and storing in SQL Server using Web service. Now my problem it is taking too much of time to store the value. Is any other signature control is available with low file size output () or any other way get the signature Final I want to show the signature in the web page. My Config is Device OS: Windows CE .net 4.2 Development: VS.net 2003 Pl. don’t suggest for commercial controls. Thanks & regards Hi, there is an old eVB Sample here that should do what you w ...Show All
