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

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

Peter Ritchie

Member List

Wint
haihtomy
Spigot
Mahender
UK_12
Tom Janssen
smejicoiii
robinjam
clinton0
forrestcupp
BorisAro
D. Choquette
durnurd
jason d
kats
hazz
Jose Diaz
soanfu
Quadrillion
Pr09aN1g0d
Only Title

Peter Ritchie's Q&A profile

  • Visual Basic How to set a printer to be the system default printer?

    Hi all, first of all: please be pateient with me as I'm not at all an experienced VB programmer. Reading lots of articles on MSDN I learned how to use PrinterSettings and PrintDialog and control printer settings. What I didn't find, though, is a way to make one of the installed printers the system default printer using VB 2005 Express. If - for some reason - that's not possible using VB 2005 Express, there's still a 2nd option; in the forums I found a link to a technote explaining how to set the default printer using VB 6.0 / through Win32 API calls (http://support.microsoft.com/default.aspx scid=kb;en-us;266767). I'd like to avoid the hassle, but if necessary I would do it. Unfortunately, I don't know how to retrieve the CURRENT system de ...Show All

  • Visual C++ Can't vcbuild a project from another directory?

    I have a solution made of multiple projects which I am trying to migrate from VS6 to VS2005. The original uses nmake and msdev, so I'm trying to replace msdev with vcbuild. I've found the following odd behavior: Let's say I have a directory tree that looks like this: ..\aa\bb\ containging project.sln and project.vcproj ..\cc\ containing my makefile Now, when I'm in \aa\bb I can type ' vcbuild project.vcbuild "Release|Win32" ' and it builds fine. However, when I'm in \cc I type ' vcbuild ..\aa\bb\project.vcbuild "Release|Win32" ' and I get a whole slew of link errors. Using the equivalent msdev commands on the .dsp file works fine. Of course, the project builds fine in the IDE too. How can I use vcbui ...Show All

  • Visual Studio Express Editions Changing selected font with multiple RichTextBox controls

    I'm creating an application that creates a document using data from multiple RichTextBoxes. Some of the text that is entered will need to be formatted using formatting buttons (like the bold/italics/underline buttons in Word). The problem is, since I have multiple text boxes the program does't know which text box to apply the format to. Using Form1->ActiveControl returns the tool strip control from where the button is so that's no help. Any ideas Note: The richTextBoxes are all contained in an array of richTextBoxes i.e. private: cli::array<System::Windows::Forms::RichTextBox^>^ richTextBoxes; Thanks. Write an Event handler for all the RichTextBox controls so you know whi ...Show All

  • Visual Studio 2008 (Pre-release) .Net 3.0 / Linq doubts

    Hi, I have lots of doubts regarding .Net 3.0. I have installed .Net 3.0 final version runtime and vs 2005 extensions nov 2006 ctp. I am developing XBAP applications. After knowing about LINQ I installed linq May 2006 CTP. is this the latest version Any final version released In the new project window why i am seeing linq preview and in the right pane I see linq console / linq window app e.t.c is that not possible to use in WPF / XBAP applications I have mentioned my environment above now when i try to open the samples available in linq May 2006 CTP it says "This is unsupported version of Microsoft Visual C# 3.0 / Microsoft Visual Basic 9.0" Please guide me on all the above. Also is it advisable to devel ...Show All

  • SQL Server Dumb, but necessary, question on SSIS feature completeness

    We have never built a data warehouse. We are not even sure what the required features are to do this. Nontheless, our developers are exploring two ETL tools: SSIS and Sunopsis. They tend to like Sunopsis because it has been around a few years, has the equivalent of source-code modules (libraries) in the tool, has a highly granular security system, has 500 companies using it. and therefore must have survived several ETL projects. (We don't know if, or how many, real-world projects SSIS has been used for.). Sunopsis is Java based and uses its own authentication scheme (no support for Windows Active Directory yet. Bummer) To the best of your knowledge is SSIS, out of the box, missing any of the standard functionalites needed to populate ...Show All

  • Architecture BPEL, XPDL and BPMN

    "BPEL is a standard which supports webservices and system to system applications workflow. For more of a human workflow, XPDL promoted by WFMC is the best." "BPMN is for modelling and supports both XPDL and BPEL. Simple BPEL based modelling tools for BPMS systems lacks a lot compared to BPMN based systems" Please provide me with your comments on the above statements. Also that, what standards are been followed in WF. Regards " We are in talks with partners to add BPMN modeling for WF" Are there any partners that have currently done this to date Can you provide your thoughts about approaching a BPMN to XOML conversion given a BPMN modeler tool for which the outp ...Show All

  • SQL Server How to create a report using multiple databases

    Hi, I am a beginner of Reporting Service. I am trying to create a report using multiple databses. For example, I want to create a report called RevenueByCustomer, so I need to get data from the Customer Table of CRM database, which contains customer information, and I also need to get data from Transaction table of Sales database, which contains all the revenue information. In order to get data from both database, I have created two dataset. One is Customer dataset, which get all required customer data from CRM database, and the other is Revenue dataset, which gets data from Sales database, they used seperate datasource (because each datasource only contains one database connection). Now my problem is how can I make them be displayed in on ...Show All

  • Visual Basic Add Installed Program to All Programs List

    I have writen a simple VB 2005 windows app and added a setup project to the solution. When the user runs the MSI program to install the program on her/his machine I would like to have an entry added to the list of programs the user sees when clicking All Programs. It is not clear to me how to specify to the setup program that I want the installer to do this. Can someone help me Thanks. Thanks for the reply ... it was helpful but I am still having a problem. It is not clear to me how to specify in the File System Editor that I want a shortcut to the start page of my project created. If I right click, say, User's Desktop what do I do to cause a shortcut to the start page to be added Thanks ...Show All

  • Visual C# Immediate window in C# VS2005 - how to loop through collection

    I've got an error during loading data into DataTable - "Constraint violation...Relax constraints.". I need to loop in immediate window to find DataRow that HasError. I tried: foreach(DataRow dr in dtab) if(dr.HasErrors) Console.WriteLine(dr["ID"]); but it failed: Invalid expression term 'foreach'. Is there any way to achive it Billberry You can I think, but only in VB, not C#. See: http://www.devx.com/tips/Tip/15231 type=kbArticle&trk=MSCP Bilberry ...Show All

  • SQL Server date parameter issue

    hi all We are a multi site / multi language company so do not want to hardcode the date format - these reports will be on intranet Using MS Sql - Reporting Services 2005 Using no formatting on fields = yyyy-mm-dd - is how it is displayed. I added a @startdate and an @enddate parameter I read up and saw this information: Report properties set 'Language' setting to '=User!Language' to detect user culture automatically My regional settings are set to English (New Zealand) but whatever I do I receive no data - (data is definately there eg when run without parameters) so it is obviously the dates incorrect. Can someone give me some advice on what else to check. Have you tried the ...Show All

  • .NET Development How to perfrom batch deletes with ADO.Net

    Hi, I'm using code in the same way the following code sample to perform batch insert: DataTable t = new DataTable(); t.Columns.Add("a", typeof(int)); t.Rows.Add(1); t.Rows.Add(2); // don't hardcode connection strings in your apps, this is just a quick sample :) // pre-create the table with "CREATE TABLE t (a INT)" using(OracleConnection conn = new OracleConnection("server=tcp:localhost; integrated security=true; database=test")) { conn.Open(); OracleDataAdapter da = new OracleDataAdapter (null, conn); da.InsertCommand = new OracleCommand("INSERT INTO t VALUES (@a)", conn); da.InsertCommand.Parameters.Add("@a", SqlDbType.Int, 0, "a"); da.InsertComma ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Device Creation Problem

    Hi, I am a starter to the game development. I planned to create a small program(game) that just initializes a device as a startup. I decided to do it in c#. I have the VS2005 Express Edition to start development. I have also downloaded the DirectX SDK, oct 2006. But the express edition throws an error InvallidCallExcpetion Every time i create a device. This is how i create it. PresentParameters presentParams = new PresentParameters(); presentParams.Windowed = true; presentParams.SwapEffect = SwapEffect.Discard; device = new Device(0, Microsoft.DirectX.Direct3D.DeviceType.Reference, this.Handle, CreateFlags.SoftwareVertexProcessing, presentParams); } I have a old graphics unit(sis 6326, 4 Mb) and a PII ...Show All

  • .NET Development DISPLAYING TABLES OF AN ACCESS DATABASE THROUGH C#

    Hi everyone I am trying to display all the tables in a MS access database through a application im developing in c#. However im receiving errors. Here is part of my code. This method executes a SQL query and returns a OdbcDataReader object. private OdbcDataReader GetQueryReader( string query) { OdbcDataReader reader = null ; OdbcCommand command = new OdbcCommand(query, serverConnection); Open(); try { reader = command.ExecuteReader(); } catch (NullReferenceException e) { Utility.CheckTool.ShowMsg("Error in getting the reader, null exception error" ); reader.Close(); } catch (OdbcException e) { Utility.CheckTool.ShowMsg("Error in getting the ...Show All

  • .NET Development Microsoft.XMLHTTP Problem...

    Hello, I have an application that does the following: MSXML::IXMLHttpRequestPtr HttpRequest; hr = HttpRequest.CreateInstance("Microsoft.XMLHTTP"); The above is failing with Invalid Class String We have many customer using our applicatipon and this happens only on one system. Can anyone give me any insight as to why this may be happening I have tried to re-register the msxml3.dll but with no luck. Any help would be greatly appreciated. Thanks, Tony This is a versioning issue. Most people resolve this by explicitly specifying the version of XMLhTTP. e.g. MSXML2.ServerXMLHTTP or MSXML2.ServerXMLHTTP.4.0 Are you using .NET 2.0 If so - I encourage ...Show All

  • Visual C# Trim file path to file name

    Ok, so I want to take a file path and trim it down to the file name. Sounds simple, right So I take this: "C:\Program Files\Test\Test.txt" And I get this: "Test.txt" I realize that this is probably a commonly asked question, but search yielded no results. (Not to mention that the msdn website search is horrible - you can't just search in your current section instead of the whole global msdn) Use google to search MSDN, it's the only way to find anything. MSDN search is a joke, always has been. If you use site:msdn.microsoft.com, google will search just the MSDN site. Path.GetFileName(filepath) is what you need. ...Show All

©2008 Software Development Network