rp1933's Q&A profile
.NET Development Introducing Static Methods as Instance Constructors into the .NET Framework
New constructor feature called “constructor mapping” should be included to the .Net Framework. Now constructors return only objects with their declaring type. In some cases it would be obvious to return an object with “well known” derived type by the constructor. This cannot be accomplished by the current constructor functionality. I suggest letting public static methods to be marked with “ConstructorAttribute” as constructors making them accessible for new operators in foreign code. For example, imagine a task: we would like to develop a collection class that is implicitly synchronized when it is instantiated (constructed) in multithreading apartment otherwise behaves without synchronization: using System; ...Show All
.NET Development Execute .NET code written by end-user to customize a procedure
Hello! Before .NET, when I wanted to give the oportunity to the end-user to customize something, I used msscript.ocx. The user could write some vbscript of jscript code which was executed by that control, propably using the .Evaluate method. Is it possible to execute .NET code the same way and get the results Thanks Lucian Bargaoanu wrote: This seems easier to use to me: http://msdn.microsoft.com/msdnmag/issues/02/08/VisualStudioforApplications/ Does this require VS to be installed I see that the Microsoft.VSA namespace is used. ...Show All
Visual C# Unhandled Exception in Debugging, Run OK in Starting without Debugging?
When I press "F5" to start Debugging my programe, it gives me some unhandled exceptions, however, when I build"F6" and run the programe without debugging"Shift+F6", it runs OK. Why it is so Is it very important of the Debugging errors Thanks! ok, so you are trying to update a label or a UI component from another thread correct The correct way of doing this is to invoke the control. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=564275&SiteID=1 this is what you would do to interact/update/access a UI Control from a thread which the UI Control was not created from. This is the default behavior now of .NET 2.0 - you must make thread safe calls and the above link should hopeful ...Show All
Visual Studio Tools for Office Installation VST 2005
Hi, I want to install Visual Studio 2005 Tools for the microsoft Office System on my machine but when I try to do it, an unknown error come to the Hx MERGE_VSCC_V80 action. I have Windows XP Professional and Office 2003 SP2. Do you know where is the problem Thank for answer. Hi, Do you have workflow extensions for VS2005 installed Another forum participant received the same problem with the HxMerge_VSCC_V80 action and resolved it by removing those extensions. Here is a link to that posting: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=89696&SiteID=1 . ...Show All
Microsoft ISV Community Center Forums EULA for my product
I'm nearing completion of my first product and think I need to include a EULA as part of the install. Is there a standard template somewhere of a boilerplate EULA Something that says this software isn't meant to run nuclear reactors, if the user gets tumors it isn't our fault, etc. I looked at creative Commons and they offer some stuff, but I'm more interested in the standard type of EULA. Any help would be greatly apperciated. Jake If you are shipping a closed-source product, I would think that Creative Commons doesn't have what you want. They intentionally don't address typical software licensing. Have you looked at EULAs of software that you have seen and used Is there one that was particularly satisfactory f ...Show All
Windows Forms Scrollbar.value cant be set to scrollbar.maximum
In a windows form app it's impossible to set the value of a scrollbar (hScrollbar or vScrollbar) to it's maximum by moving the thumb or clicking the scroll arrows. The value will be no higher than approx. 90% of the maximum. It makes no difference whether the maximum has been set in the IDE or from code. Repro: - create a new Windows application - add a scrollbar and a label to Form1 - add a scroll handler to the scrollbar and add the following line to it: label1.Text = "Maximum: " + Convert .ToString(hScrollBar1.Maximum) + " Value: " + Convert .ToString(hScrollBar1.Value); - run the app and try to set the scrollbar to it's maximum value I can't imagine that no-one has encountered this befo ...Show All
Visual Studio Express Editions Docking a Web Browser
I want my WebBrowser1 to be Dock:FILL, but when I do that, it goes under the ToolStrip1. When I run the application, the WebBrowser1 is under the ToolStrip1 so I am missing part of the web page. I want it to be under Below the ToolStrip1 so I may see the full web page and still have it docked on FILL. Can some one please help me Oh, I am using Visual Basic 2005 Express Edition. ...Show All
Software Development for Windows Vista Automatically Binding Properties at Design Time
I am hosting the workflow designer for a set of custom activities. With these custom actitivies, the output of one always becomes the input of the next. The validation of the workflow prevents items other than these activities from being present. What I would like to do to improve the user experience of creating these workflows is to automatically bind the output of the previous activity to the input of the next activity. I would prefer to do this at design time so that users who understand more about windows workflow notice that the property has been set but still of the flexability to modify the workflow if they know what they are doing, while users who don't have a clue won't need to understand the internal structure of the workflow. Is ...Show All
Visual Basic VB Date to Access database - specified cast is not valid
I have two date fields being inserted into a table in an Access database. In Access the format is set up as date/time (general). In VB it is the usual: Dim DateIn As Date Dim DateOut As Date They each store a value of DateTime.Now . The data actually gets into the database but everytime I hit submit I get "specified cast is not valid". I should note when I changed the format to text in Access and String in VB the error message went away. Below is my SQL to insert the fields into the database. Any help is greatly appreciated. Dim myInsertQuery As String = _ "INSERT INTO Test (DateTimeIn, DateTimeOut, PGMSSN, Batch) VALUES ('" & DateIn & "', '" & DateOut & "', '" ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Newbie build error with Spacewar?
Hey there, I just installed the game studio for XNA and tried to build spacewar, but get this error about the FPU. Any quick tips Thanks. Error 1 Building content threw InvalidOperationException: The FPU is set to the wrong precision. The FBX SDK requires double precision to function properly. at Microsoft.Xna.Framework.Content.Pipeline.FbxImporter.ValidateFpuState() at Microsoft.Xna.Framework.Content.Pipeline.FbxImporter.Import(String filename, ContentImporterContext context) at Microsoft.Xna.Framework.Content.Pipeline.ContentImporter`1.Microsoft.Xna.Framework.Content.Pipeline.IContentImporter.Import(String filename, ContentImporterContext context) at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.ImportAss ...Show All
Visual Studio Team System TFS Source Code Encryption
I'm looking for information on the security of the TFS version control system. Is the source code encrypted If so, what is the encryption method How are the keys managed jMM Bill's right - if you're looking for the contents to be encrypted on disk because you're worried about a physical attack (server being stolen), then you'd usually use the existing EFS (Encrypted Filesystem) approach. http://www.microsoft.com/technet/prodtechnol/winxppro/deploy/cryptfs.mspx ...Show All
Visual C# Where is System.Management ?
Hello, I am just starting with C#, and this is my first problem: Using the WMICodeCreator.exe tool I created some C# code, which does not compile in Visual Studio 2005. The line using System.Management; does produce a compiler error (Namespace Management does not exist in Namespace System), but according to the help it should exist. So what is wrong with this line of code Thank you for your time and help! Sounds like you're missing a reference. Right-click the 'references' node in the Solution explorer, choose 'Add reference' and add a reference to 'System.Management' to your project. It's located at the .Net tab of the Add reference pop-up. ...Show All
Smart Device Development LNK2019: _calloc_dbg from VS 2005 Devices
Hello, Could an expert pls help I am using /MTd but getting this error. I can get this to link if I call calloc instead of calloc_dbg in mylib.lib (see below), but get a runtime calloc crash which I need visibility into. Thanks! -ram ...Show All
Visual C# Compute the time consumed during a function
Hi, How can I compute the time and memory that are concumed in a specific function in my application. Please help me. Thanks in advance, Aya Ayooya wrote: Hi, How can I compute the time and memory that are concumed in a specific function in my application. Please help me. Thanks in advance, Aya This is called profiling and you have two options here, sampling and probing. Adamus showed you the probing way where you insert code in your method. This approach is also called instrumentation. Although in his sample he uses a DateTime type I recommend that look at the System.Diagnostics.StopWatch type which is a high resolution timer. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. RomantiqueX XNA engine
Version 0.0.1 released. We will be glad to get some feedback from you. Download engine demo at http://www.codeplex.com/romantiquex/Release/ProjectReleases.aspx . Information is avaliable at http://www.codeplex.com/romantiquex . Please, provide the following info: your graphics card, FPS, FPS with enter pressed (with no HDR). Best regards, RomantiqueX development team. Wow, very cool demo. I have a eVga Geforce 7950 GTX KO it was between 50 and 55 fps with HDR 60 - 65 with no HDR ...Show All
