steve64's Q&A profile
Software Development for Windows Vista SqlTrackingService and Sql Injection
Looking around the SqlTrackingService, I noticed that it does a lot of dynamic sql generation. The problem is that it makes it (fairly easily) subject to SQL injection attacks because it sometimes does this with tracking information coming from activity data, which possibly might even come from external inputs. For example, it's easy to cause the SqlTrackingService to generate invalid SQL with a simple ' char passed to Activity.TrackData() as part of the string data to track. Heck, with a little more work you can craft a string like this: this.TrackData("Test", "', @UserData_Blob=0x00, @UserDataNonSerializable=0;INSERT INTO Ev ...Show All
Visual Studio Express Editions Directory.Getfiles
i want to do a search for all textfiles in C:\ so i did this ListBox1.Items.AddRange(IO.Directory.GetFiles("C:\", "*.txt", IO.SearchOption.AllDirectories)) but i get an error saying "Access to the path C:\system vloume information is denied", if it was in a loop i could say on error resume next but with this you cant, is there any other way around it thanks. Hi, try this code: string [] dirs = Directory .GetDirectories( "c:\\" ); foreach ( String d in dirs) { if (d != "c:\\System Volume Information" ) listBox1.Items.AddRange( Directory .GetFiles (d, "*.txt" , SearchOption .AllDirectories)) ...Show All
Windows Forms exe <-> dll interaction
I have a dll written in C#, the dll includes a form embedded. meaning in certain condition while the function in the dll is called, the form will pops up . But I can't make the form stays. dll function: public bool isValid() { if (!matched) { showdoor(); } } private void showdoor() { &nb ...Show All
Visual Studio 2008 (Pre-release) Dependency Property
I have created a dependency property on a custom control (MarkControl) public static readonly DependencyProperty LatitudeProperty = DependencyProperty .Register( "Latitude" , typeof ( int ), typeof ( MarkControl ), new PropertyMetadata (0)); and a CLR property [ BindableAttribute ( true )] public int Latitude { get { return ( int )GetValue(LatitudeProperty); } set { SetValue(LatitudeProperty, value ); } } When I create a data template on another control which has a MarkControl as part of it with the lattitude property databound to a member on a collection, and try and I use that data templ ...Show All
Software Development for Windows Vista Vista Install 5342 problems
I have downloaded vista 5342. I start installing it and it manages to rech phase 2 of the install. Now after the first restart during phase 2 of the install my screen eventually goes Black. It has an underscore "_" flashing at me in the top left corner of the screen. This also happens to me on build 5308. I heard that this black screen is where the hardware is checked. I have left it on this black screen for 1hour and still no look. I think it will be hardware related. My system is: AMD Athlon 64 4000 1gb geil dual channel PC3200 HIS Ati radeon x1800xt MSI K8N SLI Platinum 200GB Maxtor Diamond Max 10 ...Show All
Visual Studio ReportViewer in Firefox version 1.5.0.1
I have problem rendering the ReportViewer in Firefox version 1.5.0.1. The width of the ReportViewer is much smaller than expected and the data is just messed up. But the ReportViewer works fine in the early version such as 1.0.7. Any clue on that Thanks. I am not aware of any rendering issues unique to the version of Firefox. Will you send a simplified RDL that shows the problem We will investigate it. ...Show All
Visual Studio How to access reporting dataset after report is run?
How do you access the dataset that the current instance of the report is run on outside of the report The reason I want to do this is because I have created my own parameter toolbar and want to be able to populate the dropdown menus with data that is returned from the dataset. Specifically, I want to be able to extract things like the UserIDs and/or the Status fields that are returned inside the dataset. I assume you are using server mode, since in local mode you have to supply the data to the report object. In server mode, the viewer never gets the underlying dataset from the server, so it can't return ...Show All
Visual Basic Win32 API WriteFile "Error Invalid Handle"
Hello, i wrote a programm which can help to send packets to my USB device but when i try to use the method WriteFile (in sub sendpacket(startsessionpacket)) i get the win 32 error (Error Invalid Handle) howewer work hDevice=createFile (...) great! so what's wrong with my code please Help Me Option Strict On Imports System.Runtime.InteropServices Public Module DeviceIo Dim theDevInfo As IntPtr Dim hDevice As IntPtr Dim usb_packet_size As Integer Dim deviceioResult As Boolean Dim thePacket() As Byte Dim write As Boolean = True Dim SetupDiGetDeviceInterfaceDe ...Show All
Windows Live Developer Forums Search News?
Is it possible to search the news section of MSN only, not the regular web search me* wrote: Yes, it is possible to search News. You have to set the the SourceType parameter to News . You can try this with an ASP.NET 1.1 client and an ASP.NET 2.0 client with Atlas (AJAX) . I don't think this statement is correct as there appears not to be a SourceType News. Please correct me if I'm wrong. I too would like to know how to search through the API on the vertical 'News' Does anybody know - Microsoft ...Show All
Visual C++ Linking the microsoft platform SDK to VS 2005 express
Hi, i have read through various threads regarding methods to link the microsoft platform SDK to visual studio 2005 express beta 2. Personally i have tried changing the express.dll.config file to "C:\Program Files\Microsoft Visual Studio 8\..." where I include the path to where my microsoft platform SDK is located. Well that doesnt work. So i tried the "create a PlatformSDK folder under VC folder" method. N ow afxwin.h is located in C:\microsoft platform SDK\include\mfc so basically i changed the folder name to PlatformSDK and put it in the VC folder. Well that didn't work as well. What happened is i will still receive an error message saying ...Show All
Visual Basic Unable to load DLL after upgrade from VB 6 to VB 2005
I recently upgraded my software from VB 6 to VB 2005. I am now coming across a problem with the functions from DLLs. When I try to call a function from one of the DLLs are "unable to load" and "could not be found in the specified module". Private Declare Sub SORT_FORT Lib "KEY_FORT.DLL" ( ByRef N As Short , ByRef ARR As Double ) The Function worked fine in VB 6. anything that needs to be added or any suggestions thanks, Gareth Where is the KEY_FORT.DLL Is it in the path or the same directory as the project If not you may have to supply the path to the dll on the declare stat ...Show All
Visual Studio 2008 (Pre-release) Indigo Installation Problem ( Very Urgent)
I downloaded the software from MSDN Subscritpions WinFX SDK - Community Technology Preview 1) winFx Runtime Components – September 2005 CTP(English) 2) winFx SDK for the WinFX Runtime components – September 2005 CTP( English) I downloaded these two , First One contains Setup,when I run that one iam getting setup Error. Iam getting the same error which is mentioned in this site( http://www.ureader.com/message/867599.aspx ) but they suggested to remove previous version of Indigo Beta( March CTP) but I havn't installed that one , directly I Installed the New CTP. It would be a great help, if any one help me in solving this problem ...Show All
SQL Server Multi Value Parameters
Hi, Thanks for the reply...I think I should have been a little more clearer. I can specify the multi paramaters, but I want to be able to select certain values from that parameter like in the pic. E.G. I have a dropdown with City's in, but I dont want to select one, which is what I can only do at the moment, I want to be able to put a tick in the tickbox next to it to select more than one Does this make sense RS2005 is not for production purpose. Wait until november 7th. I think it's possible in RS2000, but I've never tested RS2000. I'm sorry. ...Show All
SQL Server Member count limit
Hi Guys, Is there a limit in the number of members in a dimension I'm having a problem in showing the other members of my dimension in the pivot table. I've queried the dimension table and found out that the records displayed are from 1 - 32000 only. The rest were not shown in the pivot table. Please enlighten me... What version of Analysis Services you are using: 2000 or 2005 But anyhow. It looks like you are running into the limitations of pivot table. Try running your query in some other client tool. Edward. -- This posting is provided "AS IS" with no warranties, and conf ...Show All
Windows Forms Crystal Reports HELP?
Where is it in VB.net I have the standard version and need to make a report but cannot find any way of doing it in VB can anyone help me Does anyone know if the Crystal Reports components even come with VB.NET Standard ...Show All
