QuinceArj's Q&A profile
Smart Device Development Cdate cast error
Hi all I'm trying to do a Cdate(datestring) where datestring is the value 25/6/2006 but it's giving me a cast error here are some code examples from the command window Now #11/28/2006 6:12:49 PM# CDate("25/6/2006") Run-time exception thrown : System.InvalidCastException - Cast from string "25/6/2006" to type 'Date' is not valid. CDate("6/25/2006") #6/25/2006# system.Globalization.CultureInfo.CurrentCulture {System.Globalization.CultureInfo} Calendar: {System.Globalization.GregorianCalendar} CompareInfo: {System.Globalization.CompareInfo} CurrentCulture: {System.Globalization.CultureInfo} CurrentUICulture: {System.Globalization.CultureInfo} DateTimeFormat: {System.Globalization.DateTimeFormatInfo} ...Show All
SQL Server Bad Proc Template
There is a base-installed template for a stored procedure called "Create Procedure with CURSOR OUT" which has this snippet: EXEC < Schema_Name , sysname , Schema_Name >.< Procedure_Name , sysname , Procedure_Name > < @proc_cursor_name , , @sample_procedure_cursor > = < @variable_cursor_name , , @test_cursor_variable > OUTPUT WHILE ( @@FETCH_STATUS = 0 ) BEGIN FETCH NEXT FROM < @variable_cursor_name , , @test_cursor_variable > PRINT 'put user defined code here' END But even after instantiating it - it doesn't work. The "FETCH_STATUS" must be seeded with a prior "FETCH" before it has any meaning. This leads me to ask: ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Reset or not reset a IDirect3DDevice9?
Hi @ all, i'd want know if calling IDirect3DDevice9::reset() is the correct way after switching from windowed mode to fullscreen. In PresentParameters there are some attributes that have sense only in fullscreen mode, as well as FullScreen_RefreshRateInHz or MultiSampleType. Have I to call reset() function Is it the correct way What do I have still to check Thx ;) Yes Reset() is the right way to switch to full screen, it's also the way to change any present parameter. Take care that windows style often need to be modified when moving to fullscreen : see Dx tutorial Step 1-"Creating a Window" for more details about that. You could also have a look to DXUT code which does that well. ...Show All
SQL Server Running sp_blocker_pss80 under SQL2005 and SQL 2000 shows many spids have non zero waittype under 2005
I was trying to test sp_blocker_pss80 (and SHERLOCK) on an SQL 2005 system and noticed that it gave much more output than on an SQL 2000 system . This was because the waittypes of many spids were not zero while under SQL 2000 the same ones were zero. Why is that For instance here is the subset of the query which is part of the sp_blocker_pss80 run on an sql2005 and sql2000 respectively select spid, status, blocked, open_tran, waittype, waittime, cmd, lastwaittype from master..sysprocesses SQL 2005 spid status blocked open_tran waittype waittime cmd lastwaittype ------ ------------------------------ ------- --------- -------- -------------------- ---------------- -------------------------------- 1 background ...Show All
Visual Basic MAKING .NET CONTROLS - OCX VB6 COMPLIANT
Hi all, I have to create a .NET control. It have to run in a vb6 app. I'd like to use it like a standard OCX control. I've found in the net that it's possible. there's anyone who can tell me in which way I can do it It's simple: have a .net control and import it in a VB6 controls list by "add control". and have it working right. Dario TIA for any suggestion! Dear Toddap, does anyone have any simple to follow articles about exposing a .NET class as non-ocx activex control, the class needs methods plus an event to be called when an asynchronus task is complete. again this is actually to be used in the script of the software product 'wonderware intouch view' ...Show All
Visual Basic FOR EACH
Think I posted this in the wrong forum... Hi, There is a sample in the help for VS called " HOW TO: Make a Visual Basic .NET Class Usable in a For Each Statement". I wanted to use it for enumerating tax classes in a financial program as it would make the code more readable and lines shorter...So I modified the example only change was to add runtime initialisation of the items rather than a fixed set as in the example and it semi-works... In the example it passes only one iteration of the for each loop my application uses it many times and each instance after the first iteration fails with the loop never executing as it is at the end of the set. Applied this to the example as is and it has the ...Show All
Windows Live Developer Forums It finally worked
We are getting this error since saturday night: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed Our client is linux/axis. Anybody else seeing that I'm also having trouble with the suggested steps. It won't work unless I import the final certificate as well. Furthermore, assuming you have already imported msft_ia_prod and msft_ssa_prod into cacerts , then passing -trustcacerts (*) to keytool when importing the final certificate should avoid the trust confirmation question. However, it still asks you for confirmation, as it somehow doesn't recognize the link betwen the fin ...Show All
Visual Basic Change icon in treeview control
Could you please tell me how to change the icon when the 'plus/minus' sign in a treeview control is changed. For example, if the sign beside a node is "-", then display icon "A"; otherwise, display icon "B". I would highly appreciate your help! tdcntt wrote: Hi Jay Vora, Thank you very much for your response! I am sorry that I forgot to mention the language. I am using C#. I am pretty new to C# and I don't know VB at all. I was wondering if you had a similar example for C#. Thanks again!!! Hello tdcntt, If you would like C# replies you should post your question in the c# forum...this is the Visual Basic Forum ...Show All
SQL Server DBCC DBREINDEX question and problem
I have really bad database fragmentation, in some cases up to 95% fragmented. I continue to run DBCC DBREINDEX on these tables to try and fix this problem but from some reason, no matter how often I do it, I never see an increase in Scan Density. The tables in question do have more than 8 pages so I know that is not the issue. Anyone have any insight on this http://www.sql-server-performance.com/rd_index_fragmentation.asp http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/ss2kidbp.mspx The above links should help you to understand the features available in SQL Server and resolve the defragmentation problems. ...Show All
Visual Studio crash when attempting to run VS under Windows Vista
I just upgraded from Windows XP (Home) to Windows Vista (Home Premium). I already had VS 2005 Professional installed. Microsoft Update downloaded and installed VS80sp1-KB926601-X86-ENU.exe. I then downloaded and installed VS80sp1-KB929470-X86-Beta-ENU.exe. Right-clicked on devenv.exe and selected "Run as administrator". Splash screen comes up for about 5 minutes. Error dialog: "Runtime Error! This application has requested the Runtime to terminate in an unusual way. Dismissed this by pressing the OK button. Splash screen remains. I have to terminate through Task Manager. The copy of devenv that is running is using 50% CPU on a dual-core machine, so it is using a full core. Any hints as to what I need to do to get VS 2005 ru ...Show All
.NET Development failed to connect to an oracle 8i database
Hello everybody, I hope someone would be able to help me… I need to programmatically talk to an Oracle 8 database located in a remote server. I have installed the client oracle 8 + Toad into my computers (Windows XP) and I have no problem connecting to this database by using toad. Then I added the System.Data.oracleClient dll to my project, imported it and tried to connect via my application, and had the ORA-12560 error. I can’t open the connection. My connection string is : “BaseName. UNIV-PARIS.COM (from the names.default_domain in the sqlnet.ora file); user id= ; password=” Have you any idea of what my problem is Thanks you for your help, Susana You co ...Show All
.NET Development Difference between BindingList<T> and List<T>
I wrote a small application that binds my datagrid to a List<T>. It works fine. Then reading some blogs, I found BindingList<T> so I converted my List to a BindindList. It works fine. What is the difference between the two since they both do the same thing. I looked at the methods and yes, there are differences but I guess I am looking for a senario that List<T> can't handle, therefore one must use BindingList<T>. Thanks Ralph Hello All. Ralph: The BindingList<T> implements the IBindingList interface, which gives you several helpful abilities, like notifications when list items are changed, the ability to rollback transactions to the list, and things like that ...Show All
Visual Studio Express Editions Hex Calculations help Please
I think I have presented myself with a rather difficult challenge. I need to convert a hex value to Radix 24. I'm not sure if this these are the right terms but I think it's converting a Base16 to a Base24. If any one could maybe help me out I would be extremely grateful. I have searched the internet for a long time and was only able to find calculators. I do need this for VBEE that's why I'm asking here <br> Wellnow, I'm not the person who can give you the answer on this because I am 'math challanged'. Anyway ... In base 16 we count 0123456789ABCDEF How do you count in base 24 Just curious. The satirist Tom Lehrer famously remarked in his song parodying new math that "base 8 is just like base 10.. ...Show All
Windows Forms C#: Windows Form Application (DLL)
Hello, Does anybody know why C# removes physical .EXE file from the DEBUG folder after you change the setting to create a .DLL from your application. How is it's mechanism Is there any setting to set to keep the .EXE file as well. Thanks, Mathew Off hand I cannot say how this happens behind the scenes or how it could be prevented... but I still have to ask... why is it you want to keep an old build of your project around in such a form What is it you are trying to achieve Perhaps there is a better way. ...Show All
Audio and Video Development how to get the metadata information for audio and image files??
Hi, I am developing an application part of which would display information about audio and image files. The information would primarily be the metadata information of the files. For example, for an audio file, the information would be the artist, album, author, category, length of the track, bitrate etc., which form the metadata of the file. The information for the image files would be the height & width of the image, whether the image is colored etc., I am sure there would be some API / library in windows that could give all these information. It would be nice if anyone of you can help me out in knowing what the API/library is, if any. If there is no windows API / library, is there any third party library that is simple to give only t ...Show All
