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

Software Development Network >> Peter Chapman's Q&A profile

Peter Chapman

Member List

Ecrofirt
Mateusz Rajca
Cla82
chipjollyroger
Martin Danner
TA123
Lawrence Wee
Bhupendra_Singh_4c7760
Dmitriy Ovdienko
Fusion54
Beetle54
cdolor
Rick3581
adgross
jeremy2006
Greg Knierim
cybertaz69
Ather.
Greenstrike
Programm3r
Only Title

Peter Chapman's Q&A profile

  • Visual Studio Generic types are not displayed in method declarations

    If you create documentation using the August CTP of the following code, then the declaration of the GetItems-method does not show the generic types used by this method. using System; using System.Collections.ObjectModel; using System.Text; namespace Overloads { public sealed class GenericTest { /// <summary> /// yep /// </summary> /// <returns></returns> public ReadOnlyCollection < string > GetItems( ReadOnlyCollection < string > value ) { return null ; } } } If you go to the page in the documentation describing the GetItems-method, you'll notice the following syntax: public ReadOnlyCollection <> GetItems ( ReadOnlyCollection &l ...Show All

  • Visual Studio Team System TFSWarehouse not updating

    Hi! I have serious problems with my TFS Server and the TFSWarehouse database. I can't get it to update, no matter what I try there is no response when I am in the warehousecontroller.asmx and selects Run. The status shows ProcessingOLAP for a second, but then back to idle. No errors is reported at all in the Eventlog either. Here is my story: This weekend I moved my TFS from one server to a another (Both environment is Single Server Deployment). And everything worked as expected, I runned a warehouseupdate manually during this upgrade, and everything seemed to work. When I came to work today I checked some reports only to find out that the last update of the warehouse was on saturday (the day I did the move). When I saw this I ...Show All

  • Visual C# How can I check if the datasource is writable?

    Hello, I'm using ADO.NET & MS Access. I'd like to know how can I determine if the datasource is writable. I mean what if the user if running the application from a CD and I try to update a row Is there a special exception thrown or something .NET Framework version: 2.0 Please advise. Thanks. Thanks but can you please be more specific What's in System.IO.File I should use and how. I'm new to C#. ...Show All

  • .NET Development Not Sure of SQL Query - Code Attached

    I am building a small application that calculates the required fuel for a Boeing 747 based on route distance, winds, etc. I have created a small Access database and code that successfully opens and closes the database but I can't seem to figure out how to write a query to get the correct infomation from the database. Briefly, the database table has four fields, Altitude, NAM (nautical air miles), Time and Fuel. I want to search the database for the Time and Fuel required for the Altitude and NAM numbers entered by the user. I'm not asking for anyone to write the code for me, rather I need some guidance on how it's done. Can I write a SELECT statement that searches the database for Time and Fuel WHERE Altitude and NAM equal certain valu ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. PC Gamer article on XNA (and other topics)

    The Holiday 2006 issue of PC Gamer contain about a page and a half on XNA, along with Vista, DX 10, Live Anywhere, and other topics. I'm not sure what the legalities are of scanning and posting the XNA piece. Regardless, go out and pick up the issue and rejoice over the PR XNA is getting. XNADevelopment.com was mentioned. Also - "Six weeks after the release of the free Game Studio Express, it has already been downloaded 100,000 times, and Microsoft is currntly tracking 23 community sites where more than 100 tutorials have been created by the user community alone." ...Show All

  • Internet Explorer Development Powerbuilder IE7 embedded webbrowser control

    Our Sybase Powerbuilder application contains an embedded Microsoft Web Browser control, accessing web pages on a local webserver. After installing IE7, dropdown controls within embedded web pages are no longer selectable. The options appear, but none are clickable. I have stripped the html code to a bare minimum, so it does not appear to be related to this. I have also tried noddy apps in various versions of Powerbuilder with the same results. On a machine with IE6 however, all is fine. Our customers have recently installed IE7 with the same result in the deployed application, and have had to revert to IE6 to resolve the problem. I have seen various issues with the IE7 install affecting VB6 apps, relating to shdocvw.dll a ...Show All

  • Visual Studio Context Sensitive Help Isn't

    Hi, I'm using VS 2005 8.0.50727.42 I am editing C/C++ code and highlight any function from the CLR. i.e. "remove" Intellisense correctly identifies the matching function declarations from stdio.h But if I press F1 I get directed to hundreds of pages of C#/Web development/SQL help. I really just want a "man page" for the function. I've tried disabling all the non-C/C++ options on the search page options but all the unrelated help is still shown. Any ideas on how to restrict help to only the CLR help pages Thanks, Steve Hi Steve - I'm not sure what's going on with that. There appears to be a problem with how this is resolving when using Online F1 help. I will ask someone to chec ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XACT Audio / Minor Rant

    <minor-rant> Can you please, *please* consider supporting a more low level way to play sounds than XACT. The Microsoft Cross Platform Audio Creation Tool (XACT) is a pain to use. I mean seriously how many devs do you have budget for to maintain this so called "IDE" It might be okay for professional game studios but I don't think it's that simple for the XNA GS crowd. Then again having looked in the XACT forum it doesn't look like a lot of professional studios are using it either. So then you have to ask why are we having it forced on us since this audio content creation tool has so far fallen on deaf ears ;). Perhaps it's a secret plot to get the XACT folk to make it better in future perhaps (hmm bite my tongue) A ...Show All

  • Visual Basic How to send e-mail?

    As the question, how to send e-mail I don't know what's the code for send e-mail. Can anyone teach me how to I have a button on the Menu Tool. I want when user presses that button, it will directly link to the Microsoft Office to send e-mail to me. Please teach me. By the way, I also want to know how to load a text file. I want to make another button on the menu tool so when user presses it, a text file will pop up. Thank you Hi, it is very example for sending email in VB.net. Actually, I would like to send a complex document, such as word document, I will use my contact personal information to insert them into my document, also I would like to put my document in the email body, anybody ...Show All

  • Visual FoxPro Weird "IIF" problem

    Hi, I seem to be getting a problem running the IIF statement using this particular code: "iif(((maturity)-(m.dday1)) between 365 and 730, 1, 0) as TERM" Basically Foxpro is saying that I'm missing a comma in this particular line of code. However, I can't seem to figure out where to place the comma. Thanks in advance! IIF() is an XBASE command. You are mixing with the BETWEEN SQL construct. Try using the BETWEEN() xbase function instead: Iif(Between(maturity-m.dday1,365,730),1,0) ...Show All

  • .NET Development Get table schema of table in Oracle

    Hellow i create table in oracle 9i : CREATE TABLE EMP ( Guid Raw(32), Name Varchar2(250), Num number(12), Phone number(20), InService number(1), hiredate date, ); i want in c# return schema of this table so i write this code DataTable t = new DataTable ( DbConst . Tables .Permission); DataTable t1 = new DataTable (); OracleConnection conn = new OracleConnection(" User ID = scott; Password = tiger;Data Source=hrmsdb"); OracleCommand cmd = new OracleCommand ( "select * from emp" ,conn); OracleDataAdapter da = new OracleDataAdapter (cmd); da.Fill(t); foreach ( DataColumn c in t.Columns) { DataColumn c1 = new DataColumn(); if(c.DataType. ...Show All

  • Visual Studio Team System Event subscription filter - limited to System fields only?

    I'm trying to subscribe to a WorkItemChanged event with a filter expression that uses custom fields -- without success. I've been using Naren's handy tool from: http://blogs.msdn.com/narend/archive/2006/07/26/679440.aspx rather than bissubscribe.exe directly. "System" fields (title, area...) work fine, but no email arrives when I use other fields, including both "Microsoft.VSTS" fields and my own custom fields. Do only System fields work Must I write a web-service extension to check other fields Thanks, Liel Biran OK, good to know that. However, from this I gather that if I use a filter on a field like Microsoft.VSTS.Common.Priority , I should receive emails wh ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Heightmap Terrain Component

    I thought the whole component concept was pretty cool. So I threw together a quick heightmap terrain component. http://i9.photobucket.com/albums/a59/craigory666/heightMapTerrain.jpg http://i9.photobucket.com/albums/a59/craigory666/heightMapTerrain2.jpg http://i9.photobucket.com/albums/a59/craigory666/heightmapprop.jpg It should work with square .raw files, and for the effectPath I'm just using the default texture shader found in the help file. The view and projection matrices of the terrain are exposed, so you should be able to hook up whatever camera you have going and just update the terrains view, and projection matrices during your games update. using System; using System.Collections.Generic; using System.IO; using Microsoft.Xna.Fr ...Show All

  • Visual Basic Printers.count - runtime

    I have a project that's using the printing power pack. I'm getting a runtime when calling the printers.count method when no printers have been installed. Has anyone encountered this problem John Here is the code: Imports Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim printer As New Printer If Printers.Count > 0 Then MsgBox(Printers.Count) End If End Sub End Class ...Show All

  • SQL Server DSNLess connection with Failover on SQL Server 2005 Cluster ?

    Hi, We have configured two SQL Server 2005 in a cluster (without Witness). We have severals ASP (using ADO) that are connecting to SQL Server 2005 with SQL Native Client in a DSNLess connection String : driver={SQL Native Client}; server=MAIN\MAIN; Failover Partner=BCKUP\BCKUP; uid=log;pwd=pwd;database=MyBase When using this connection string, the connection to MAIN is alrigth, but when we simulate a unavailability situation on "MyBase" or on the entire MAIN instance, the new connection are joining the MAIN and not the BCKUP SQL Server. We tryed several Connection Strings including Failover_Partner , Initliag Catalog instead of database... but no one succed in joining the BCKUP SQL Server. I precise that the DNS ...Show All

©2008 Software Development Network