domochan's Q&A profile
Visual Basic MyWebClient2.DownloadFileAsync(address, fileName) and Windows Media Player
My first post... go easy on me guys.... Thanks. I found what I think might be undocumented issue with these two together. I am creating a custom media player with Windows Media Player as the core. The application also has a pop out side panel which has a webbrowser on it and a ListView. From the ListView you can CHECK a few videoclips to download and pass them to the downloader which uses Dim address As New Uri( "http://www.mywebsite.com/myvideos/shortclips/" & DownloadThis) Dim fileName As String = "MyVideoDownload/" & DownloadThis MyWebClient2.DownloadFileAsync(address, fileName) This works just great for ever file in the list.... ** Now here comes the issue. ...Show All
SQL Server Updates too ineffiecient to call from C#
I'm trying to analyze a 2-Table Select Statement and compare to variables. if x > y then do math and run an update command if y > x then do other math and run update command It's very slow.. about 1 record a second. I haven't used store procs yet, but from what I understand, should increase performance. However, I'm having a difficult time tracking down any examples of this simple procedure as a SPROC. I could try using Managed Code in SQL 2005 and writing the sproc in C#.. but that has a learning curve all it's own. Can someone either point me to a SPROC Tutorial online, or outline the basics for the above function above.. it's too late to go to Borders and the Library didn't have any SQL books not chec ...Show All
Software Development for Windows Vista Security token without authentication
Hello, I would like to know if it is possible for the user to use a managed card (get a security token) without requiring the user to authenticate himself Thanks for your help, Dear Caleb, Thank you for your answer. Cardspace supports a few authentication methods only, and you can see that in other threads of this forum, some of us are asking how we can implement another authentication method. Getting a managed card and its attributes without authentication could allow the RP to process the authentication method it wants. I mean that the managed card could contain information about how the RP should authenticate the user. I mean that the authentication could be done by something else than the STS, after the card's retrieval. The ca ...Show All
SQL Server Seek in a SQL table from Access
I have an MS Access 2003 database from which I want to seek a specific record in a SQL Server Express 2005 database. I can connect to the table and get a recordcount but the recordset.supports (adseek) and recordset.Supports(adIndex) both return false. Any suggestions Specific code I'm using is as follows: Dim cnxn As ADODB.Connection Dim strCnxn As String Set cnxn = New ADODB.Connection cnxn.Provider = "sqloledb" strCnxn = "Data Source=SERVER\SQLEXPRESS2005;Initial Catalog=RAMPSQL;Integrated Security='SSPI';" cnxn.Open strCnxn Set rsWSC = New ADODB.Recordset rsWSC.CursorLocation = adUseServer strSQL = "DailyData" rsWSC.Open strSQL, cnxn, adOpenKeyset, adLockReadOnly, adCmdTableDi ...Show All
SQL Server 2005 SP2 Install Failed, and Now SQL Server is Unusable.
Hi, I have a problem with my SQL Server 2005 instance after trying to install SP2. My machine has a default instance of SQL server 2005, and 2 instances of SQL 2005 express. I installed Express SP2 and this installed without a hitch. Then I installed SP2 for SQL Server 2005. After the install, all the components had installed correctly except the Database Engine, which had a status of failed. I did not investigate why, I simply re-ran the install. It failed again, so I investigated further and I found out it failed because it had not been able to start the service VSS Writer. I looked at the service, and found I had changed the user which gives the service rights to start. I changed this back to Local System so the service c ...Show All
Windows Live Developer Forums MSN Games
Hi everybody, i would like to learn to develop games for MSN. Can anyone point me to the right place to start Any good docs, sites to visit Thanks in advance,Rod. Hi there http://download.microsoft.com/download/a/7/4/a7470441-4171-4c07-93ca-ef5f07e7a9c3/Casual%20Games.zip this kit has reference for MSN Games development ...Show All
SQL Server SQL Server 2005 SP2 MDX Changes
Hi all, Upgrading to SP2 changes the way that MDX behaves, as described in the readme ( http://download.microsoft.com/download/2/b/5/2b5e5d37-9b17-423d-bc8f-b11ecd4195b4/ReadmeSQL2005SP2.htm#_analysis_services ). Can anyone tell me what best practice is to make a query like the one below work as before: WITH SET [Branches] AS '[Branch].[Branch Name].[All].CHILDREN' MEMBER [Measures].[Letters] AS '([Measures].[Contact Count], [Contact Type].[Type Description].[Letter])' MEMBER [Measures].[Letters All Branches] AS 'Sum({[Branches]}, [Letters])' SELECT {[Letters], [Letters All Branches]} on 0 FROM [Communication] WHERE {[Branch].[Branch Name].[Branch 1], [Branch].[Branch Name].[Branch 2 ...Show All
Visual Basic filesystemwatcher event, wait for file to be filled with data, do until loop
I am using filesystemwatcher to monitor a directory for files. Once a new file is created, my program converts the binary file to ascii and does some computations on the ascii file. What is happening is that the binary file is created but has a file size of 0 bytes for a while until it is filled by the sensor (that time will vary). I tried to put the following code into my eventhandler (a do until loop) for it to delay a little bit (until the file size is greater than 300 bytes), but it never fires. It is capturing the new file creation event, I just apparently can't update the length variable (sFilelength)...and the file is 356 bytes. My code is below, any help is appreciated: Dim inputarg As String = e.FullPath 'this is the name ...Show All
Visual Basic Connection to a sql data base
Could someone tell me where the mistake is in this code : Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim MaChaineConnection As String = "Integrated Security=True;User Instance=True;database=BaseDonnes;server=localhost\SQLEXPRESS" Dim MaConnection As New SqlConnection(MaChaineConnection) Dim Instruction As String = "insert into TableNom (Nom, Prenom) values ('aaaaa', 'bbbbb')" Dim MaCommande As New SqlCommand(Instruction) MaCommande.Connection = MaConnection MaConnection.Open() MaCommande.ExecuteNonQuery() MaConnection.Close() End Sub the error message is : sqlex ...Show All
Visual Basic Can't debug projects
Hi, when I try to run my project while coding, I recieve this error message "Error while trying to run project: unable to start debugging.the binding handle is invalid." Please help. thank you Maybe this: http://blogs.msdn.com/habibh/archive/2005/11/10/491572.aspx would solve your problem... Best regards, Johan Stenberg ...Show All
Visual Studio Team System Visual Studio 2005 Team Suite 180-Day Trial interfering with current VS 2005
I currently have Visual Studio 2005 Team Developer on my PC. I would like to evaluate Visual Studio 2005 Team Suite 180-Day Trial. I am interested in the Team Test features of Load Testing, Manual Testing and Test Case Management. If I download the trial, is it going to mess up my current configuration What happens after the 180 days, will my VS die Is the better way to test this to download it on another PC Ideas are appreciated. Thanks. Hi Dana - I definitely understand your concern, I wouldn't want to reinstall all of those add-ins either. I unfortunately don't have a Trial installation on any of my machines but I *think* that you run Add/Remove Features to get this option. Can you give that a try and let me know If not, ...Show All
Windows Forms Display message queues-Slow performance
Hi all, I had created a viewer to shows all the messages in my private queue. Inside the private queue, it has 200000 messages. This huge amount of messages had causes my application was hanged and couldn't close the application. Does anyone met this performance problem Thanks for any reply. I had tried to use the datagridview and used the virtual mode but when i call the MessageQueue GetAllMessages() method to get all the message in queue then the performance is already very slow. After get all the messages, it will have a for loop to bind data to the daagridview. This 200000 times looping has caused the very slow performance too. ...Show All
Visual Studio 2008 (Pre-release) How to configure MessageVersion on BinaryMessageEncoding in config file?
Hi, I can not add attribute messageVersion on binaryMessageEncoding element in custom binding while I can do that with TextMessageEncoding < binaryMessageEncoding /> I can do this in code also: BinaryMessageEncodingBindingElement encoding = new BinaryMessageEncodingBindingElement (); encoding.MessageVersion = MessageVersion .Soap12WSAddressingAugust2004; Is there a way to set MessageVersion of binaryMessageEncoding element in app.config Thanks, IndigoCowboy This cannot be done in config on WCFv1, only in code. Also notice that you can only set (in code) message versions that have Soap12 as the envelope version (i.e., MessageVersion.Soap11WSAddressingAugust2004 would fa ...Show All
Visual Studio Team System CTP7 Error: Create unit test fails
When I right click a stored procedure in my project and select "Create Unit Tests...", the command fails with the error "The system cannot find the file specified. (Exception from HRESULT: 0x80070002)" I use CTP7 and this Visual Studio Version: Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 I am running English VS and your workaround solved the problem. However, this makes the "create test units" not as easy as it should be. Thank you for your assistance. ...Show All
Visual Basic How do I change the cursor while resizing image in Rich Textbox
hey, How do I change the cursor while resizing image in Rich Textbox 'store current cursor - especially usuful for custom cursors Dim CurrentCursor As Cursor = Me . Cursor 'set the current currsor to wait (hourglass) Me . Cursor = Cursors . WaitCursor 'Call resize method ResizePic ( thePic ) 'when finished resizing reset cursor Me . Cursor = CurrentCursor ...Show All
