Venkata Prasad K's Q&A profile
Visual C# @ operator, what is its meaning
Hi! In example, in this code: fs = new FileStream (@sFile, Modo); What's the meaning of '@' I'm looking for, but i don't know what's the name in english of this character (in spanish 'arroba'). Regards. The "@" character has another use that may be more in line with the example in the original post. By prefixing "@" to a keyword, you can use that keyword as an identifier. For example, you can do this: class @ void { ... } This defines a class with the name "void", even though "void" is a keyword. You can then refer to it in the same way: @ void foo = new @ void (); Obviously, this is a rather contrived example and you should avoid wr ...Show All
Visual Studio Express Editions Find Combinations, to Create Strings, to Match the 666 Bible Code.
Anyone who has heard of 666, should find this interesting. Scenario: Each letter in the English Alphabet has a numerical value. The 'Base Value' for the first letter in the Alphabet is: 'A' =6 The 'Progression Value' for each letter, thereafter is: 'P' = 6 So: A=6, b=12, c=18, d=24, ect. 'M a r k o f B e a s t': tallies to, 666. I've already written a VB program that allows the user to enter in a base value, progression value, and a name/string. After hitting the 'compute total' button, the name is calculated, a progressive alphabet is displayed, and you can find out, if someone's name, totals to '666'. You can also run a dictionary through, and then sort the totals, in a listview. Can anyone help me add another func ...Show All
Visual Studio 2008 (Pre-release) Memory Leaking in client when returning a typed dataset from a service.
I have a services that returns a dataset and the clients that accesses this service are all leaking (Even when the client does not call the operation that returns the dataset). I made a small test service and a client and it turns out that a newly created client leaks about 18kb per time a client is created. //Service def [ ServiceContract ] public interface ICalc { [ OperationContract int Add( int x, int y); [ OperationContract TestData GetData(); &nbs ...Show All
SQL Server How to Setup JDBC for SQL2005 in Webshpere 6.0
Does anyone know the steps on how to get SQL2005 to talk to a Websphere application via the MS JDBC We are trying to setup the Niku Clarity system with a new SQL2005 Database. Thanks I tried the steps as above and get the following error. Where do you specify the username and password for the connection, as this is one from an application called Niku Test connection failed for data source NikuDS on server server1 at node ielett3kcaapp01Node01 with the following exception: java.lang.Exception: java.sql.SQLException: Login failed for user 'Niku'.DSRA0010E: SQL State = S0001, Error Code = 18,456. Thanks ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Backup Files?
I spent several hours starting a new game my friends and I are going to be working on, explicitly hitting save every so often... However, I discovered that VS doesn't actually create the project directory until you close the project. My computer stays on 24/7, why should I close VS for the night I discovered this when I hit execute and was greeted by the Blue Screen of Death. I have searched by hard drive for the project name and the names of various files I know should be in the directory, however the only thing that comes up is an empty folder in the VS "Backup Files" directory. Anyways, on to the XNA related stuff, I got the BSOD after changing the indices in my call to DrawIndexedUserPrimitives. I s ...Show All
Visual Studio 2008 (Pre-release) How to get StoryBoard name in its Completed event?
Hi I am need to know the name of the StoryBoard which has completed out the ten storyboard that i have.I am not able to get the name because i have only one event handler for all the storyboards. Following what i am doing: //A common Event Handler for all story boards SlideStory.Completed +=new EventHandler(StoryBoard_Completed); OpacityStory.Completed += new EventHandler(StoryBoard_Completed); TopToBottomStory.Completed += new EventHandler(StoryBoard_Completed); BottomToTopStory.Completed += new EventHandler(StoryBoard_Completed); WidthStory.Completed += new EventHandler(StoryBoard_Completed); HeightStory.Completed += new EventHandler(StoryBoard_Completed); //Event Handler private void StoryBoard_Com ...Show All
SQL Server parameters not updated on re-publish
RS2005 sp1 - I have a report that was published to the report server. I needed to make changes to some of the parameters. I changed them to be INTERNAL. When I re-published the report from visual studio to the server (selecting overwrite item if exists) - that INTERNAL parameters were still showing and active when I chose VIEW report. Then I tried the Upload File from the report server to see if that would behave differently ... but I got the same result. Can someone tell me why this is happening I am having the same problem, if anyone can help I would appreciate it. I recognize that deleting the deployed report fixes the problem but for a fast paced environment that is not very efficient. We are on ...Show All
Visual C++ a tool for editing text
I just wanted to know if there is any activex component which you can use to edit text. I want it to act as if it is a edtor for any program C/C++....... I am developing a software which acts as a Skill anayser. Provided with a set of programs with bugs, the user is required to debug the program and set the correct results. The software includes options to compile, run and test the program. The number of compilations and runs are also counted to anlayse the skill level. Now, I need the editor to present the user with the program and enable him to edit it..... If you are asking about the language ....I prefer VC++. Thanks ...Show All
Windows Forms Pass Path to OpenFileDialog
Is there a way to pass a path to the OpenFileDialog everytime the dialog is shown I tried the InitialDirectory but that works the first time (obviously) but if I change the path, the open dialog goes back to the last opened directory. Thanks, Greg I tried that and I don't see any difference since it just still opens the dialog back to the last opened position. I have a tree node with a list of vendors. Each vendor has a specific source path for their files. So when I go to the first vendor and open the dialog, it goes to the initialdirectory folder which is fine. However, if I go to another vendor who has a different path for the source, then when I open the dialog, it opens the dialog to the la ...Show All
Visual Studio Express Editions how to update data into Access DB?
I have manage to create the insert data into the Access DB but if i wish to make a update on the DB how can i do it there are many ways. if you are using an OleDbDataAdapter to fill the dataset, you can then also use the UPDATE() method in this, creating an UpdateCommand statement so when you call the Update() method, it will use the appropriate command to update the datasource (database) http://msdn2.microsoft.com/en-us/library/system.data.oledb.oledbdataadapter.aspx Above includes an example or you could execute the OleDbCommand and giving it an update statement, the same way as shown in the above link Does this help ...Show All
.NET Development datetime problem in C# sqlserver2000
str="INSERT INTO tblHistoryLog(UserId,UserAction,TableName,ActionDate,TrDoneOn) VALUES('" + CheckValues.strUserId + "','NEW RECORD','USER TABLE','" + DateTime.Now + "','" + cmbTAUserId.Text + "')"; where ActionDate datatype if datetime. i had inserted record in the table and inserted properly. the query that uses the comparison "SELECT * FROM tblHistoryLog WHERE (ActionDate BETWEEN #"+ dtpTo.Value +"# AND #"+ dtpFrom.Value +"#)" but it gives the no result i had tried to use this but it does not compile so i had to use above "+ #dtpTo.Value# +" AND "+ #dtpFrom.Value# +" Is your data in SQL Server or in Access ‘#’ is used in Access to encapsula ...Show All
Visual Basic Failed to import ActiveX control
I am using VB2005 express and VC#2005 express. With my old friend VS2003, whenever i needed to add flash to my WInforms, all i needed to do was to add the control as a com component and drag it on the stage from the toolbar. Now, when i did the same in new express version, althogh it is added in the toolbars and the references list, but still, whenever i try to drag a shockwave flash instance on my win form, i get the error: Failed to import ActiveX control, please ensure it is properly registered. does some one have any idea how to add flash comntrol as we used to do in earlier versions Please reply this ASAP. Thanks and regards. Syed Mazhar Hasan forstf wrote: I have alw ...Show All
Visual Basic Registry
I need to do the following in the registry - Check to see if a given key exists - Create a new key - Overwirte an existing key - Delete a key can anybody recomend somewhere to find how to do this, I did a google search, best i came up with from the articles i saw was to include this: Imports Microsoft.Win32 Check out http://msdn2.microsoft.com/en-us/library/microsoft.win32.registrykey.aspx for details. ...Show All
.NET Development Performance: Passing large arrays from .NET to COM components
Hi, I am working on a COM component in C++ that will be used by .NET clients. Clients frequently pass large arrays of points in Cartesian coordinates (i.e. XYZs) to the component. I'd like to know the most efficient way to do this. My tests show conformant arrays are ~7 times faster than safearrays. Safearrays were ~6 faster than sending the array's data one point at a time. So I'd like to use conformant arrays, but I want to make sure they are "safe." Here is my IDL struct Vec3 { double x; double y; double z; }; HRESULT SendData ( [ in ] int numPts, [ in , size_is (numPts)] struct Vec3 pts[]); And it is called from C# with code like this: GCHandle gcHandle = GCHandle ...Show All
SQL Server cannot create jobs on x64
Hi all, Just installed sql 2005 x64 (DB Server + Client Tools incl. management tools) and encountered the following problems: 1) Could not create jobs Getting Error: Unable to cast object of type 'Microsoft.SqlServer.Management.Smo.SimpleObjectKey' to type 'Microsoft.SqlServer.Management.Smo.Agent. JobObjectKey '. (Microsoft.SqlServer.Smo) Tried several different job types always same result Installing SP1 does not help Any help is highly appreciated TIA Dan Please post this to the " SQL Server Tools General " forum. Thanks, Peter Saddow ...Show All
