Rei Shapira's Q&A profile
.NET Development Parameter in aggregate function
Hi, I'm having this little weird problem with Visual Studio. It doesn't seem to accept the param in the aggregate function: SELECT Avg(Rating), DateDiff ('m',RateDate,@RefDate) FROM qryRating GROUP BY DateDiff ('m',RateDate,@RefDate) Visual Database Developer returns an error saying: "you tried to execute a query that does not include the expresion DateDiff ('m',RateDate,@RefDate) as part of an aggregate function". Explicitly replacing @RefDate with any literal (or even function like Now) works, but not with the param Does anyone know why Thanks. Not sure if provider would support parameters ffor GROUP BY, but do you pass same parameter twicw or once You need to pass it twice if it is inline query and ...Show All
Visual Studio Express Editions Command line build using VCBuild
Hi. I have a few questions/comments about command line build with Visual C++ 2005 Express Edition. 1. I have noticed that there is no 'devenv' in the Express edition (I got used to it in the VS .NET 2003 version). The IDE executable is 'vcexpress', but it seems it has no command line build capabilities. I assume command line builds are to be done using 'vcbuild'. Am I right 2. Running 'vcexpress / ' brings me a confused explanation which is a mix up of 'vcexpress' and 'devenv' which does not exist in the Express edition. This is clearly a defected help message. 3. If I want to use 'vcbuild' for building Win32 applications (after installing the Platform SDK), I also have to change the PATH/INCLUDE/LIB directories in the %VS80COMN ...Show All
Smart Device Development uninstall device emulator version 1.0 beta 2
I am uninstalling vs2005 beta 2, and there seems to be an order that I should've uninstalled in but I didn't find out until afterwards. Now this device emulator software is stuck, installed on my computer and I can't get it off because it's asking for an msi file on a dvd that I don't have I know this thread is very old but nothing I've found on the web works for uninstalling this program which is preventing me from upgrading to the .net framework 2.0 I've tried the .net uninstall tool - it can't find the proper MSI. I've tried the standalone package - it's a different version so pointing the uninstall to this MSI doesn't work. I've tried everything on the msdn blogs. What I need is to so ...Show All
Visual Studio Express Editions indexed types inside class
I am trying to create my own data type. Inside that class I used List<>. I have set it as private and than I have used property to access it. The problem is with accessing values inside that list. If I try to read them it is OK, but when I try to write to them I get an error: Cannot modify the return value of 'System.Collections.Generic.List<DataTest.Player>.this[int]' because it is not a variable Does anyone know how to correct this Here is an example I made: <P public struct Player { public string name; public int number; } public class Team { public Team() { players = new List < Player >(); Player p; p.name = "tom" ; p.number = ...Show All
Visual Studio 2008 (Pre-release) How to access attached properties programatically?
I am creating a rectangle programatically in a control and I want to be able to position the rectangle at a location relative to the Canvas Top and Left. The control is a Canvas and the rectangle is one of the Canvas' children. In xaml I do this with, e.g. Canvas.Top="5" but how can I do this programatically The rectangle does not have a property Canvas. I'm guessing that I have to use an attached property to the rectangle or is it part of the control's properties which in this case is the parent Canvas Thanks for any help. Or you can call SetValue(Canvas.Top, someInt) and SetValue(Canvas.Left, someOtherInt) That's how you normally set an attached property, the same way you set a normal ...Show All
Visual Studio 2008 (Pre-release) How to bind Properties.Settings to textboxes via XAML
Can anyone tell me how to bind directly to the Application Settings via XAML Using the xaml example above, is it possible to assign the binding path to a setting < ObjectDataProvider x:Key = " AppSettings " ObjectType = " {x:Type Task:Properties.Settings} " ></ ObjectDataProvider > Text = " {Binding RelativeSource={RelativeSource TemplatedParent}, Path=RequestId} " I want to change it to something like this where SettingName would be equal to RequestId... Text = " {Binding RelativeSource={RelativeSource TemplatedParent}, Path=AppSettings.Default.SettingName} " I don't get any errors but my data isn't showing up either ...Show All
Visual Studio Express Editions create my own "subfiles"
is there a way that I can access the "subfile" structure that VS uses eg to this + myform.cs myform.Designer.cs myform.resx I'd like to add myform.services.cs and myform.<anything>.xml etc, so that from within VS the items are managed as a single unit You can create partial classes to make the files work together as one class, but I don't know that you can cause an XML file and a cs file to become part of the one group. ...Show All
Smart Device Development Bluetooth signal strength
Hi all! It is possibile to retrieve the Bluetooth signal strength from a .NET CF application I'm using the OpenNET CF Library, but it seems not to have a function like this. Any help wuold be appreciated. Marco Minerva, maco.minerva@tiscali.it http://blogs.ugidotnet.org/marcom Hi all! It is possibile to retrieve the Bluetooth signal strength from a .NET CF application I'm using the OpenNET CF Library, but it seems not to have a function like this. Any help wuold be appreciated. Marco Minerva, maco.minerva@tiscali.it http://blogs.ugidotnet.org/marcom ...Show All
Visual Studio Express Editions Delete content of txt file
How to delete the content of an existing txt file What command to use Imports System.io Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try Dim path As String = "C:\deadduck.txt" File.Open(path, FileMode.Truncate) Reset() Catch ex As Exception MsgBox( "m" ) End Try End Sub End Class ...Show All
Visual Studio 2008 (Pre-release) How to retrieve the client machine name from within a WCF service?
I have a WCF self-hosted service that use netTcpBinding and basicHttpBinding. Is there a way from within the WCF service to retrieve the machine name of the client that has called the service There isn't a standard way that works across every transport to do this. For instance, the TCP protocol doesn't include the client's machine name so there is no way for us to expose this to you. You may want to consider updating your contract to include the machine name as a parameter, or consider adding it as a message header on the client. Regards, David ...Show All
Visual Basic Keeping an application on top in VB 2005 using a menu item
I have yet to figure this out in VB 2005. How do you keep an application on top TIA Kevin Open you applications, main form Open the Properties Window (F4) set the topmost property to true. This should keep this window on top. ...Show All
Visual C# Properties in C#
Hi all, I've read about properties in C# and it is my uinderstanding that they are here to replace the 'setter' and 'getter' methods we all used have to manually create. BUT I cant create these for private variables. In the following: class MyClass { private int x; public int X { get { return x; } set { x = value; } } } Private int little x is 'getted' / 'setted' through public int big X. (e.g. MyClass.X = 10) If big X is public and little x is changed through big X, what is the point of having little x as private We could just have little X as public and remove bi ...Show All
Visual FoxPro MsComm Problem
My dear Professor, Thank you very for helping me on many forums. Now I am facing a serious problem about MsComm. I am using MsComm with following properties Commport :1 Setting :4800,n,8,1 Handshaking :0,ComNone InBufferSize :1024 OutBufferSize :512 RThreshold :0 SThreadhold :0 InPutLen :0 EoFEnalbe : UnMark PartiyReplace : NullDiscart :Unmark RTSEnable :Unmark DTREanable :Marked I do not use any event of MsComm. Following commands are under a command button Thisform.mscomm.portopen=.t. abc=thisform.mscomm.input Mscomm receives weight from Input Device called HB-8210. Everything work fine in VFP 6 on WIndows 98 platform. ***Now problem details When I run this form, with same settings, on Win ...Show All
Visual FoxPro Can't rebuild project after moving from VFP7 to VFP9
I have several large projects that I developed in VFP7 under Windows 2000 server. I have copied them entire to a new server and I'm trying to convert them to VFP9 to run under SQL 2005. When I open the projects in VFP9 and try to rebuild them I get an error that the project's memo file is missing or invalid. The same projects rebuild under VFP 7 just fine. Does anyone know a workaround or am I going to have to rebuild the entire projects under VFP9 Thanks, Chandler I think this can be changed from Control panel>System>harware>hdd driver properties but I don't trust in solutions who are modifying hardware to match the software. In you case I will try to access all tables and database ...Show All
Visual Studio Express Editions Problem of installing Visual Web Developer 2005
I tried to install Visual Web Developer 2005 Express Edition and twice I receive this same error. I also tried to re-download it and install again but still got this same error mesg. What's wrong Thanks. The screen shot is in www.mystorey.com/error.gif Recently, I have stop some services for better performance. I'm using Window XP Pro. Could it be because of that We can not see much from that screen shot as the errors are still hidden, wat you will need to do is look at the setup logs. You can find these under %temp% and they are prefixed with "dd_". ...Show All
