Software Development Network Logo
  • Audio and Video
  • .NET Development
  • Windows Forms
  • Visual C#
  • VS Team System
  • SQL Server
  • Visual Basic
  • Game Technologies
  • Visual FoxPro
  • IE Development
  • Microsoft ISV
  • Windows Vista
  • Visual C++
  • Smart Devicet
  • SharePoint Products

Software Development Network >> danadanny's Q&A profile

danadanny

Member List

Dano007
SuperFox
Divermarv
Dietz
Stefan Mueller
TOMAHAWK1
RLN
Reta
PiroNaut
Marko B. Simic
Kolf
Ruki
Njofra
pbairoleto
Waiman Li
WelshBird
Samall
mranzani
Joseph Geretz
Stephanie L
Only Title

danadanny's Q&A profile

  • Visual Studio Team System Rule to prevent Cross Site Scripting

    hi,I would like to write some custom rules. First I want to prevent input by validating userinput by using reg ex. Second, I want to use HTMLencode/URLencode every time it is needed.can you give me some informations thx Unfortunately, this kind of rule would be very complex to write and without writing some sort of data flow analysis engine, it won't be possible. However, if you know what methods need to call HtmlEncode and UrlEncode, you could walk over the instructions and simply see if the method actually calls them. However, be aware it won't be able to detect if it is being called on the right user input. Tell me if you are interested and I will give you a few pointers. Regards David ...Show All

  • Visual C# How to Create table in richTextBox

    How can programatically i create a table in richtextbox. Thanks Have a look at this, from the RTF specs: http://www.biblioscape.com/rtf15_spec.htm#Heading40 ...Show All

  • Visual C++ Teach me what is _T?

    I has such experience: CString s1="testing"; But compiler report error error C2440: 'initializing' : cannot convert from 'const char [7]' to 'ATL::CStringT<BaseType,StringTraits>' I don't understand it. If I modified it to : CString s1=_T("testing"), complie will be no problem. But if I tried to print it out by : TRACE(".... %s\n", s1); the output is only the beginning character 't', not whole string. Why this happened And how can i print out CString type messages Hi, Ganymede. This thread was posted when I just studied C++, these terms: ANSI, Unicode, Multi-Bytes confused to me because I used to use C. Now, I'm clear what they are :-) Any ...Show All

  • Software Development for Windows Vista SUA Errors on certain Application(C++ based)

    While testing my application through Standard User Analyzer tool on Windows Server 2003 platform, I got these following errors(stop code mentioned): 1) Access was restricted to trusted user only. RemoveDirectoryA: Directory (\Device\HarddiskVolume1\Program Files\Common Files\InstallShield\Professional\RunTime\11\50\Intel32) only grants requested 'DELETE' to 'NT SERVICE\TrustedInstaller, NT AUTHORITY\SYSTEM, BUILTIN\Administrators' StopCode: 0x331B 2) The application called a Writeprofile API with LUA issue Ini: WritePrivateProfileStringA called with Ini file 'C:\Program Files\InstallShield Installation Information\{75D956F1-EF1D-4917-A082-1B97ABBF3DF1}\setup.ini', Secti ...Show All

  • .NET Development Best way to localized applications in .NET 2.0

    Hi, I would like to ask you what is the best way to localize applications in .NET 2.0 and how Microsoft do it in Vista Wojtek There isn't a high percentage of .NET applications included with Vista. Generally, with Visual Studio, you set a Form's Localizable property to true and you can then add text for each language you want to support in the resources. The Designer generated code will get the text from the resources with a ResourceManager object and will get the text that matches the users currently set culture or the text marked as the invariant. When formatting/parsing data you can either use the default settings (which is to accept the user's culture settings) or override that by p ...Show All

  • SQL Server bcp import of decimal data (long)

    I am trying to import data from a flat file into a decimal(9,2) column. Here is the decimal data in each record of the flat file: 123456789 There is no decimal point in the field but last two positions represent the right of the decimal point, some fields have leading zeros) I have discovered the following format file (extract) appears to do the import and place the decimal properly in the table column (1234567.89). Note the table column number and name are the same: snip 11 SQLCHAR 0 7 "" 11 FieldName "" 12 SQLCHAR 0 2 "" 11 FieldName "" snip But bcp throws this error after a few seconds: snip C:\>bcp DatabeseName..Tablename ...Show All

  • Visual Basic how to use the events of runtime define control

    hi i m using code in my vb.net programe which is listed below for i=0 to 10 dim flt as new label me.control.add(flt) flt.visible=true: flt.left=128*i :flt.top=22*i next i want to use the mouseclick event of the all 10 label controls. any body know the code please give me. thanks regard Shahzad for i=0 to 10 dim flt as new label me.control.add(flt) flt.visible=true: flt.left=128*i :flt.top=22*i AddHandler flt . Click , AddressOf Labels_Click next Private Sub Labels_Click ( ByVal sender As Object , ByVal e As System . EventArgs ) .... End Sub ...Show All

  • Windows Forms Searching For Syntax to Use Table Adapter In Child Forms!

    I have an MDI Form, which has aTabStrip to display other forms as child documents. One of the child forms has a DataGridView which is bound to a database through a Table Adapter. I am able to scan through the list of Children forms to select the appropriate Form and then access the components on the form such as: Dim iCount As Integer = -1 Dim iSelect As Integer = -1 For iCount = 0 To MainForm.MdiChildren.Length - 1 If MainForm.MdiChildren(iCount).Name = "FormNameComperTo" Then iSelect = iCount Next Dim lbl As Label = MainForm.MdiChildren(iSelect).Controls("LabelNameCompareTo") lbl.Text = "Changed Text" My problem is in how to access the data connections used for the DataGridVie ...Show All

  • Visual Basic I NEED HELP!!!! PLEASE

    How do i go about skipping spaces in my Visual Basic 2005 Express Edition console application output lets say i type the number" 12345 " and want it to display " 1 2 3 4 5 " skipping 3X spaces in between each letter. I already am using Modulus to single out each integer, Is it just me or is this the most useless application ever If I read this right you ask the user for an integer (which you assume, I think, is 5 digits long) rip it up one digit at a time and reassemble them. I'm not actually just complaining but there are much better ways to accomplish this. ...Show All

  • Visual Basic Scroll bars

    I am a student who is taking a Visual Basic.net course and I am having major troubles coding for scroll bars. I am able to place them on the form in design time. However, when it comes to coding procedures for them, I am at a loss. One person told me that I must have a "Scroll" procedure and a "Value Changed" procedure for each scroll box. Someone else told me that I must also have a form load procedure for each scroll box. If anyone is willing to help me out, I will gladly send you the code and such so that, perhaps, someone can figure out what I am doing wrong. Thank you. The help files and the entire msdn library are available online ...for scroll bars class see: http://ms ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Locking of Managed Texture

    I'm currently developing an application which will use managed textures. Part of the code needs to create the texture data in a seperate thread. I will be locking the texture and passing the data pointer to a function. My question is will the video memory texture continue to render while the texture is locked Or should I copy out the existing data to a temp buffer for editing, then copy it back into the managed texture GrkEngineer Vite Falcon wrote: "I will be locking the texture and passing the data pointer to a function." I believe that u cannot lock a managed texture. Try using texture created in system memory. This is incorrect. All textures are lockable except those in D3DPOOL_ ...Show All

  • SQL Server Grouping Level in Matrix component

    Hi all, I have an other question about Matrix component. I'm using grouping on rows whith Drill Down enabled. The problem is when I drill down, the level below is shown on the same row. I would like the level to be shown on the row below his parent level to keep the values grouped in the data area of the Matrix: Here is how it looks % Class. Amount Class. A AA AAA 98,82% € 5.325.409,41 AAB 93,40% € 42.264.672,37 AAC 95,21% € 17.277.397,23 AAD 95,65% € 116.121.355,60 AAE 99,88% € 426.218.010,59 AAF 94,63% € 35 ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. The Unofficial Xbox 360 dev

    Looks like the home-brew community is coming up with their own solutions: http://www.xbox360fanboy.com/2007/01/01/xbox-360-finally-hacked-to-run-linux/ Hope this "inspires" MS into providing better support for hobbyists. If the home-brew dev gets going, then it's probably going to have more open APIs (network support, no CLR restrictions to hardware, no VSExpress, maybe more affordable..etc). But it obviously won't have the official Xbox live support either. Should be interesting to see where this leads. Yeah, the camera shifted a few times to keep track of the actions. Lots of questions unanswered from the video. He could be using a crossover cable, (or a burned DVD heh)... Well, I hope it's not a hoax because it ope ...Show All

  • Visual C# Type inferrence from anonymous methods

    We have a generic method to perform a common pattern on an object: public static void UseServiceClient<T>(Action<T> action) where T : ICommunicationObject { ... } Ideally (as far as C# 2.0 goes), the call to this method would look like: UseServiceClient(delegate(SomeServiceClient client) { ... }); But this produces an error: CS0411: The type arguments for method 'UseServiceClient<T>(System.Action<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly. So, we must call it like so: UseServiceClient<SomeServiceClient>(delegate(SomeServiceClient client)... Which is ugly/more verbose. If we locally declare the Action<SomeServiceClient> and pass that in, it works. Is ther ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Custom communication with the 360

    I intend to use IronPython to speed up my game development a bit. This would give me some more control at run-time to create and manipulate objects for the sake of debugging. If possible, I would also like to support this on the Xbox 360. I don't have a spare USB keyboard lying around and I'm not even sure if IronPython will run on the 360. Preferably, I would like to show some sort of separate Python console form on the Windows side, but I am not sure if there is any way to implement this without networking. Console.WriteLine seems to do nothing, so I don't even think I can use Visual Studio's output window. Will there be anyway for me to do this, or will I just need to implement a slide down console like all the Quake engine games ...Show All

©2008 Software Development Network