Avi29's Q&A profile
SQL Server Verify SQL Server 2005 installation
Hi, How can I verify whether the particular SQL Server 2005 installtion is 32-bit SQL Server 2005 or 64-bit SQL server 2005 Thanks, Ritesh ...Show All
Visual C++ Increasing the counter??
How to increase the counter Example; when a button is been clicked first time it have to show "Subscriber Station 1" and the second time "Subscriber Stationn 2" and so on.. Am i to declare a variable for the counter and how do i need to assign them into the codings Sample coding is below. Pls indicate where am i to add in the cods thanks... private : System::Void add_subNode() { array <TreeNode^>^ subNodeArr = gcnew array <TreeNode^> { gcnew TreeNode ( "Subscriber Station" ) }; TreeNode^ rtnSub = gcnew TreeNode( "Base Station" , subNodeArr); baseNode ->Nodes->Add(subNodeArr[0]); } I do ...Show All
Software Development for Windows Vista Breadcrumb ?
It doesn't seem any Breadcrumb control (or "address" band, like the one in Windows Explorer) anywhere in the latest SDK documentation (may it be a common control or a WPF element). Is there a way to use this component, or better, to embedded a custom scene in an explorer frame The new address bar is not a common control. It's a one-off custom control that was not designed for its very specific purpose and not for general-purpose use. If you want to have something like it in your program, you'll have to write it yourself. ...Show All
SQL Server Column index
Hi there: Is there any way to retrieve the column index based on its name I tried using the ColumnCollection property of the Table object, but it is not a "real" collection, so the IndexOf["MyColumnName"] doesn't exist. I have the Database, Table, ColumnCollection and Column objects available, is there any other way I can retrieve a column's index in the table Thank you Column.ID, eh Hmm, haven't thought that it would have a meaningful value (apart from being unique). It is an int, indeed, so it may work. I can access the column by name, however I am trying to dynamically populate a list of properties, so the column position (while indeed irrelevant for all intents and purposes) is important for m ...Show All
Visual Studio To introduce a text in a ReportDocument
Good evenings to all! I have a form with a textbox, a button and a crystalReportViewer that loads in a correct a .rpt. My problem comes when I want to insert the text that I have in the textbox (touching the button) in the report. Since it is possible to do this Thank you very much! you have to create a parameter on your report so that you can pass the value of your textbox to it... here's a sample code for assigning values to the parameter...change some of it to fit to your needs... Dim PARAMS As ParameterFieldDefinitions PARAMS = REPORT.ParameterFields PARAMS.Item(1).SetCurrentValue(textbox.text) ...Show All
Windows Forms Preview Form2 on Form1
I have 2 forms, Form1 & Form2. On Form1 I'd like to have a small scale preview window of Form2 when I run it. Form2 will be running fullscreen on another monitor in a dual-monitor setup. Please can someone help me with this Thanks in advance You could simply start up a timer and the timer's event handler could perform the drawing of the form to your bitmap. I don't know if all mpg viewing controls will support this (often they draw directly to screen RAM and you can't divert it to an off-screen bitmap). Also, it would tend to be very slow. ...Show All
Software Development for Windows Vista Pass input from one activity to another on the designer
Hello Everyone, I am creating a workflow designer and an activity library ( which contains the custom activities i show on the designer). I was wondering how i can let the user link two actvities at design time such that the output from one activity becomes the input of other , something simmilar to setting the parameters of an activity. Please let me know if i am not clear.. Thanks Sonali I think what you are looking for here is activity bind. It allows properties of one activity to be bound to those of another activity. However, there isn't a visual representation on the design surface of such a bind. Bindable properties on an activity show a blue icon in the properties pane. ...Show All
SQL Server Query Question for a real Guru
Hello, I've been trying to fill a tree view based on some criteria in another table. I have the standard table with a ID - ParentID - Text when I bind the table everything works fine. What I need to do is display only the tree items based off a username and ID in another table. Files can be found http://www.cthere.com/treeviewhelp.zip EXAMPLE: tblTourgroup(UserName = Jim) tblTourgroup (GroupID = 110) tblGroups (GroupID = 110) Results from tblGroup: - RESTAURANTS - Cuisine - Steakhouse Query Results should be layed out like tblGroups Any ideas This is what I have so far... But it does not traverse up and get the other nodes.. USE SQL2005_335573_cplanet; GO WITH DynamicTree (ParentID, GroupID, GroupName) AS ( ...Show All
Windows Forms Video Serilization?
Is Video Serilization possible, if yes then please write code for serilization and deserilization Thanks What do you mean by video serilization Usually, serialization is used to store the internal data to disk or file. And video, as we see, already has lots of format there, .avi .rm etc. So I don't catch what you said. If you mean the encoding of the video, then there are also some formats there, mpeg4 etc. ...Show All
Visual C++ weird error - variable value not changing
Hi - I have a problem with the following code, which is solving a double-integral by running nested for loops for hundreds of times. The problem is that on the highlighted line, on the first pass through when debugging, when FB = 0, XB correctly calculates (eg with Range as 6 and Steps as 500, and DepoVol as 0.0013, XB will be -0.0078). However, on the second pass, when FB = 1, XB should update to -0.0077844 but it doesn't, it stays as -0.0078. Same on the third, 4th, etc etc pass... Any clues I'm a total newbie to C++ so don't rule out any simple syntax errors... Is it only calculating if a variable changes by a certain amount, and if so how do I force it to recalculate anyway Cheers double Integrate( double Vol , double ...Show All
Internet Explorer Development Example of a BHO doing this in C#, please
What I'd love to see is a C# BHO 1) adding a menu item to the default context menu and 2) capturing the event when the user clicks on that item. I've created a custom UI handler object, and it sinks the ShowContextMenu event fine. I can load shdoclc.dll, where the default menu is kept. Great. The problem I'm facing now is that I cannot load the default menu using User32's LoadMenu function. The last error I get is that the function cannot locate the resource I'm trying to load. The signature of the method is as follows: IntPtr LoadMenu(IntPtr hInstance, string menuName) In sample code, I can see that you are supposed to use the MAKEINTRESOURCE macro to convert the resource ID (which appears to be a const uint 24641 defined a ...Show All
Visual Studio Editing the contents of a file
I have a number of files that i need to update in a visual sutiod solution. Can anyone provide me with an idea of hos to accomplish this. I can load the item easily but an not sure how to edit the content and then save it. You need to use EnvDTE.Document to save and EnvDTE.TextDocument and EnvDTE.EditPoint to edit. There are lots of resources at my web site to get started: http://www.mztools.com/resources_vsnet_addins.htm I would recommend to download the book "Working with Visual Studio 2005" (see the link above, the Books section) and read chapter 10 "Text Editing Objects and Events". ...Show All
Software Development for Windows Vista man-in-the-browser attacks
CardSpace seems secure once the user is in the CardSpace desktop, but I worry about the security of the application (IE, Firefox, etc.) that invokes CardSpace in the first place. How resistant is CardSpace and/or IE7 to man-in-the-browser attacks For example, a trojan browser helper object or extension that invisibly modifies the claims presented to CardSpace. The user is not likely to be checking the claims too carefully (if at all), and the Identifying Party of course has no way even to detect, much less prevent, this attack. Is IE7 hardened against such an attack, and if so, how CardSpace doesn’t just rely on the URL. It relies on the Certificate of the RP. Tokens produced by CardSpace are encrypt ...Show All
Software Development for Windows Vista workflow designer - properties
Hi! I am re-hosting the workflow designer, and I have created a custom activity. Now I am adding properties to the activity. Let's say I have a property called X which can be true or false. public static DependencyProperty XProperty = System.Workflow.ComponentModel. DependencyProperty .Register( "X" , typeof ( Boolean ), typeof ( CustomActivity )); [ Description ( "X" )] [ Browsable ( true )] [ DesignerSerializationVisibility ( DesignerSerializationVisibility .Visible)] public Boolean X { get { return (( Boolean )( base .GetValue( CustomActivity .XProperty))); } set { base .SetValue( CustomActivity .XProperty, value ); } } If ...Show All
Windows Forms Deployment Solutions
I am distributing a free medical billing application using ClickOnce. When it deploys it is a thing of beauty, but currently about 75% of attempted deployments fail. I do have the WinFX runtime in the deployment string but people still run into problems (usually their OS not having all necessary updates). Can I include (and would you recommend) MS updates in the deployment string Thank you David, we will try it. Check out our App. We think the ClickOnce strategy is a thing of beauty. Hopefully with Vista life will get easier. What we have learned is currently there are a million different combinations of Windows version and service packs and .NET 1.1 installed, not installed... We are a free app though that hopefully provides ...Show All
