Tor-man's Q&A profile
SQL Server Compatibility
Hi, I work with database administration and I migrated some databases from 2000 to 2005 (simply backup and restore options). I have tested issues about compatibility. The idea is migrating without update the application. However, I have already seen some problems with compatibility. After migration, all databases stay with compatibility 80 inside de environment 2005 to avoid problems as, for exemple, the sintax to use hints , with 2005 the with clause isn't opptionaly. The problem is that somethings isn't ok this way. We can't extract reports as disk usage, backup and restore events etc or generate diagrams for databases with compatibility 80 inside sql management studio. The reccomendation is change de level for 90, rep ...Show All
.NET Development .Net 3.0 Install Error
Hi I'm getting the following error when trying to install .Net 3.0: >From dd_dotnetfx3error.txt: Communication Foundation. MSI returned error code 1603 [01/11/07,10:52:43] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed. [01/11/07,10:52:43] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0 was not attempted to be installed. >From dd_dotnetfx3install.txt: ... [01/11/07,10:52:42] WapUI: FProductIsInstalled (NOT installed): -1 [01/11/07,10:52:43] WapUI: Obtained failed/cancel flag [01/11/07,10:52:43] Setup.exe: GetComponents() [01/11/07,10:52:43] Setup.exe: get_Components() [01/11/07,10:52:43] WapUI: DepCheck indicates Windows Communication Foundation is not installed. [01/11/07,10:52:43] Setup ...Show All
Windows Forms Cannot cast object of type X to Type X
I have developed a Winforms custom control. I have been getting errors along the lines of 'cannot cast object of type X to type X' The two objects specifed are the same!. I have seen numerous articles about this problem which appears to be long standing. I thought it was connected with the VS2005 design time environment. If I compile my control, create a new VS2005 project and add the control to the form all appears to work at first but if you change any of the properties of the control sooner or later you will get the error. The error even pops up randomly when the VS project is in the background (not running) and I am working in another application!. I have no idea how to resolve this and my confidence in VS2005 is dwindling fast. Can an ...Show All
Visual Basic Explorer's Send To
Hi everyone, I'm currently working on a very importent project, and I have a problem. On the explorer, when you right click a file, on the context menu, you can choose the "Send To" submenu, and there there are options. What I want to do, is to use that option, and to "Send" a specific file to there. It's not always a folder to send to it, it's sometimes a printer driver. How can I do it Ofir. I want to print the rtf files (could be hundreds of them) quickly to a specific printer... Word is doing it very very slow.. Do you know how can I do it Ofir. ...Show All
.NET Development DataTable is loaded very slow if there are two threads doing the same thing
Hi, Here is my problem very short: Loading an oledb table data takes a fair amount of time, if there is only one thread that loads a table with data. If there are two of them, each loading its own table, loading takes unacceptable time. Now very long: I've written an oledb supplier (ATL) for a proprietary data source (it's not a database, it a server that exposes data on the network using an xml protocol). So far so good. I tested the oledb supplier with various methods, including a C++ program (not .net, mfc and ATL for oledb) that launched 10 threads to query the same data. It worked without problems. Now my job is to make a client program that does something with the exposed data. Unfortunately I have to use C# to do that, and of cour ...Show All
Visual Basic How to select a java aplication? In a website or a window?
First of all Hi everybody there! I was wondering if someone could help me with my project, SInce im quite new to VB and still need some experience. My question is how can i make the program select a java aplication from a website or a window And if its possible how can i get the name of the java aplication It would really help me... All help apreciated Thanks in advanced Saskot Sorry this post wasn't answered first time around. What do you mean by Java Application Are you trying to navigate to the applet tag in a website If not can you provide a more specific example as to what you are trying to do. ...Show All
Software Development for Windows Vista UAC elevation dialog minimized
Our application launches a separate executable that requires elevation. Everything works fine except that the UAC elevation dialog always comes up minimized, blinking in the taskbar (users tend to miss the blinking taskbar and think the operation failed). I believe this is a problem with Vista, as I have seen the same behavior in the Windows Explorer (Computer) when right-clicking on a hard drive and selecting "Format...". Is there a way to force this UAC dialog to gain focus immediately Or is this a bug that will be fixed in future Vista builds Running Vista build 5472 There's one key here though, as this page mentions: http://blogs.msdn.com/uac/ "UAC prompts will not ...Show All
Visual Studio Express Editions command button requires two clicks to stop loop?
'VB Express test case 'Why does button2 require two clicks to stop looping Public Class Form1 Dim goflag As Integer Private Sub Button1_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles Button1.Click Dim a As Integer goflag = 1 a = 0 While goflag = 1 a = a + 1 TextBox1.Text = goflag TextBox2.Text = a Application.DoEvents() End While End Sub Private Sub Button2_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles Button2.Click goflag = 0 TextBox1.Text = goflag Application.DoEvents() End Sub End Class These are the kind of problems ...Show All
SQL Server How to locate the database folder in sql 2005
We want to locate the database folder/files (where the databases are stored) like SQL Server Management Studio UI does, when you click on attach database / Add. The question is how to retrieve this folder/files programmatically (C# or VB, SMO ). For example we want our application client to connect remotely to an SQL Server and attach a new database, using the folder/files obtained from the retrieved method. Remove the WHERE clause and get a list of all databases attached to the server, and their locations. SELECT name, physical_name FROM sys.master_files Now... how to determine which one of these listed databases is the database you are seeking since you ...Show All
Visual Studio Express Editions Saving list items
G'Day everyone :) This is a two part questions really. 1. I was wondering if it is possible to save the contents of a ListView box to a textfile on the computer 2. Is it possible to open the saved textfile and that the items are put back into the ListView box Thank you very much for any replies :) Hi again, I found some code that does the job partially not sure if this might help or just give an understanding what im tring to do, here is the code: private void mnuSave_Click( object sender, EventArgs e) { SaveFileDialog saveFileDialog1 = new SaveFileDialog (); saveFileDialog1.Title = "Save" ; saveFileDialog1.Filter = "Text File|*.txt" ; saveFileDialog1.FilterIndex = 1; saveFileDialog1.Overwrite ...Show All
Visual C# networkstream eventhandler
can anyone help me or advice me I am making an application whereby actions are done according to what is read from networkstream. considering that my application is quite big, i wanna reduce threads and one that i see can be reduced is the thread for scanning of data available in the networkstream. what i am thinking of is somekind of eventhandler whereby if there's a networkstream.dataAvailable then it will execute. here's what i did, private void OtherCode() { thread = new Thread(new ThreadStart(wait_for_commands)); thread.Start(); thread.Priority = ThreadPriority.Normal; } &nb ...Show All
Visual Basic Creating a text file with the landscape orientation with vb.net
In vb.net, I am creating a text file and I want it to have the landscape orientation. How do I do that So far I have: Dim fs As New FileStream(filename , FileMode.Create, FileAccess.Write) Dim s As New StreamWriter(fs) s.BaseStream.Seek(0, SeekOrigin.End) 'write all data to the file s.close Thanks for the help. Beski As stated, for Text files you simply write each line at a length that will fill the page when opened in a text editor, such as notepad, and set to a specific font and landspace page layout. For creating a MS Word document, you will need Word installed. You also should download and install the Office Primary Interop Assemblies. You won't use any Fi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rotating points in 3D
I am working with some vector graphics that consists only of an ordered set of 2D points in XY space. The order of points determines the path that a line is drawn through them. I would like to be able to rotate the points in 3D so that I can flip and rotate the vector picture. After performing a rotate of some degree I want to be able to write the new set of points to an array or file or whatever. I also want to be able to display my vector image in a Window. So I have two questions: 1) Is there anything in DirectX that will help me rotate some XY points in a 3D space and then give me the resulting XY coordinates 2) What do I use to draw these points to the Window using DirectX In the past I have used normal Windows drawing me ...Show All
Visual C# How to declare fixed-size arrays?
I need to declare fixed size array within structure. Like this was in C++ struct SomeStruct { int SensorReaderID; .... float SensorValues[10]; // presume I have 10 sensors }; Is it possible Or I should use 10 variables like this: struct SomeStruct { int SensorReaderID; .... // presume I have 10 sensors float SensorValue0; float SensorValue1; float SensorValue2; .... float SensorValue8; float SensorValue9; }; Not sure if this helps but actually there is a way you can have a fixed size array in a structure. The problem with it is that it works only in an unsafe context: [StructLayout(LayoutKind.Sequential)] unsafe struct Test ...Show All
Microsoft ISV Community Center Forums Using VBA macro to locate next free column on worksheet
I need a macro that locates the next free column (i.e. has no data in cells) and then places the cursor in a cell on a designated row. Would like search to start from column B and to place the cursor on row 4 on the free column. <> My VBA code thus far: Function NewColNumber(Range1 As Range) As Integer Dim j As Integer For j = 1 To Range1.Columns.Count If Range1.Columns(j) = "" Then NewColNumber = Range1.Columns(j).Column Exit Function End If Next End Function Sub SaveCOLComments() On Error GoTo Err_Part Dim Range1 As Range Dim intNewColNumber As Integer ' ...Show All
