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

Software Development Network >> hank voight's Q&A profile

hank voight

Member List

Jeff F
WoZoI
ykgreene
rick_james
flash.tato
cr4zykilla
Ricardo Pinto
xyzt
Zadoras
mr3
Predator14567
TiKu
Ido_ba
ron nash
stonejc
xlordt
Htorrejo
John12312
Demokratizator
Elofsson
Only Title

hank voight's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Assign to Vector2?

    This is probably an easy question, how do I assign to a Vector2 This was my first bad guess: Game1.Players .Position = (0f,0f); but it didn't work, I know I can assign to the .X and .Y of the Vector2 but I want to do it in one simple step. Also can you do it without creating a new Vector 2 Cheers Alfons Is there a performance difference between using... position.X = X; position.Y = Y; ...and... position = new Vector2(X, Y); ... There shouldn't be any difference in allocation on the heap because Vector2 is a struct and structs are allocated on the stack (so no GC problem with the Xbox360). But is the compiler able to allocate directly to 'position' rather than a temporary stack variable ...Show All

  • SQL Server Anyone know how to create a "Table of Contents" (TOC)?

    How do I create a Table of Contents (TOC) for my report Thanks We solved this by creating a .NET custom render for PDF. We manipulated the multiple reports into one report using SVG and then created a TOC at the front. There are only two reporting packages that meet this TOC requirement. Acuate and the newest Crystal Reports. ...Show All

  • .NET Development Help!!! Fail to update Oracle CLOB column on HP-UX

    I tried to update one CLOB column in Oracle 9i, but the saved data in database is gibberish. It only happend when I use Transaction in .cs file. But if I remove the transaction related codes, it work. Environment: Client: Windows XP, Visual Studio 2005, System.Data.OracleClient 2.0 Server: HP-UX II for OS, Oracle 9i with American set as the Language and a character set of English US ASCII Here are the code using transaction (not working version): string selectSQL = "select configvalue from appconfig where configid = 1"; string newvalue = txtNewValue.Text.Trim(); // use "test value" at web form lock (this) { DataTable dt = new DataTable(); OracleConnection conn = new OracleConnection(ConfigurationManager.Connect ...Show All

  • Smart Device Development CabWiz Info

    This is just a quick post to hopefully save someone some of the pain and agony that I have suffered over the last 2 days trying to get a CAB built for a new PocketPC app. If CabWiz reports an error similar to: Error: CAB file "D:\CabFile.CAB" could not be created one of the first things that you should check is that you do NOT have 8.3 file naming turned off. If registry entry HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation is set to 1, then CabWiz will either not work or will only work intermittently (depending on whether you are working in a directory that has short names or not). If it is set to 1, change it to 0 and then reboot. You will also need to recreate all existing directories that do not ...Show All

  • .NET Development convert getstring getbytes

    Hi. I have a problem. In this code I traslate Byte[] to String (encoding.getstring)and after the same string to Byte[] (encoding.getbytes) But Bs2 and Bs1 are different y the istruction EncrypterRsa.ImportCspBlob(bs2); dont work But i think that Getstring is the opposite to Getbytes and bs1 must need equal to bs2. Help me please! :-) ASCIIEncoding encoding = new ASCIIEncoding(); byte[] bs2; byte[] bs1 = EncrypterRsa.ExportCspBlob(false); string text= encoding.GetString(bs2); bs2 = encoding.GetBytes(text); if (bs1.Equals(bs2)) {//falso qui non entra} EncrypterRsa.ImportCspBlob(bs1); //work EncrypterRsa.ImportCspBlob(bs2); //exception, value not valid ASCII Encoding will not help you here, modify your code as under: byte[] bs2; byte ...Show All

  • SQL Server Impersonate someone to browse AS 2005 cubes

    Hello, I added a user and the user cannot access cubes. I have used Impersonate before to browse 2005 cubes based on the access I have setup for the user, but have forgotten where I could do that at. Could someone point me to the right place to browse as someone else Much Appreciated! -Lawrence Cube browser is the place. It has a little icon on the upper left corner. If you hover over it, you'll see "Change user". Edward Melomed. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All

  • Visual Studio Checking out

    Hi, How can I force an automatic check out when I edit a file, it some times works in this way but some other not. The SorceSafe option "Always check out the working folder version of files" is always disable Thanks JIRO Hi, The automatic checkout is controlled via the Visual Studio Tools->Options dialog. Navigate to the Source Control->Environment page, and make sure that the combo box for "On Edit" says "Check Out automatically" The SourceSafe option "Always check out the working folder version of files" is not related to automatic checkout behavior. It actually controls the version you are checking out (whether you check out the latest version available on the database or the last version you have gotten in to ...Show All

  • SQL Server Can I automatically see which VIEWS are used for each REPORT?

    Is there a way to see which database views (or tables) were used for each report (For example, I have a report called "Customer Oriented" and it uses 2 views: Customers, and Products. Can I automaticaly pull out this information Thanks, Hi Jens, Where can I see that text (the one in which you can see the name of dataset). Although I am more looking for seeing database VIEWS or TABLES used to create a report rather than a DATASET, but that might give me some insight. Thank you. Alexan ...Show All

  • SQL Server SQL Error Message on Bootup

    I searched for answers to this error, but didn't see anything. I use Windows Server 2003 with SQL 2000 installed. Lately I've been getting the error below when booting up at login. "SQL Dumper library failed initialization. Your installation is either corrupt or has been tampered with. Please uninstall then re-run setup to conrrect this problem" Anyone seen this before Will I have to really uninstall and reinstall SQL again Thanks. Do one thng, Run the installer for the sql server 2000 ,now it will ask for repair or uninstll, select repair and first repair it, if th problem still persists ,then there is no other option than reinstalling it....Let me know what happened ...Show All

  • Internet Explorer Development IE7, OE6 Printing problems with headers

    Having an intermittent problem printing To: From: CC: Subject: Attachments: headers on emails. Usually happens with larger emails or emails with large attachments or emails that have been replied to or forwarded from other people. Have installed Generic/text printer and sent the email to this printer but sometimes the headers are still missing even printing this way. I have if I open the offending email and highlight just one or two words in the text of the email eg Dear John and then print the email using my HP printer (not as text on Generic printer) - the headers then print and so does the selected words. Don't suggest using Outlook as often we only print the first page of emails as we already have the rest of the email on file especial ...Show All

  • Smart Device Development Unable to create cab files in visual studio 2005

    Hie, i think i am facing the same problem, so i just reply here instead of starting a new thread. if this isn't the same problem, i will create a new thread later. i followed the how to article on using smart device cab project to create the cab files. i successfully created the cab file and when i copy it to the device via activesync, it install successfully. but when i package it into a installer and use ce application manager to install, it say this is an invalid setup file. so i open the cab file and compare it with the sql ce cab file. and guess what, it is different. In the cab file that i create, it doesn't have a *.999 file, but all the other cab files like sql ce, sql ce client, and compact framework have. so, what am i d ...Show All

  • Internet Explorer Development IE 7 final release and window.prompt

    Hello, The release notes for the final version of IE 7 has this entry: Generic Spoofing Risk Reduction in Internet Explorer 7 --The window.prompt script method is blocked and the gold Information bar is displayed by default in Internet Zone for Internet Explorer 7. The helps prevent websites from spoofing things such as the logon screens of other websites. This is a new security enhancement for Internet Explorer 7. Was this behavior in any of the IE 7 betas or the RC1 Or is it brand new in the final release Thanks Please, please reconsider this! Let the prompt working by default. Also, if the Dialog Window uses the provided height as the height of the client area (which makes sense), p ...Show All

  • Visual C# Database error reading Access database

    Ok, this is a new one on me and I cannot find any reference to it in the V.S. docs. I've used this code to connect to three other Access databases with complete success, I must've missed something this time but I'm not aware of what it is. I've stepped thru this code for the last hour and I can't find anything out of place. Can anyone please tell me what it is I may have missed While attempting to connect to my Access database, the below error occurs: IErrorInfo.GetDescription failed with E_FAIL(0x80004005) Stack trace: at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object&executeResult) (the rest of the message refers to the line the error occurred on which is shown below: ...Show All

  • .NET Development I want to protect my database from use out of my application

    hi I am working in vb.net application, I almost finesh, the problem is : the application depend on MS access (.mdb )database file, the data is the most important in my aplication... so when I deploy the application on the user computer, any one can copy or access the data from the database and use it out of the application.....please tel me how can I prevent that Hi, I guess what TkNeo tries to say is just to provide a password for your database (Access MDB). The process on how to do this can be found on the link provided by TkNeo. http://support.microsoft.com/kb/289885 Also don't forget to specify the password in your connection string so that your application can access the data inside. Use ...Show All

  • Visual C# Value not appearing in textbox

    In a nutshell... I'm new to working with C# in Visual Studio and I have a dilemma. I am populating an arraylist with datetime values via a winform. When I click a certain button on that form I want to see the second arraylist item appear in a textbox. The code I'm using to do that is: ReturnedTimesheetTextBox.Text = theCurrentEmployee.Timesheet[1].ToString(); However, clicking the button produces this text in the textbox: EmployeeProject.Timesheet Now, "Timesheet" is the name of a property which is of a type ArrayList and which resides in another class. "EmployeeProject" is, of course, the name of the VS project this exists in. Can anyone offer any help as to why I'm not seeing my datetime value app ...Show All

©2008 Software Development Network