blabus's Q&A profile
SQL Server Using OPENROWSET with an IP address
Hi I've got an openrowset query that works perfectly if I enter the computer name, but it fails when I enter the IP address. Is there a setting somewhere that I need to enable to make this happen Thanks in advance Can you asnwer the questions listed in this posting: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=362498&SiteID=1 ...Show All
Audio and Video Development MFT_MESSAGE_SET_D3D_MANAGER
Hi, all: How can I get MFT_MESSAGE_SET_D3D_MANAGER from ProcessMessage in a MFT And where to assign MF_TOPONODE_D3DAWARE and MF_SA_D3D_AWARE attributes BTW, is it possible a MediaSource to get the D3DManager interface Thanks Fei-tian I have same issue here... IMFTransform::GetAttributes is NEVER called on my transform. I don't know what's wrong. I tried to set MF_SA_XXX on all IMFAttributes interfaces I can touch in IMFTransform but still this message is never passed. ...Show All
.NET Development parallel port inpout32.dll on Vista RC 64Bit
Hi there! I'm using the inpout32.dll on 32 Bit Windows XPSP2 for getting info from the Parallel Port (paper out). I ask via VB on Visual Studio 2005 Express. The DLL is in Windows/system32 and it works fine. If the DLL is not availabel I "try" it and give a text "not found" Now I startet the vista RC 64Bit on the same System (AMD). My programm works fine, but it cannot access the DLL. I always get the info that there is no DLL available. The DLL is either in system32 or system32/driver. I can see it, I can move it but I cannot access it. I have admin rights of course. can anyone help me the DLL is from http://logix4u.net/inpout64.htm I did. Doesn't work. Everthing' ...Show All
Windows Forms Click on a link programmatically using WebBrowser control
How can I click on a link using C# and DOM The page is loaded within my WebBrowser control. Thanks The following code will "nearly click" on the first link on the document loaded in your web browser control. The "clicking" is simulated using the enter key which, when a link is focused, performs exactly as clicking it! only the concept is shown here. Now, you didn't clarify which link you wanted to click, but you can easily change the code. Just obtain the appropriate link element in the "ele" reference and use the same code. For example, you might iterate through the collection of all links in the document "es" and search for your own link. The Code: HtmlElementCollection es = webBro ...Show All
.NET Development How to send image as XML
I want to send images as XML via Web Service. How can I do that Is there any limitation e.g. size of image. There is no "real" limitation except performance will suffer beyond certain sizes. The key consideration is deciding how you are going to encode the image for transport, and there are various methods for doing this. Try searching for: web service binary attachments ...Show All
SQL Server Restored Database/Diagrams Support/SQL-Server 2005
Hello, I have restored a database from SQL-server 2000 into SQL-server 2005 and when I try to install diagram support, I receive this error: TITLE: Microsoft SQL Server Management Studio ------------------------------ Database diagram support objects cannot be installed because this database does not have a valid owner. To continue, first use the Files page of the Database Properties dialog box or the ALTER AUTHORIZATION statement to set the database owner to a valid login, then add the database diagram support objects. ------------------------------ Section 5.8.1 of the SQL 2005 Readme file says: The installation of these support objects can fail on a database that has been attached or restored from another instance of SQL Server. This ...Show All
.NET Development io serial port and withevents in a class
Hi, I have the following class, that i need to handle the serialport event see note below Imports System.IO Public Class Class1 Dim WithEvents serialport As New IO.Ports.SerialPort Function GetWeight() As String Dim ReturnData As String = 0 If Serialport.IsOpen Then Serialport.Close() End If Try With Serialport .PortName = "COM1" .BaudRate = 1200 .Parity = IO.Ports.Parity.Even .DataBits = 7 .StopBits = IO.Ports.StopBits.One .Handshake = IO.Ports.Handshake.XOnXOff .WriteTimeout = 5 End With Serialport.Open() Catch ex As Exception Return ex.ToString Exit Function End Try Try Serialport.W ...Show All
SharePoint Products and Technologies Limiting the audience/permissions of a quicklaunch item
Hi, I am using the Sharepoint .Net SDK through Powershell to set the audience permissions on menu items in the quicklaunch menu of a sharepoint site. I'm using the following code ( suggested on this blog ) to do this... $siteCollection = new-object Microsoft.SharePoint.SPSite " http://server/" $quickLaunch = $siteCollection.AllWebs["test"].Navigation.QuickLaunch $node = new-object Microsoft.SharePoint.Navigation.SPNavigationNode "name", " http://test" , 1 $quickLaunch.AddAsLast($node) $node.Properties.Add("Audience", ";;;;Site Owners") $node.Update() $site.Update() I can't find any documentation for the audien ...Show All
SQL Server MSDE 2000 Replication Conflict
I am using MSDE 2000 for my replication. the problem is that althought at time creating publication it inserts GUID into every table but if one table in 2 nodes has same primary key, it inserts only one row ( accorrding to prority ). there are some Conflict Reslover methods that can be used for this purpose. i wanted to ask that is there any other way for me to resolve this conflict. i am asking for a new way because my database schema has been created and a lot of coding behalf of that schema has been done. I'd be thankful if you guide me. Regards, Are you trying to insert the same primary key at both nodes In your case, conflict resolver won't work for you because although you have inserted at both nodes, they are tr ...Show All
SQL Server Calling .Net Assembly or Dll from SQL Server 2005 at config Level 80
Hi, I create a dll assembly with the strong name in VB.Net environment. Created assembly is registered also. SQL Server 2005 configuraton level is set at "80" I want to call that assembly from stored procedure with the database config level at "80" But when i execute the stored proecure i get the following error Error Source: "ODSOLE Extended Procedure" Description: "Invalid Class String" My Code in VB.Net is given below: Imports System Imports System.Reflection Imports System.Globalization Imports System.IO Imports System.data Imports System.Data.SqlClient Imports System.Data.SqlTypes Imports Microsoft.SqlServer.Server Imports Microsoft.VisualBasic Imports System.Diagnostics I ...Show All
.NET Development Searching for a file in multiple paths
Anyone know if there is a builtin method or something in, say, System.IO that allows one to find a file given a path list Something like: System.IO.File file = System.IO.Path.FindFile("myFile.txt","c:\;c:\temp;d:\files\myfiles\etc;"); This would return a file or file name. OK, I went ahead and wrote it myself. It's a pretty simple piece of code. The first method takes a "normal" semi-colon delimited path string, while the second method takes a list of paths to search. Both methods return a FileInfo object. The second method checks if the file name is null because my application could pass it a null file name. Feel free to remove it. FileInfo FindFile( string FileName, string PathString) { return FindFile(Fi ...Show All
Visual Basic Scan for open ports
I need to know how to make a basic port scanner that scans a host, then lists all the open ports in a table. Do a quick search on www.codeproject.com or www.planet-source-code.com in the .net sections and you will find heaps of examples on the subject. ...Show All
Windows Forms Treeview OwnerDrawAll example
Hi, I'm looking for a example for Treeview.DrawMode = TreeViewDrawMode.OwnerDrawAll. Any suggestions Thanks The following links might be useful http://msdn2.microsoft.com/en-gb/library/system.windows.forms.treeviewdrawmode.aspx http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=818698&SiteID=1 ...Show All
Visual Basic Person's Age
Hello, 1. The Form has one TextBox and one Label. No Buttons. How can the user put BirthDate data into the Form's TextBox1 field to be processed by the code 2. While the code works, is it right Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim BirthDate As DateTime = #6/23/2005# Dim age As Integer age = (DateTime.Now.Year - BirthDate.Year) + ((DateTime.Now.Month + DateTime.Now.Day / 100) < (BirthDate.Month + BirthDate.Day / 100)) Label1.Text = age If age = 0 Then Label1.Text = "<1" Else If age < 0 Then Label1.Text = "X" End If End If End Sub ...Show All
.NET Development Problem with Message Queuing
Catch a problem using interface of MessageQueue component : I can't see public queues of domain controller on domain computer. When I try to explore MessageQueuing-labeled node in Server Explorer => catch exception: "Workgroup installation computer does not support the operation." What should I do, to pass this problem Thanks ( and sorry for my English =) )... Hello! How are you trying to access the public queue A few example lines of source code would certainly help us diagnose your problem. Some other quick thoughts are: Make sure you have access to the particular domain controller you are trying to access the queue on. Restart the MessageQueuing service on the domain control ...Show All
