Software Development Network Logo
  • Visual Basic
  • Architecture
  • Visual J#
  • SQL Server
  • Visual FoxPro
  • Windows Forms
  • VS Team System
  • Smart Device
  • Visual C++
  • Game Technologies
  • Visual Studio
  • Microsoft ISV
  • Visual C#
  • Windows Vista
  • VS Express Editions

Software Development Network >> Pizza Snuffles's Q&A profile

Pizza Snuffles

Member List

Mike Boone
jovada
mahrb
clauden
Docdoc
CathyP
dhonda
Johan Olofsson
Kaamp
gray-team
thargy
Electro808
MikePHall
sanaryans
DamonH
DW100
AlvaroReis
anthonyar
Lucky Tiger
Paul Connell
Only Title

Pizza Snuffles's Q&A profile

  • Visual Studio 2008 (Pre-release) How can receive plain text Message?

    Client: Message msg = new Message(); string str = "microsoft"; byte[] content = System.Text.Encoding.Utf8.GetBytes(str); byte[] header = new byte[4]; header = BitConverter.GetBytes(content.Length); byte[] cmd = new byte[1]; cmd = BitConverter.GetBytes(82); byte[] b = new byte[content.Length + 5]; header.CopyTo(b, 0); b[4] = cmd[0]; content.CopyTo(b, 5); MemoryStream ms = new MemoryStream(); // ms.Write(header,0,header.Length); // ms.Write(cmd,0,cmd.Length); ms.Write(b, 0, b.Length); msg.BodyStream = ms; Then,I can't receive th ...Show All

  • Software Development for Windows Vista Media Center

    I installed and validated Windows Vista 5270 today (Jan 2, 2006). When I tried to load Media Center I got the message "This trial version has expired and can no longer be used." If I reset the computer date to Dec 31, 2005 or earlier, Media Center loads OK. Seems like the expiry date for Media Center in CTP build 5270 has been set to 1/1/2006. Are there any other programs in 5270 that share this problem, and will we be getting updated versions with a more realistic expiry date Mike et all,   I too have the same issues, it appears the code for MCE is not activated   Anyone know how to activate this James ...Show All

  • Visual FoxPro Enhancement Request: Ability to pass cursors as parameters

    The ability to pass a cursor to a method of an object belonging to another data session would be a great addition for a future versions of VFP. Today, we have to resort to arrays, which is kind of a kludge, or CursorToXML/XMLToCursor, which is way too slow for large data sets. If cursor could be passed between data sessions, n-tier apps would benefit greatly. Any thoughts Eyvind.   Craig Berntson wrote: It's actually very easy. Look at CURSORTOXML() and XMLTOCURSOR(). I have just done a quick test with that and it works very nicely. The OP stated it is slow with large data sets but I have nev ...Show All

  • Visual Studio Tools for Office Context-sensitive Actions pane: Odd update behavior

    I have an Excel workbook that contains two named Ranges: OrderDate and ShipDate. When I select either of these cells, I want the Actions pane to display a user control that contains a label and a DateTimePicker control. I want the user control to show up in the Actions pane only when one of these cells is selected, so I have code on the ranges' Selected and Deselected event handlers to add or remove the control (see code below--SetDate is the name of the user control). The solution works fine when I put my cursor on OrderDate and then move to ShipDate. It also works fine when I move from any other cell to either OrderDate or ShipDate. The so ...Show All

  • Windows Forms Cannot call Close() while doing CreateHandle()

    If I load the form below as an mdichild and try to close it again, say after a condition failed I get the error Cannot call Close() while doing CreateHandle(). I tried to pu then check condition that close the form in MyBase .Activated event by its still comes back with the error Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Try Dim f As New frmTranSetup If f.ShowDialog <> DialogResult.OK Then Me .Close() Catch ex As Exception End Try End Sub Load is fired as a form is in the process of being created. Decisions o ...Show All

  • Visual Studio Team System Anyone Have Success Installing Visual Studio 2005 Beta 2 Team Foundation Server?

    I've read through many of the postings here, but haven't seen a single posting from someone who has successfully installed this thing.  Regular pre-req thing, Windows 2003 Server SP1 32-bit, using VMware with 1Gig RAM assigned to this VM, attempting single-tier install.  Everything is done as specified in the instructions and everything works (and verified) until the last step -- the TFS itself. Same problems as others, at the very end (according to the progress bar), it fails on two different places (sometimes I can overcome the first): Error 32000: ServiceDefinition.aspx I thought I remedied this by allowing Active Server Pages i ...Show All

  • SQL Server Error in Creating Stored Procedure from VS 2005

    When I create a stored procedure in VS 2005 using C# and deploy it to the server I can't execute it there and here is the error message: Msg 6522, Level 16, State 1, Procedure GetAll, Line 0 A .NET Framework error occurred during execution of user defined routine or aggregate 'GetAll': System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. System.Security.SecurityException: at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at S ...Show All

  • SQL Server sql 2000 database to sql 2005

    i updated my sql 2000 to sql 2005 server. the database has the sql 2000 compatibility level. does changing the compatibility level to sql 2005 converts the database to the new database system. or do we have to convert something on the sql 2000 database i have the same issue here. dont know how to convert my sql 2000 database to sql 2005. ...Show All

  • Visual Basic SQL Stored Procedure Error

    I've got a question about stored procedures.  I want to create a sp that will create two tables with some input.  This is what I have: CREATE PROCEDURE AddAttributeType (   -- Attribute Table Parameters   @T1 varchar(60),   @2 varchar(50),   @3 varchar(50),   @4 varchar(50),   -- Look Up Table Parameters   @T2 varchar(60),   @PK varchar(50),   @FK varchar(50),   @c1 varchar(50),   @c2 varchar(50),   @c3 varchar(50) ) AS -- Attribute Table CREATE TABLE @T1 (   @2 int IDENTITY (1, 1) NOT NULL,   @3 varchar(50) COLLATE S ...Show All

  • Windows Forms Sql Connection And MDI Winforms

    Hi, I am new here in asp.net programming. I want to know how can i configure the secured sql connection on a local network. I need to program the front end and have installation on all the computers on the network which connect to the sql database on the server. Can somebody give me an idea about it or some article to read out,  thanks&n ...Show All

  • Visual C# ListView with CheckBoxes checks unwanted checkboxes

    I'm using C# 2.0, and have a problem with a listview. I've turned on CheckBoxes and have my View set to List. The problem that I'm seeing is that the spacebar always checks an item, even if it's part of another items name. For example, if you create a new form, and drop a ListView called listview1 onto it, then put this code into the form Load event: private void Form1_Load(object sender, EventArgs e) { listView1.CheckBoxes = true; listView1.View = View.List; listView1.Items.Add("Apple"); listView1.Items.Add("Banana"); listView1.Items.Add("Bananas"); listView1.Items.Ad ...Show All

  • Visual Basic 'System.CodeDom.Compiler.GeneratedCodeAttribute' is not defined.

    One application deveploped with VB Express Edt 2005 was running well until last friday. No changes has been done in devep. environment. Today (monday) when after changes in application. icon the application is giving the following error: Error 38 Type 'System.CodeDom.Compiler.GeneratedCodeAttribute' is not defined. This is a new class defined in Framework 2.0. How is it possible that VB does not recognice its own environment   Some of you have had this problem and what  is the solution Regards There is another discussion on the board with a question similar to yours, perhaps you will find it helpful. http://forum ...Show All

  • Visual C++ Problem with WM_CHARTOITEM message for applications using a manifest

    Hi, I've a problem with the WM_CHARTOITEM message of a list box control. I'm writing a MFC application using Visual Studio 2005. The application use a manifest file. My listbox send a WM_CHARTOITEM message to the parent window but the parameters of the message seems to be wrong. In MSDN the parameters are described like: wParam The low-order word specifies the value of the key the user pressed. The high-order word specifies the current position of the caret. lParam Handle to the list box. In my application the lParam is correct (Handle to the listbox) but the wParam is corrupt. The low order word does contain the key in the low byt ...Show All

  • Windows Forms Property DefaultValue of type Point or Size

    I have a usercontrol with many public properties and I want to set their default value.  For those that are int and string, I know how to do that ( [ Category ( "Layout" ), DefaultValue (10)] ), but how do I do it with type point or type size Thanks JGA Well you can do this for point: [DefaultValue(typeof(Point), "0, 0")] or you can not apply a DefaultValue attribute and instead use the ShouldSerialize*** pattern. For example, in Control, we have a  private bool ShouldSerializeSize() { ... return true   if size isn't the default ...  }   And the designer calls this method to decide if the Siz ...Show All

  • Visual C++ \CLR Compilation woes!

    Iv compiled my current C++ project as \clr as i want to start putting in some specific C++\CLI code to serialize my MFC objects to .NET equivalents. The program crashes on startup, something to do with the stack frame being corrupted. My first concern is the program has ballooned in terms of the size of the executable image. When it attempts to run it fails and some report about stack frame corruption. Iv noticed any C files have to be converted to C++. The program links to a DLL and Libs that have been compiled as C. Is this a problem when compiling a program as /CLR that then links with C libs etc and on startup loads C Dlls How can ...Show All

©2008 Software Development Network