HenryM679's Q&A profile
.NET Development strange problem with loading an assembly using custom AppDomain
I'm trying to load assembly files using a custom class, which was created through a custom AppDomain. Here's my Main code block: AppDomainSetup setup = new AppDomainSetup(); setup.ApplicationBase = @"C:\test"; setup.ApplicationName = "test"; setup.PrivateBinPath = "bin;plugins"; AppDomain domain = AppDomain.CreateDomain("MyDomain", null, setup); General.Loader load = (General.Loader)domain.CreateInstanceFromAndUnwrap("Loader.dll", "General.Loader"); Type[] types = load.LoadAssembly("TestObject"); All this does is setup an AppDomain and point it to "c:\test" and then I set the assembly folders it should look for when loading an assembly. The General.Loader cla ...Show All
Windows Forms Memory Usage Guidelines
I developed an app in VS2005 and am wondering if there are any guidelines available for how much memory is safe to consume per hardware specifications. For instance, how to determine minimum hardware requirements for an application Thanks, cj ...Show All
.NET Development .Net 2005 app fails if built on XP Home machine
I have been developing an application that utilizes .Net remoting as well as some unmanaged code. It is written in C# and uses Windows Forms (no ASP, SQL, etc). I have been building it on an XP Home machine and testing it on multiple XP Pro machines. After a recent enhancement, if the app is built on XP Home and run on XP Home, it locks up the OS requiring a reboot. If that same build is run on an XP Pro system, it silently fails (hangs) but doesn't crash the system. If I build the app on an XP Pro system, I don't have this problem. In attempting to debug this I tracked the code into a thread Start method. Executing the Thread Start crashes the Home system. I admit I am making an assumption about Home vs. Pro but, other than one bein ...Show All
SQL Server Connecting to SQL Server 2005 Express
I am having major issues connecting to SQL Server 2005 Express from Visual Basic 2005 Express, which I have tried on multiple PCs but to no avail. Can somebody please explain to me what I'm doing wrong 1) I install SQL Server 2005 Express and Visual Basic 2005 Express (With .NET framework and SQL native client of course) 2) I open SQL Server using Management Studio and going in with windows authentication. It automatically sets the log on name to computername\SQLEXPRESS. 3) I create a new database called Test and add one table to it 4) I go into Visual Basic 2005 and create a new project. 5) I go to the projects application settings (Properties - Settings). 6) I set up a new connection string, choosing SQL server as the conection type and ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Cannot run Release build, crash...
Hey Guys, When i do a full build of release or debug noether of them run. However when run with visual studio express the game runs fine... Any idea how to fix this issue If it runs fine with visual studio express, then how else are you building a release / debug that is causing this problem ...Show All
Visual Studio Express Editions Maximize form at startup
Hi, i'm n-Code, i write from Italy. I've got a question. How can i maximize a form at application startup n-Code Courageous wrote: Figo Fei - MSFT wrote: Hi, n-code Welcome! You can also do it in Form_load event (or other proper place you'd like which meet your needs): this .WindowState = FormWindowState .Maximized; "this" refer to the instance of the form. Thank you I have used this.WindowState = FormWindowState.Maximized; but it only maximizes to the size set in the Size properties, is there a way that whenever I start my application on any PC, the form maximizes to the ...Show All
Visual Studio Team System Who is responsible for creating Operations Support Guide?
Hi all, The Operations Support Guide is the deliverable of the Stabilizing Phase (in MSF). Can anyone tell me who is responsible for creating this document I cannot find any info on this. Thanks in advance! K.S The Release /Operations Advocacy Group is responsible for overall Operations readiness. The guide you reference falls within their responsibility. However, the other advocacy groups have a big part in assembling the parts too. For example, User Experience is responsibel for training; Test is responsible to distill the issues log to prime the support knowledge-base for the support teaml; etc. ...Show All
Visual C# How to code my SQL String Manipulation App in C#
I would like to know the following in regards to my other thread on how I'd possible approach doing this same thing through C#. To me it seems like more work to do this if you are like me and haven't really done client C# and mostly used to ASP.NET C# code but I might as well start, as I could use regex or whatever to strip out stuff and instert or rearrange into our new table: http://forums.microsoft.com/MSDN/showpost.aspx postid=1087366&siteid=1 So I would like advice and specifics from your experience on the following: 1) What type of C# app should I do this in, console or windows form or other and why one vs. the other 2) Ok, fine, I create #1. Now, what type of controls should I use. I plan on reading the data from a s ...Show All
Windows Forms Can c# perform a CTRL+V
Hi all How can i get my program to perform a CTRL+V. (paste from clipboard) Thanks. Lars I must be having a bad day, because i don't understand how this works. Can i use ActiveControl do determine which textbox i am in Can you give me a sample code Lars E. ...Show All
Visual Basic is their any reflector like tool in VB6
i am having VB6 dll. i want's to get the source code, methods and whatever inside that dll. Is their any tool like reflector in .NET. Thanx in Advance. Maheswari, Decompiling Windows DLL's is a very advanced and difficult task. I think you'll only get assembler code instead of the original C/C++. Also, you'll be violating end user agreements and laws. I find a DLL Decompile tool download page that you can have a try to download the software called Spices.NET and hope that can help you :-) http://www.freedownloadmanager.org/downloads/dll_decompiler_info/ ...Show All
SQL Server CONNECT TO SERVER PROBLEM
I am getting this message when trying to connect to SQL SERVER 2005; An error has occurred while establishing connection to the server.When connecting to SQL Server 2005, this failure may be caused by the fact that under default settings SQL Server does not allow remote connections(provider:shared memory provider , error 40-could not open a connection to SQL Server)(MicrosoftSQL SERVER, Error: 2) Can anyone help to fix this problem please On the server execute these statements: sp_configure 'remote admin connections', 1 go reconfigure go Then you should be able to connect from a client workstation. ...Show All
Audio and Video Development Tee node and custom media source
I used the WavSource MediaSource example and I used it in topology using a tee node. When I do that, an errors occurs after starting the session (0x8000FFFF). If I dont use a tee node everything works fine. I tried setting the MF_TOPONODE_PRIMARYOUTPUT and MF_TOPONODE_DISCARDABLE but that did not change anything. Marc This is most likely just some mistake in how the topology is set up. Double-check all of the node connections to make sure they're correct... That's my first guess. If you're completely sure that you've set up the topology correctly, then I have two more questions: 1) Does the error occur during the IMFMediaSession::SetTopology operation, or does it occur during the IMFMediaSess ...Show All
Software Development for Windows Vista Unidentifed program wants access
I am testing the installation and running of a vb6 program. The program installs okay. The program is signed with a test certificate created using makecert/cert2spc/signcode. It requires administrative access when it is run and this is stipulated in it's manifest. I have put the Root Agency into the Trusted Root Authorities Store and put the publisher/signer into the Trusted Publishers Store. I have 2 problems. 1. When the program is run it displays the "unidentified program wants access" dialog with "unidentified publisher". Shouldn't this be an elevation dialog with the publisher's details shown 2. When the program is run "as administrator" the same unidentified program displays ...Show All
Visual Studio Tools for Office Save MailItem as MSG file
Hi, How can I save the an Outlook.MailItem as .MSG file on Hard Disk Andy Ho Hi, This is my function to save the msg. I'm trying to get the .eml files and save them as .msg files to re-open/view in Outlook. I'm sorry Sue, that was not saved as an appointment item, but discussion item . This code works very fine in two machines, and saved correctly as .msg formatted mail. But not with 3rd machine. I don't know where the problem is in Did I miss something here Thanks in advance, Kannan. Public Function SaveAsMSG(ByVal emlPath As String) As String On Error GoTo Err_SaveAsMSG Dim sMsgName As String Dim objPost As Outlook.PostItem Dim objSafePost As Redemption.SafePostIte ...Show All
Visual FoxPro SQL order by - anyway to use string operations?
Hi all; Is there a way to do something like that The following statement will result in "Order clause is Invalid". SELECT * from SomeTable order by left(somefield,6) Thanks. ...Show All
