Robert_Brame's Q&A profile
Visual Studio Express Editions Delete content of txt file
How to delete the content of an existing txt file What command to use "using" is good practice to automatically close/release and dispose of objects the implement the dispose methods, it doesnt mean to actually use that file :-) That is given in the constructor of the streamwriter in this case ...Show All
Visual Basic Fixing a NullReferenceException
What would be the correct way to do this SubGroups(0).IsGroupMember(0) = False Here is my function but I get an error about NullReferenceException. Private Function GetSubGroupIndex( _ ByVal Title As String , _ ByVal CreateNew As Boolean ) _ As Integer '-1 if not found or created Try '$ GetSubGroupIndex Dim I As Integer = Nothing Dim Found As Boolean Dim SubGroupCount As Integer = Nothing Found = False GetSubGroupIndex = -1 For I = 0 To SubGroupCount - 1 If (UCase(Title) = UCase(SubGroups(I).SGName)) Then GetSubGroupIndex = I Found = True End If Next I If ( Not Found) And CreateNew Then Su ...Show All
Game Technologies: DirectX, XNA, XACT, etc. xna and any world editor
hello, i 'm making a game with xna gse and i want to know if there are some world 3d editor to make a level of the game, any sugestions The freeworld and DeleD applications look pretty interesting. Does anyone know of any tutorials built around creating models and getting them into an XNA project I'm sure there's tons of tutorials for those apps out there, but I'd like to read one with the end goal of getting it into the Content Manager. ...Show All
SQL Server Certificate not found
Hello, I have two different instances of sql server 2005 but i get Connection handshake failed. The certificate used by the peer is invalid due to the following reason: Certificate not found. State 89. This is one of the two instances: use master --ALTER MASTER KEY REGENERATE WITH ENCRYPTION BY PASSWORD = 'dsjdkflJ435907NnmM#sX003' create master key encryption by password = 'hello' create certificate [Certificato2] from file = 'c:\certs\TransportCert2.cer' with private key ( FILE = 'c:\certs\TransportCert2.pvk' , decryption by password = 'simone' ) active for begin_dialog = ON CREATE LOGIN [M02] WITH PASSWORD = 'wrPqYkr%bm3' ; ALTER LO ...Show All
Visual C++ Using vc71 built libraries with vc8 applications
Hi, I have a set of libraries, built with vc71, and I want these linked into a new application which is built using vc8 (to certify vc71 libs instead of having to build a new set). I am having problems though linking with some of my vc71 built libraries. The linking phase fails with unresolved external symbols errors. Is what I am trying even valid (i.e. are vc71 built libraries linkable to vc8 applications) TIA, John Using libraries generated older compilers with new compilers is not a good idea. You are better off re-compiling them. It may or may not work. If you are getting compile time errors, It is probably because of some incompatibility . You may want to take a look at this post in which Ayman Sho ...Show All
.NET Development Required To post XML data to SSL enabled Server IIS 5.0
Hi, I have to post XML fILE TO A server IIS 5.0 which is SSL eanbled Following is the code that accpets the data posted to THE IIS 5.0 SSL enabled server using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using System.Text; using System.Configuration; // must add reference to project, not there by default! using System.Diagnostics; using System.IO; using System.Net; namespace WebApplication2 { public class WebForm1 : System.Web.UI.Page { ...Show All
Visual Studio Express Editions Visual Studio and Express on the same computer?
Can one install Visual Studio 2005 Express on a computer that has Visual Studio 2005 already installed on it Will there be any interference or other problems ...Show All
Visual Basic FolderBrowserDialog question
I have this form that it contain: - Browse File Dialog - SaveFileDIalog I want that with SaveFileDialog it merges all GIF Files of the SelectedPath of BrowserFileDialog in the FileName of SaveFileDialog with extension BIN . I set the filter of SaveFIleDialog Binary Files | *.bin How can i do For merging files i have this code For Each item As String In ListBox1.Items ' Legge tutti i bytes dei file My .Computer.FileSystem.WriteAllBytes(SaveFileDialog1.FileName, My .Computer.FileSystem.ReadAllBytes(item), True ) Next But as item i want the GIF Files contain in BrowseFileDialog.SelectedPath For now my code is this Public Class Form1 Private Sub Form1_Load( ...Show All
Visual C# C# Windows environment book
Hello! I am looking for a book that covers Windows environment connected information. Like a scripting bible but for C# (Framework 2.0). A book that covers for example: * How to create a user. * How to create a mailbox. * How to set NTFS rights for a folder. * How to map a network drive. * How to add a printer. * bla, bla, bla.... I realize that some of those thing might not be bundled all in one book, so a book about ADSI edit in C# covering point one and two is better than nothing, and so on. /Leyan Hi; For book on C# and .net 2.0 have alook on amazon. I like the Pro Series books from Apress: http://www.amazon.com/2005-NET-2-0-Platform-Third/dp/1590594193/sr=8-1/qid=1158900080/ref=pd_b ...Show All
Visual Studio Express Editions Suite Integration Toolkit Executable has encountered a problem and needs to close.
Hi, I got problem in installing Visual C# Express Edition. When i start the installation, it gives one error box --> Suite Integration Toolkit Executable has encountered a problem and needs to close. Could anybody solve my problem I encountered the error this morning when trying to install .net framework 2 & 3 sp1. I have all critical and optional updates installed. My hal version is 5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) <-- RTM. Any other ideas ...Show All
Visual Basic How to not get combobox SelectedIndexChanged be executed on load
Hello, As what the subject line is.... What is the method to not allow combobox SelectedIndexChanged to be executed on load... and only make it to be executed when a "USER" changes the selection value. Thanks I don't see that changing the index of a combo box at load time is at all unusual: unless you know of a better event to set a forms 'properties' (For example, loading some settings into the form). What I think is odd, though, is that it gets set back to zero: but this may be precisely the problem. Events are cascading during the form load. In which case the cascading effect needs short-circuiting; by putting a flag at the form level. I can imagine the following in the form load ev ...Show All
.NET Development Adding Web Reference to ASPNET project
Hi all, I'm hoping this is a simple problem that someone has seen before and can let me know how to resolve. I have created a web service which will launch an SSIS package. This has been deployed to the test server where both the SQL database and Integration services engine are installed. The web service works correctly when you use the default web service test page. What i want to be able to do is call this from an ASPNET application which contains a page using windows aurthentication which when a button is clicked launches the web service method. When i attempt to add a web reference it keeps prompting for a user name and password before it will let me add it. Will this continue to do this each time i need to call the reference, and if s ...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, Please let me know on the progress of the examples and bug fix below. In particular does anyone have experience of using .net controls as activex ocx's to be loaded by the software product 'WonderWare Intouch View' this is a SCADA system for viewing industial control data. this product is abl ...Show All
Visual Basic Error when Adding a component to a form
I was creating a new form and whenever I added a listbox to the form it would generate an error: "Failed to create component 'Component'. The error message follows: 'The toolbox item could not be retrieved from the toolbox. Make sure the assembly that contains the toolbox item is correctly installed. The toolbox item raised the following error: Object reference not set to an instance of an object.' " After wasting time trying to refresh the installation and then deinstalling / reinstalling I found the fix is somewhat simpler. Right click on the toolbox list and select 'Reset Toolbox'. That cleared this problem right up. Since I did not find a reference to this error message under this scenario anywhere, it seemed lik ...Show All
Visual Studio Team System TF14043: An error occurred computing the delta for item
Hi, We started seeing the following error periodically in our TF server event log (full error text below): TF14043: An error occurred computing the delta for item ... Has anyone seen this before Any idea how to fix it Thanks, Shay What version of TFS is installed on the server I haven't seen this problem in a long time (before RTM). If you have RTM or SP1 installed, I would contact customer support so we can understand & fix this issue. ...Show All
