Software Development Network Logo
  • Visual Basic
  • SQL Server
  • Windows Forms
  • Visual C++
  • Microsoft ISV
  • Smart Devicet
  • Audio and Video
  • Windows Vista
  • SharePoint Products
  • Visual Studio
  • .NET Development
  • Visual FoxPro
  • Game Technologies
  • VS Team System
  • Visual C#

Software Development Network >> WayneSpangler's Q&A profile

WayneSpangler

Member List

hipswich
xaitech
Dr.Pepper
andy72
Rask
Francis Shanahan
Kaichun Wang
Aaron Oneal
ejamashu
VBE_programmer
Priya RV
WXS123
TimElvidge
j_ames2006
rwerner
bass_player
SheilaK1
Snickel65
Lennie Oxyer
Suman#SS
Only Title

WayneSpangler's Q&A profile

  • Architecture O/R Mapping

    O/R mapping is quite interesting.  I would like to post this question for discussion. I have the following classes: Employee, FullTimeStaff, PartTimeStaff, etc.  FullTimeStaff and PartTimeStaff have many attributes and behaviors in common and also many other unique attributes and behaviors.  So, FullTimeStaff inherits from Employee and PartTimeStaff also inherits from Employee. Do you think it is good to map both FullTimeStaff and PartTimeStaff to a single table called Employee (the table contains an extra field to identity whether he is full time or part time) in the database Converting an object into another is not a good practice. You are not forced to map one object to only one table, a complex object may hav ...Show All

  • Visual Studio 2008 (Pre-release) Accessing a WCF service from a ASP.Net Web application

    We have used web services before and are trying to migrate to WCF. I am trying to use an ASP.Net application to communicate with a WCF service using a hello world example. I am able to reference the WCF service in my client. But when I invoke the WCF service, it gives me a the foll error: Exception: The request failed with HTTP status 415: Cannot process the message because the content type 'application/soap+xml; charset=utf-8; action="http://tempuri.org/IMyService/MyOperation1"' was not the expected type 'text/xml; charset=utf-8'.. I tried to consume the same service using a windows app and did not have any problems. Is there some configuration i am missing Can somebody give me an example of how to achieve Thanks in advance, Abhishe ...Show All

  • SQL Server Handling Dataset in Stored Proc.

    Hi, I want to create and populate a dataset from store procedure with following to querires & return the dataset as a result. Select * from billmain where billno = 12 Select * from billdetails where billno = 12 I am currently performing this task aa a resultset. Now I want to use Dataset. Anybody can send me sample sp which returns dataset as a execution of the sp. Nilkanth Desai Hi, Thanks fpr your Reply. This is working fine when I call it from my ADO.NET Code. But If I want to trf. Dataset as a return result of the said stored proc. where I will be doing multiple select in more then one table. So if I call it only once I can complete all task in a single call. ...Show All

  • SQL Server Microsoft VBScript runtime error '800a000d'

    Hello, I all of a sudden seem to be getting the following error: "Microsoft VBScript runtime error '800a000d' Type mismatch: 'QueryString' /admin/equipment/addequipment.asp , line 128 " I am running an intranet site desgned on dreamweaver using SQL Server 2005. I have a page where I can update equitement, all the other equipemnt links work fine but it won't let me update this one. The section in dremaweaver it refers to is: Dim equipspec__urlid equipspec__urlid = "1" If (QueryString("ID") <> "") Then equipspec__urlid = QueryString("ID") End If %> <% Dim equipspec Dim equipspec_numRows Set equipspec = Server.CreateObject("ADODB.Recordset") equ ...Show All

  • Visual Studio Express Editions Formatting output in a textbox/label

    Hi I'm writing a program that basically calculates two numbers entered via text boxes then outputs to a label on the form. Sometimes I get a number with three decimal places. How do I change this to just show 2 decimal places Also, I have six rows of three columns. Is there an easier way of assigning a value to these similar to using an array For example, I currently have to assign a value to an array for (int a = 0; a < 5; a++) { arrayvalue[ a ] = a; } Then output individually to each textbox textbox1.Text = arrayvalue[0]; textbox2.Text = arrayvalue[1]; textbox3.Text = arrayvalue[2]; etc Can this be changed to for (int b=0; b < 5; b++) { textbox[ b ].Text = arrayvalue[ b ]; } Or am I just being super lazy lol! Hi Thanks ...Show All

  • Smart Device Development Hanging up an active phone call using Managed Code

    My wife and I have a telephone plan which provides free talk time for the first ten minutes of each call between our two phones. I recently discovered the State and Notification Broker elements in Windows Mobile 5.0. From these, I can detect the id of an incoming caller and spawn a new thread which counts out ten minutes. My objective is thus to automatically end a call when it approaches ten minutes and thus assure conversations between my wife and I are essentially free (call-connection charges notwithstanding). However, I cannot figure out how to programmatically disconnect the line. Does anyone know how to do this Thanks. The following thread sould answer your question: http://forums.microsof ...Show All

  • Visual Studio Express Editions releasing resources question

    Hi, i'm moving an Image object around with the MouseMove event,  and I have a Graphics object which draws the image in a Rectangle object.  Do I need to release resources - such as the dispose() method My pc crashed a couple of times recently, and I wondered if this had anything to do with it.    Hi, It's better if you dont override the onpaint event of the form, use form.paint instead (so it will not call the base.onpaint event). But it's not the cause . It seems that you want to drag the pic follow the mouse, right There is a more elegant implementation similar to it: http://www.java2s.com/Code/CSharp/GUI-Windows-Form/DraganddropthePictureBox.htm ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Feedback for Mitch W

    Mitch, This isn't really API related, but I just wanted to say thank you for your presence on this board. Its nice to feel like we are participating and your comments are interesting/helpful. Thanks. ...Show All

  • Visual C# big array and threading

    i'm developing a software to read values from a USB unit thats connected through a virtual COM port. I have an static array with size of 50000. I store my specialized object containing seven variables in this array. This array is filled with values as I make my "thing" with my external unit. Now the problem is that it's really slow to collect values. My readings come in with a speed of about 1 value each 2 milliseconds. I wrote my object as a struct to speed things up. Would it help to make my reading in a separate thread from my app JockeOlsson wrote: I have an static array with size of 50000. I store my specialized object containing seven variables in this array. ...Show All

  • Windows Forms Writing text mirrored....

    I'm using this method to draw a line of text into a picture control... public void Draw( System.Windows.Forms.PaintEventArgs e ) { if(graphics == null) return; Point dp = new Point ( graphics.GlobalDrawPosition.X, graphics.GlobalDrawPosition.Y ); dp = GetOffsetPoint(); StringFormat stringFormat = new StringFormat(); stringFormat.Alignment = StringAlignment.Center; stringFormat.LineAlignment = StringAlignment.Far; // Draw the text if( isInScreenRect( dp ) ) { e.Graphics.DrawString(text, graphics.starFont, graphics.brushDrawNormal, dp.X, dp.Y , stringFormat); } } I'm trying to make the text write mirrored.. while leaving anyother controls alone. I'm 100% sure there is a ...Show All

  • SQL Server message lost

    Hi... My service broker was working...all of a sudden it stopped working...so i figured out destination queue was disabled and I set it as ALTER QUEUE SERVERQUEUE WITH STATUS = ON , RETENTION = ON , ACTIVATION ( STATUS = ON , PROCEDURE_NAME = usp_OnReceiveMessage , MAX_QUEUE_READERS = 5 , EXECUTE AS OWNER ) Also altered my database for trustworthy after going through some posts previously. Now the message is sent...i dont see any message in my tranmission queue but i dont receive the message in destination server. When i checked endpoints... select * from sys.conversation_endpoints I see the last message with st_desc as conversing... how do I solve this... Thanks, Pramod ...Show All

  • Visual Studio Express Editions Code sample in MS ebook gives lots of errors

    I've just installed VC# Express, and created a Console Application, using the code sample from page 49-50 in the "Build a program now!" ebook from MS. Everything looks like it should in the code window (I copy/pasted the code), nevertheless I get 21 errors when I press F5. Most of them look like this one: "Error 16 Invalid token '(' in class, struct, or interface member declaration" Here's the code, copied from the code window: 1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 5 namespace MyFirstConsoleApplication 6 { 7 class Program 8 { 9 static void Main( string [] args) 10 { 11 // Declaring two integer numbers variables that w ...Show All

  • .NET Development Generating sample xml files

    Hi, I have Visual Studio 2005, and I would like to know whether it contains a functionality equivalent to, say, XMLSPY functionality to generate sample xml files automatically from a given schema. Thanks a lot, Pancracio See the article: " Generating XML Documents from XML Schemas " by Priya Lakshminarayanan. Cheers, Dimitre Novatchev ...Show All

  • Visual Studio Team System Branching - how to prevent merging into older branches?

    Here's the situation that we ran into.... We have two release versions: 5.0 and 6.0 5.0 is in production and 6.0 is in dev currently. In the meantime there is a call for a maintenance release off 5.0, which we call 5.1. Obviously, we want these changes merged into 6.0. But, we don't want these changes merged into 5.0, because then 5.0 would not be representative of its original form. So....how do we go about merging the changes from 5.1 to 6.0 The only option I see so far is baseless merging from 5.1 to 6.0. Since this scenario is pretty common we will be doing a lot of baseless merges. I would like to stay away from this option if possible since it seems more complex and something that could result in more errors. Any thoughts on how to ...Show All

  • SQL Server Migrating from SQL Server 2005 to SQL Server 2000

    I have to 2 database server, one is running in SQL Server 2005 and the other one is SQL Server 2000. Now, I want to transfer my database from SQL Server 2005 to SQL SERVER 2000 and gives error. Any solution Thanks Ronie What do you mean by "I want to transfer", how are you tring to accomplish that HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All

©2008 Software Development Network