Anand Raman - MSFT's Q&A profile
.NET Development Porting from 32-bit to 64-bit
Hello! I develop with VS 2005 on a 32-bit machine. In the future I want to compile on a 64-bit machine. The compiled code should only be for 64-bit machines in that case. Now I wonder if I can just put my source code from the 32-bit machine on the 64-bit machine and it will compile and run without problems Thanks in advance CSharpNewbie22 Compiling your code as 'x64' will allow your code to run only on 64-bit machines....'Anycpu' will make the same code to run on both 32-bit and 64-bit machines. hope this helps ...Show All
Visual Basic txt files
How can I access text files in VS2005 and display them in Arrays Any help or websites containing a "How to" would be greatly appreciated. Thanks! Also, more information on split() method of the string class ill try my best! :-) *chuckles...such a long day* right so, we need to read each line. Each line will be our "record". our record will then be split into an array of strings containing the record information then we can "format" these to our liking. So...lets split them first, line by line Dim theStreamReader as new System.IO.StreamReader(" filename.txt ") while theStreamReader.EndOfStream = false Dim theRecord() as String = theStream ...Show All
Visual Basic "InteropUserControl"
Hello Everybody here, Interop Forms Toolkit 1.0 seems to be very nice. Unfortunately the VB Express Edition has no Addin in the Tools menu for generating InteropForm Wrapper Classes. To do it manual seems not to be so easy... Any other possibilities With greetings from Germany Josef Hi Josef, I'm surprised that VB6 is shutting down on you...if you see an error message please let us know. The fact that you're seeing mscoree.dll is expected behavior: this is the file the .NET Framework uses to load the CLR into memory when called by COM. Basically it's the file that handles creating your .NET object for VB6. Hope that helps, Jonathan ...Show All
Visual Studio 2008 (Pre-release) Security Token Service using TCP transport
Hi, We are considering using STS for authentication and authorization. As far as I understand STS requires wsFederationHttpBinding which uses transport of HTTP, but I would like to use it with TCP transport. I've tried creating a customBinding with TCP transport but I get an exception about the order of the elements in the channel stack. The following section is the custom binding from the server's config file(based on the Federation sample). If I change the transport to Http (currently in remark) it works: < bindings > < customBinding > < binding name = " CustomBinding " > < security authenticationMode = " IssuedToken " > < issuedTokenParameters tokenType = " ...Show All
Visual Studio 2008 (Pre-release) Developer Tools For WPF
Hello, From where Do I get Tools(Visual Studio) to work with WPF. And How to use WPF in Web Application. Can it be used instead of ASP.NET Dear Bhavin, You would need to download the .NET framework 3.0 and the SDK to work with WPF. Do the following : 1. Go to the following link: http://www.microsoft.com/downloads/details.aspx familyid=117ecfd3-98ad-4d67-87d2-e95a8407fa86&displaylang=en 2. Install the executbales in the following order. I assume that Visual Studio 2005 is already installed. .NET Framework 3.0 SDK and .NET Runtime components Visual StudioR 2005 Extensions for .Net Framework 3.0 Having done this, you can build WPF application using Visual Stduio. For your second question, one ...Show All
Visual C# Why doesn't IList have a BinarySearch method
IList<> does not have a BinarySearch method, but List<> does. Is there any reason for that The reason I found out about IList<> not having a BinarySearch method is because I initially wanted to do a binary search on a SortedList<> SortedList<>. Strangely enough, SortedList doesn't have a BinarySearch() function, so I looked in SortedList<>.Keys. That's an IList, which also does not have a BinarySearch() method. I looked up List<> to confirm, and it does have a BinarySearch() method. I've worked around this using (SortedList<>.Keys as List).BinarySearch(), and that compiles, but I have not tested it yet. So, there might be an easy work around, but I just can't think of a good reason why ...Show All
Visual C++ unresolved external symbol __invalid_parameter_noinfo
Hi friends, We are building a sample project in debug mode with release build of library say test.lib we got error like "error LNK2001: unresolved external symbol __invalid_parameter_noinfo". Can anybody give solution for this problem Regards, Mukilan I ran into this too, and agree that it is a bear. I thought I had run out of options, but this is what I did to fix it. My project uses two other statically linked libraries. The solution was to recompile those libraries with the same library flags (/MTd in this case), and verify that my project is getting the right files. It is surprising how you can think it is getting the library compiled with /MTd but it is not the right path or ...Show All
.NET Development Problem with SqlBulkCopy when destination table name has apostrophe (').
I have a problem with tables names like a'b. WriteToServer(IDataReader) throws Exceptions: Exception type: System.InvalidOperationException Exception text: Cannot access destination table 'BPMExpert.dbo.[a'b]'. Inner Exception type: System.Data.SqlClient.SqlException InnerException text: Incorrect syntax near 'b'. Unclosed quotation mark after the character string ''. Escaping the name using surrounding brackets, as the documentation says [<database>.<owningschema>.<tableName>] , doesn't help. Simple select "SELECT count(*) from BPMExpert.dbo.[a'b]" works great. The problem exists only with apostrophe ('). With other characters, such as ampersand (&),percent (%), etc, ...Show All
SQL Server Database Partitioning - Partition switching
Hi, I need replies immediately... This is with regard to switching of partitions in a sliding window scenario. I wrote a stored procedure which does the partition switching in a sliding window scenario. During one switching, if the stored procedure is half executed, if I re-execute the same procedure it throws errors like 'Filegroup is in a different partition switching failed' So how to rollback all the transactions in the stored procedure that does switching of partitions If it is not possible, then how to identify whether a file group is in its original partition before the stored procedure is part executed How to bring it back to its original partition before executing the stored procedure again switching Can any one ...Show All
.NET Development File/Directory path validation
Hi folks, I'm looking for a way to validate a string whether it is a valid file path and/or directory path. The System.IO.Path class contains some helpful methods but not a solution. I am not looking to find out if the file or directory exists or can be created. I want to know if it is a valid path expression. Relative paths are also important to be distinguished. Is there such a method available I have looked and could not find a good solution yet. Is there a solution in .NET 3.0 Thanks in advance, Remus .NET 3.0 has nothing changed but only add ons like Indigo/Avalon/WPF etc... the main core engine is still .NET 2.0 and no changes made to that. I don't beleive there is a method avail ...Show All
Gadgets Help test the screensaver gadget
Before releasing this to the masses, I was wondering if a few of you could go ahead and install my gadget and see if it works. It works on my machine but may not on someone else's if things don't register correctly. The gadget is a simple screensaver gadget that embeds a screensaver that you choose into its window (see http://blogs.msdn.com/photos/markhsch/picture1718045.aspx for a screenshot of it using the Ribbons screensaver). If you install it and it displays a white window with a red x, remove the gadget and re-add it to the sidebar to see if it goes. If you do test, please post on this thread with your results (either positive or negative). Thanks and here's the link: http://www.schmidt6.com/blogfiles/ScreenSaverGadget. ...Show All
.NET Development Unhandled Exception in vb.net
I am developing a database application in vb.net 2003/ms access 2000. I am using a web browser control in it.When I execute the application I get an error as follows: An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll Additional information: Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure "frmDict.resources" was correctly embedded or linked into assembly "Dict". baseName: frmDict locationInfo: Dict.frmDict resource file name: frmDict.resources assembly: Dict, Version=1.0.2586.20254, Culture=neutral, PublicKeyToken=null The error occurs on the following line of code: ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 4.5s of overhead when pixel shaders are set
I'm getting a 4.5 seconds long freeze when a series of pixel shaders are used for the first time. When all of the 500 effects of my test case select a different PS, the application freezes 4.5 seconds and then continues. The overhead appears when DrawIndexedPrimitive or SetPixelShaderConstantF are called. - I'm not using the multithread flag - I'm not getting any errors or warning msg - no help from PIX - Shaders are compiled when the data is packaged at export time, no compilation at run-time. - The PS & VS are created at load time, not when needed So I tried a simpler test case: All PS are returning a random value -> the app freezes for ~1.5 seconds and the overhead occurs in DrawIndexedPrimitive. float4 Main( ) : COLOR0 { floa ...Show All
Windows Forms HOw to pass values from one Form to another
I want to be able to pass a value from the current form to the next form that will open. How do I do that C# .net 2.0 Hai, // If u want to send some data from textBox1 of Form1 to textBox2 of Form2 // //following code for Form2 is a user defined property. // public string form1TextBoxValue { get { return textBox2.Text; } set { textBox2.Text = value ; } } // //write following code in Button1_click event // private void btnBack_Click( object sender, EventArgs e) { Form2 frm2Obj = new Form2(); frm2Obj.frm1TextBoxValue = textBox1.Text; // it passes the textBox Value to the next form.dynamically . frm2Obj .Show(); ...Show All
Smart Device Development Get IMEI No.
Hi, I am developing smart device application on CF1.0. I need your help. I want to get an IMEI no of device. How to get IMEI in CF 1.0 . Is there any way to get this Please send your suggestions or links. Thanx, M. GANESAN http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/search hl=en&group=microsoft.public.dotnet.framework.compactframework&q=get+imei+number&qt_g=1&searchnow=Search+this+group ...Show All
