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

Software Development Network >> Pete Ford's Q&A profile

Pete Ford

Member List

tichy291574
GlitchEnzo
Jithendrian
twaltz
rSchild
Duncan Woods
JoshKorn
Rod Mac
athadu
sumit kr
kewpcg
Sinh
fbnts
pvphuc
proximac
Bdenison
Prabu.
belm
baztheman
Johanvh
Only Title

Pete Ford's Q&A profile

  • Visual C++ my try catch stuff isn't working

    Below is my code with lots of comments: // create a boolean key to determine success or failure in the data conversion bool success = true ; // create variables here so that they can be used throughout this function int x; int y; // Use try->catch to prevent errors occuring because the user has put invalid characters in try { // change the values in textboxes min and max to integer values x = Int32::Parse( this ->min->Text); y = Int32::Parse( this ->max->Text); } catch ( ApplicationException^ ) { // conversion has failed, so disable the rest of the script for this run success = false ; // display a message both to tell the user about th ...Show All

  • SQL Server partitioning and referential integrity

    Hi there, I would like to partition my tables in SQL 2005 and I had a look at he AdventureWorks examples I found. I have a table with a primary key and a datetime column. I want to partition on that datetime column. I also have a second table with a foreign key on the first tables's primary key. As I understand, to obtain partitions I need to make the first table's origional primary key combined with the datetime column the new primary key which will result in my second table's referential integrity to be broken.My second table also does not contain a datetime field. I cannot see how a primary key can consist of a certain field and a datetime since the referencing table will never have the same datetime for that record. In t ...Show All

  • Visual C# VB translate to C#...

    I got sentence by VB like below: Page_Header(Me, False, progname) would like to translate this to C# I tried this sentence page.header(this.false,progname) and I got error message "page.header is a attribute can 't not difine as a method" can you help me to correct this sentence please thank you here I found a tool can convert vb to c#, hope it help you http://www.codeproject.com/csharp/GBVB.asp ...Show All

  • Visual Studio Team System Consistent rules across multiple projects in VS2K5 solution

    Hi there, This might seem like a very simple question and I apologize if I've missed it, but how do you apply the same Code Analysis template across multiple projects in the same solution Sure I can go to each project, and set the properties manually, but is there a way to set it at the solution level For example I wish to disable warnings associated with strong names across a solution with about 20 projects in it. Manually this is quite time consuming. Cheers Hi David, For now, a quick fix is just fine but I'll be looking at the shard targets suggestion too. It's just a bit of a shame there's not way set Code Analysis options at the solution (or solution folder level). Hopefully TFS wil ...Show All

  • Visual Basic Making a window appear at the mouse

    But I want the bottom-right hand corner to appear at the mouse popint. How would I do this Private Sub Form1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick Dim F As New Form2 F.StartPosition = FormStartPosition.Manual F.Left = Cursor.Position.X - F.Width F.Top = Cursor.Position.Y - F.Height F.Show() End Sub ...Show All

  • .NET Development HttpModule Strange Behaviour

    Hello All, I've implemented a very simple HttpModule which goal is to add a simple HTML comment at the bottom of every page/webservice served by IIS. I've configured the web.config file properly. What happens, in debug mode but even when deployed on my local IIS, is that the events are intercepted correctly (all the breakpoints on Init method and the callback function associated with the event PreSendRequestContent are fired) but none text is added. Any Idea I've pasted in the following the source code ofthe HttpModule. public class PageSignatorHttpModule : IHttpModule { HttpApplication httpApplication; public PageSignatorHttpModule() { } public void Dispose() { throw new Exception ( "The method o ...Show All

  • Visual Studio Express Editions Media files mp3's in VB express please help..to another computer

    New in VB . I put a mp3. file in my application using AxWindowsMediaPlayer and putting the url C:\Documents and Settings\ etc...It works on my pc, but i tryed sending the exe. to somebody else but they can't hear the music. They could run the exe program but can't hear anything. So i was wondering if anybody could help me........to fix this problem ...what could i do thanksssssss this is what i put in an openfiledialog.... Dim theOpenFileDialog As New OpenFileDialog() theOpenFileDialog.Filter = "MP3 Files (*.mp3)|*.mp3" theOpenFileDialog.ShowDialog() If (theOpenFileDialog.FileName.Length > 0) Then Me.AxWindowsMediaPlayer1.URL = "C:\Documents and Settings\Chico\My Documents\Visual Studio 2005\Proj ...Show All

  • Visual Basic Protecting EXE file

    I wrote a program and build it in Visual Studio 2005. I want No Body Can disassembling my EXE program and see my codes. What Should I Do Thank You For Your Response Do you mean on your own machine, or wherever the EXE is going to be deployed On your own machine, if your source code is in your own user folder, then it should be safe. For increased safety, encrypt the project folder. I have a feeling you mean elsewhere, though. It is very difficult, if not impossible, to "disassemble" an EXE file. A compiler cannot just take it and translate it back into code. However, be assured that it CAN be done by extremely advanced users. I'm not sure if there' ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. General strategy question about XNA

    What is MSFT's strategy with GSE I mean, is it a stripped-down version of GS Pro meant to spark interest in GS Pro Is it actually going the core of GS Pro, and the hobbyist/student community is acting as both first adopters and beta (or even alpha) testers of the product Is it a way for MSFT to foster some kind of indie/small game shop Xbox360 game development (The latter would seem to be slightly odd: the actual dev kits, I gather, are not a minor expense, in addition to what I'm assuming are certification and any other testing expenses; I would think that releasing an alternate path for Xbox game development might cannibalize an existing revenue stream...) It would seem to me to be just simpler to wait for GS Pro to come out, and l ...Show All

  • Gadgets My struggling gadget production.

    I am a bit of a novice w/ programming and the whole gadget concept. I am trying to create a gadget that allows me to Lock my Workstation, Shut Down or Restart the computer w/ just the click of a button. I figured it would be a simple gadget, HA! i was wrong. At first I figured i would find out what shuts down a computer... ExitWindowsEx(POWEROFF), located in user32.dll, will do it. So then I said cool maybe i can point it to that function. Well, now i dont even know if it does work cuz my gadget wont ever appear in the add list. I even dropped it into the "Program Files" fold and when i click the + button on the Sidebar the Icon shows up briefly then disappears. None of this gadget creating thing is making sense. I have tried to ...Show All

  • Visual Studio Express Editions Tutorial on adding dataset from access database programatically

    Hi, After moving over the 2005 Express I have always used the Add New Datasource wizard from VC#2005e to add datasets but I have run into some problems sometimes. Could someone please point me to a tutorial on how to add a dataset from an access database the good old fashioned way... programmatically Thanks ! Thanks. A couple of Qs Where do I tell the code where to find the access mdb In the place of "connectionstring" What does declare it globally mean How and where do I do this in VC#2005 express ...Show All

  • Visual Studio Team System Failed to load adapter

    Hello, I get the error below in the event log. I have looked through the other threads but have not been able to find a working solution. An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 9/1/2006 12:50:19 AM Machine: TOOLS01 Application Domain: /LM/W3SVC/4/Root/Warehouse-1-128015454095818883 Assembly: Microsoft.TeamFoundation.Warehouse, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727 Process Details: Process Name: w3wp Process Id: 7520 Thread Id: 4716 Account name: [ActiveDirectory Domain Name]\TFSSer ...Show All

  • .NET Development check if object being initialised

    Hi, Does anybody knows how to check if an object has been initialised I'm currently using the harder way that set the IsCreated value to true when the object is being initialised. Thanks. Thanks for the answer but the object is not nothing when i declared it.For example: Dim obj as TestObject when step through in the debugging mode, the obj is not nothing. Thanks. ...Show All

  • Visual Studio 2008 (Pre-release) Setting EventTrigger's SourceName to C# Object?

    I have an event trigger who's routed event is DoubleAnimationUsingKeyFrames.Completed. The actual DoubleAnimtionUsingKeyFrames object is created in the xaml's code-behind file in C#. What's the proper syntax for setting the event trigger's sourcename property to that C# object I've tried a straight-forward SourceName="myDAK" but the app throws a runtime error with the following message: 'DoubleAnimationUsingKeyFrames.Completed' value cannot be assigned to property 'RoutedEvent' of object 'System.Windows.EventTrigger'. Value cannot be null. So I'm guessing the problem is it can't find "myDAK". Suggestions Here's the xaml code... <Rectangle x:Name="myRect"> <Rec ...Show All

  • SQL Server Error when changing the length on DataReader Source

    Hi, I am trying to import data from Oracle RDB into SQL Server 2005 using SSIS. Created a ODBC data source to connect to Oracle and used DataReader Source component and ADO.net to connect to the ODBC data source. Under the Component properties tab, the SQL Command looks something like this. Select ID, ADDRESS, REVISED from ADDRESS The data type for the source columns are Integer, Varchar(30) and DATE VMS. Now when I look at the Input and Output properties window, The External columns has the following data types. ID - four-byte signed integer [DT_I4] ADDRESS - Unicode string [DT_WSTR], length = 0 REVISED - database timestamp [DT_DBTIMESTAMP] The Output columns has the following data types ID - four-byte signed integ ...Show All

©2008 Software Development Network