brettlee01's Q&A profile
Software Development for Windows Vista VNC and Session 0 Isolation
Hello, I am the author of Bozteck VNCScan Enterprise Network Manager . I am a bit concerned about the new session 0 isolation in Vista. When VNC is installed to a Vista computer as a service, it is locked into running at only session 0 and that is pretty much useless for what it is designed to accomplish. In session 0, you can not remote control the computer or even get a remote screen shot of it. Our software is relied upon by over 100,000 Network Administrators across the globe and I have heard many of them voice deep concern about moving to the new Vista platform if VNC will no longer work properly. RDP is not an option because it does not allow the end user to interact with or view what the remote administrator is doing on their PC ...Show All
SQL Server [DBNETLIB][ConnectionOpen(Connect()).]SQL Server does not exist or access denied
Hi Folks, Lets get this out of the way first - I KNOW NOTHING ABOUT SQL SERVER, MSDE or MDAC Sorry I don't mean to shout but I really don't know anything at all so please make your answers as simple as possible. I have an application (Webmarshall) that has a SQL database from which certain reports are run. Whenever I try to run the reports it asks me for database details. According to the application it is using LANCELOT\WEBMARSHALL\Webmarshall as the database As this is all happening on one server, I presume it is local and not remote. When I am presented with the dialogue box for the reporting module it asks for a server and a database, I have tried the following : Server: local Auth: Windows Server: local Au ...Show All
Visual Studio 2008 (Pre-release) how to access attached dp through UIElement (on panel for instance)
I've built a panel that uses some extra information for the layout of a child. That extra information is bound on the datatemplate through an attached property. During the measurements, I would like to access that information. The only thing I have access to is the Children collection which holds items of type UIElement. I would have expected the attached property to return a correct value, but it does not. This must be a common scenario. Is there any way I can get from an UIElement to the actual item Okay, that was it. Getting to the object that indeed had the DP set: DependencyObject o = VisualTreeHelper .GetChild(uie, 0); Thanks! ...Show All
Visual C# Text encoding mismatch, .NET 1.1, console vs windows app
Hi, I spent whole day to resolve my problem and i have failed. Here is some details. I have got two applications. One is typical C# console application (lets call it A) and second one is C# Windows Application (app B). Both written using framework 1.1 I'm using application A in application B by simply creating new process. Also, I'm using standard output redirection to establish communication between app A and B. And here starts my problem. In StandardOutput i get wrong characters, i mean i'm writing to console string (that string contains characters typical for my locale) and when i'm reading that string in app B i get string that lacks of some characters. I noticed that my console application uses encoding IBM852 (CP852) and Standard ...Show All
Visual Basic Decrypting a file without writing to disk
Hello, I am currently trying to decrypt a file that was encrypted. Problem is that i cannot seem to convert it byte to to memory stream, which in turn would then spit out a string. code: Public Function ReadDecryptFile( ByVal EncryptedFilePath As String ) Dim retStr As String = "" Try Dim encryptor As ICryptoTransform encryptor = mProvider.CreateDecryptor() Dim decStream As CryptoStream decStream = New CryptoStream(File.OpenRead(EncryptedFilePath), _ encryptor, CryptoStreamMode.Read) Dim readStream As BinaryReader readStream = New BinaryReader(decStream) Dim writeStream As MemoryStream writeStream = New MemoryStream Dim myByte As Byte ...Show All
Visual C# How can I retreive Exception Error Messages?
Hi Im trying to retrieve error message from the server using the following code when the application throws an exception :- protected void Page_Load( object sender, EventArgs e) { string errMsg = "The error occurred in : " + Request.Url.ToString() + "<br/>" + "Error Message: <font class =\"ErrorMessage\">" + Server.GetLastError().Message.ToString() + "</font><hr/>" + "<b>Stack Trace:</b><br/>" + Server.GetLastError().ToString(); Response.Write(errMsg); } and I get the following Error :- Object reference not set to an instance of an object. [NullReferenceException: Object reference not set to an ...Show All
Visual C# Reading memory address of another process?
Hi guys, I know this is going to sound like another one of those script kiddy questions, but I would like to read the memory address of a certain process. If it helps, I can start the process from my program... I have no idea where to start at all... If someone could point me in the right direction I would be very greatful. Thanks :) I believe there's a article in a past issue of MSDN Magazine that details doing exactly that. (cheating at Solitaire). Managed code doesn't allow you to deal with memory addresses or object sizes by default, this is called "safe" code. The theory is that if you can't deal with the memory directly, you can't have buffer overrun/underruns, memory leaks, etc. C# will allow you to deal directly with ...Show All
SQL Server Exporting in XML format
Is there a way of exporting data in XML format from SQL Server 2000, there is a wizard for exporting to a html file but I can't seem to find one to export into an XML file A week and no replies All I want to do is create an XML document from sql server 2000 and have it written to a shared drive so I can read it from our webserver! I know to produce on the fly such as SELECT * FROM VW_Web_Curr_Projs1 FOR XML AUTO, but how to write this result to an xml document Or am I going about this the wrong way, any help please ...Show All
Visual Studio Team System MsTest / VSTestHost Memory problem
Hi, Sorry if this is isn't the right place to post this. I am running Visual Studio 2005 Team Suite Version 8.0.50727.42 (RTM.050727-4200) I use the MSTest a lot and find the VSTestHost is eating up a lot of memory, which isn't freed up even after the tests have finished running. I have over 1000 tests and after several test runs the tests will start aborting complaining of insufficient memory, I am required to restart the machine in order to free up the memory fully. The memory usage will ofter go beyond 1.5gig. I have tried this on two different machines and both exibit the same problem. The tests we run interact with MSSQL, creating, retrieving, updating and deleting from the database. It may be the case that it is an issue with the t ...Show All
SQL Server Dynamic DSN in Report
I am creating a dynamic DSN in a report to pick which database to run a query against. I have a fairly simple expression, ="Data Source=MYSQLSERVER;Initial Catalog=ADV_" & Parameters!DBNum.Value When I try to preview the report, I get the following error An unexpected error occured while compling expressions. Native complier return value: '[BC32017] Comma, ')', or a valid expression continuation expected.'. I have also tried it without the parameter, ="Data Source=MYSQLSERVER;Initial Catalog=ADV_1" with the same result. When I use the exact same static DSN it works fine. Anyone have any idea what I might try to get it to work next R Update: It looks ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Pulling Data from ContentManager
I've got a question on why to use the content manager. Say I have loaded a texture into the content manager - paddle = content.Load< Texture2D >( @"Graphics\paddle" ) as Texture2D ; If I want to access the data from the content manager, would I have to put something like this - sprites.Draw(content.Load< Texture2D >( "Graphics\\paddle" ), new Vector2 ( this .paddle1.Point.X, this .paddle1.Point.Y), Color .White); Or is there an easier way then that Cause if I have made a texture variable, then loaded it into the content manager, why couldnt I just call the variable directly like this - sprites.Draw( this .paddle, new Vector2 ( this .paddle1.Point.X, this .paddle1.Point. ...Show All
Internet Explorer Development FOR GOD'S SAKE, UNINSTALL!!!
I tried to uninstall so I could install Beta 3, then I got frustrated and just wanted to uninstall, but no luck. Now, I try install RC1, and get a message that it can't uninstall the previous version. I tried the "cheats" where it gave you the filenames to type in, but I don't have any of those files. I like IE7 and would eventually like to get the "real" version, but it seems hopeless at this point, unless I want to have two versions working at the same time. The message I got said "Do you want to install another version (which will also not be able to be removed) " HELP!! Please don't give me the standard link to the support site again. It's been 4 or 5 months and I have not seen an answer to this problem ...Show All
Software Development for Windows Vista IMpeg2Demultiplexer Problem:
I am having problems programming the dsnetwork interface in my application. Strange errors show up and its help on msdn is totally messed up. Firstly, I wanna ask about the IID_IMulticastConfig. Where is it defined. I have added the dsnetifc.h as well but to no use, I cant find the CLSID for it. I hope someone here has worked on DsNetwork. I really need help on it! Well actually I just wanna to do is add the multicast receiver filter in my application. I have already tried the multicast receiver filter in graphedit and now want to embed it in my code. what I have been trying to do is this as an example: #include "dsnetifc.h" void main(void) { IGraphBuilder *pGraph = NULL; IBaseFil ...Show All
Visual C# Validation of Phone, Mobile and Fax numbers
Hello, i have been trying to validate the phone, mobile and fax numbers (International as well as domestic level). Till now, i could not find the exact formats for them. so, plz if anyone has the validation code formats for Phone, Mobile and Fax numbers, plz help me with the code. till now for the phone number the validation type i could find using the regular expression is \( \s*\d{3}\s*[\)\.\-] \s*\d{3}\s*[\-\.] \s*\d{4} above regular expression is valid for following phone number formats: (555) 555-5555 555.555.5555 555 555-555 So plz, send me some code or web site links for the validaton of phone, mobile and fax number Anur RS It might be a good idea to fully spe ...Show All
SQL Server Reusability & SSIS - issues they do not write in books about
I have a simple requirement: Each package needs to have Error Handling - which needs to Execute a SQL statement. It's the same Stored Proc - where each package passes in its ID. Ok - I get that part about creating a custom task and so on for reusabilty. But - lets say that after deploying this task in 20 packages - I need to change the name of the Stored Proc. What is going to happen in that case Correct me if I'm wrong - but after deploying the new version of the custom task - do I need to go to each package and update the reference to new version Not quite - configuration cannot handle when the processing logic changes. Lets say for instance in addition to ID input of the Stored Proc - the Custom task / Error handler --> you ne ...Show All
