DiamondDavo's Q&A profile
Commerce Server removing Shipping altogether from Starter Site
We've created a Starter Site that will be selling service related products. Therefore shipping does not apply. Is there a simple way to remove all shipping related pieces from the site or do I need to manually remove all shipping references You'll need to remove all Shipping references. They're pretty much localized to the checkout path so it shouldn't be too hard. It's entirely possible (I don't know) that you may need to create a dummy shipping method to use in place of a real shipping method. ...Show All
.NET Development Visual studio 2003 and CF2.0
I have installed Framework 2.0 but my projects still reference 1.1 How do I use 2.0 Does 1.1 have to be removed first I am using .NET 2003 is this compatible with CF 2.0 The only version of Visual Studio that allows targeting of the 2.0 Compact Framework (or the full framework) is Visual Studio 2005. Short of upgrading to 2005 your only other option would be to use the command like build tools from the 2.0 SDK. ...Show All
.NET Development Memory management for unsafe code
Hi, It is known that Garbage collector does the memory management for managed code. i have a code that reads 1 billion rows of an event file (.evt). I m parsing each record of the evt file one by one using UNSAFE code. Due to a large no. of rows, my application used to crash, so i used GC .Collect(); & called it after some specific no. of rows have been read. My problem was resolved My question is who does the memory management for unsafe code Is it the garbage collector which i m calling. I m saying this because my memory mgmt problem was resolved after i added the GC.Collect statement. sorry that was a typo... it was 1 million... the size of the evt file comes to around 700 MB. ...Show All
SQL Server Parameter validation
Is it possible to create a server side or client side validation for parameter inputs For example, I want a calender input to error when a user tries to put in a date past the current date time Hi, I did like that,but popup i displaying but in the report server iam getting error,error in processing 'Validate' parameter. Thanks in advance ...Show All
Visual Basic Programming Languages
Hi, I'm relatively new to programming, and Visual Basic doesn't seem to be that good of a language, and not that much used in real applications. I want to move onto a different language, one that is very popular, can do almost anything, and can be and IS used in professional applications. Another important factor is platform compatibility. Java provides that, but Java isn't that popular for Windows, and Windows is my primary target. C++ works, but I have a couple of questions: 1) Can C++ be used on any OS Is it a good language to use as my primary language 2) Is C# going to replace C++ Does that work on other OS's C# is newer, and so I'm thinking maybe its the new version of C++ that's going to replace it, as xhtml is probably going to do ...Show All
Visual Basic Telnet a system from within VB.net
Hi, I'm trying to develop a small application which will connect to the company telephone system and send a series of commands via TelNet, giving our system a GUI. I've created a NEW instance of system.Net.Sockets.TcpClient called tcpclient, and defined a System.Net.Sockets.NetworkStream. I then do tcpclient.Connect, and give it the IP address of the system and port 23. In the code below, I have put the word "host" for security - Sorry! Dim telnetclient As New Net.Sockets.TcpClient telnetclient.Connect(host, 23) ns = telnetclient.GetStream Dim line As String Dim data(1024) As Byte If ns.DataAvailable = True Then ns.Read(data, 0, 1024) line = data.ToString ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Components Advantage
Is there any real advantage to creating a class as a component Say I have a camera class - Is there any reason to base it off of Component I think, currently, the advantage is using the Designer Properties Window. If you expose lots of properties in your component, the end-user does not have to change variables in the code and compile. All the the end-user has to do is drag teh component on to the Game Designer and update some property values and the IDE will auto generate the code to set the values. So I think for small repetative tasks that lots of users will need to do to get a game going, and need to customize some of the values of the task, a component model is great. Micah ...Show All
Windows Forms Accelerator in ContextmenuStrip
Hello! Do anyone know how it is possible to show the accelerator of my context menus with a right button click Accelerators were shown when I press the "context-menus -key" (Apps) or Shift + F10 but not when I press right mous button. Is that possible Thanks Jerry This looks like a bug to me, you might want to report it at Product Feedback . I tinkered with WM_UPDATEUISTATE but didn't get anywhere. One workaround is to turn off this miserable feature. Control Panel + Display, Appearance tab, Effects, turn off "Hide underlines letters...". ...Show All
SQL Server Auto export to Excel
Is there a way to export directly to an excel .csv file when the report is run without having to preview the report first and then click the export icon I want to be able to schedule a report to run and have it go directly to an excel .csv file. You can use the file delivery subscription. This allows you to automaticly create a csv file at a UNC path. See http://msdn2.microsoft.com/en-us/library/ms157386.aspx for more information. ...Show All
Visual C++ Building standard unmanaged win32 DLL which calls functions in a managed C# library
Hi, I would like to build a standard DLL which calls managed code library. Is it possible If possible, how Can anyone provides some references to online resources With many thanks. Ok, yeah you are having a bit of a problem. The program.cs file is a C# file. When you add it to the C++ project, you are going to have huge problems because the C# code inside program.cs will be compiled with the C++ compiler. See where I'm going here So in order to get this to work, you need at least 3 projects. The C# project containing program.cs. It will output a DLL The C++ wrapper project. It will also output a DLL The native C++ project. (1) should just be compiled as you would any other C# project. (there is no /clr flag ...Show All
Visual C# Where *is* the right place to ask for C# book recommendations?
A thread asking about C# book recommendations was recently closed. The reason cited was: I will close this thread because this was asked several times before and there are great sites like Amazon that provide readers reviews and voting for books. However, no guidance was given as to where the *right* place is to ask for C# book recommendations on these forums, which was a bit of an omission, IMHO. Why should we have to go elsewhere to ask these very pertinent questions We should be able to ask for book recommendations here. (*Not* book reviews!) Given that the description of this very forum is: General discussion and questions regarding Visual C# 2005 -- incl ...Show All
Visual C# need help with code
I am trying to write a program kinda like a receipt and I am having trouble with this. What I need it to do is look like this: Please enter the price of the item: Please enter the quantity of the item: Please enter the total of the item: It needs to continue until you want to end it with like(-1) or something. Any suggestions It would be greatly appreciated. Thanks Your first problem is this line: int Quanity = Convert.ToDecimal(Quantity); You call Convert.ToDecimal, and then store that decimal into an int. You want either decimal Quanity = Convert.ToDecimal(Quantity); or (more likely) int Quanity = Convert.ToInt32(Quantity); However, you have a bigger problem. You have "Quantity" on both side ...Show All
Visual C# sometimes kill all processes and some time some of them????!!!!..
my application is to kill running processes I have wrote this code and it is working fine but sometimes ... It is sometimes kill all application I select and some times kill hust some of them ... what is the problem ... this is my code ... private void button6_Click( object sender, System.EventArgs e) { if (checkedListBox1.Items.Count!=0) { try { Process[] myProcesses; myProcesses = Process.GetProcesses(); switch (MessageBox.Show("Are you sure, that you want to close all Applications ","Question",MessageBoxButtons.YesNo,MessageBoxIcon.Question)) { case DialogResult.Yes: foreach (Process p in myProcesses) { string Name = p.MainWindowTitle.ToLower( ...Show All
Windows Forms Retrieving the text value of a control dynamically
I need to retrieve the text value of a control which has been created dynamically on the page. I have been able to access the control using this code: for (i = 0; i < arrA.Length; i++) { MessageBox .Show( this .Controls.Find( "txtID" + i.ToString() , true ).GetValue(0).ToString()); } and this returns the result: "Systems.Windows.Forms.TextBox, Text: 3" The value of the first control is 3 so it is possible to derive the value from this but is there a better way to access the value direct Thanks in advance. I've tried that and get the error "Object Reference Not Set". The first line below returns a value while the second returns an error, can you see w ...Show All
Visual C# with keyword
Hello, In VB 6 this keyword means inserting an object to the context. fields and properties of the object can be accessed directly, without a variable name (like when writing code inside a class and all the properties of "this" are accessible). In VB the dot "." operator is used, in other languages like delphi - you can just write the property \ method name. Is there a "with" keyword or something similiar in c# Thanks. There is no with in C#, see this link for more details from the C# language designer http://www.gotdotnet.com/team/csharp/learn/columns/ask.aspx#with Mark. ...Show All
