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

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

Peter Johnston

Member List

KCastillo0319
stuntpope
Perky Swenson
YaroslavB
Bill Robertson - MSFT
Tillmann #Europe#
Tim HK Wong
MSzinger
FelipeLopez
James 1375
thuang
Igor.Kantor
Bobby Stark
AshokKumarTD
Mohammed Fadel Shatnawi
angsram
ornorn2
Koos Brandt
KingMax
Intern Bob
Only Title

Peter Johnston's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. How to make a trainer.

    Does anybody on this forum know how to make a video game trainer in c++ (using visual c++ express) I would like to know how to do this. I know it is not impossible. I have searched the internet and all the examples I could find are either extremely old or they are for asm (which I do not know). I am fluent in vb and vb.net, if that matters. If someone would be nice enough to explain the process to me, it would be great. Thank you. I don't like cheating with it, im looking at making a bot by accessing memory and then using these variables to construct a map of variables. Not every one cheats with stuff, just tell him what he wants to kn ...Show All

  • Visual Studio Express Editions relate an extension to my application?

    Hi. How can I set windows to open a type of files with my application. like a file.doc will be opened directly by Word. I want that my file.ext will be opened by MyApplication.exe can anybody give me the code to do that... Thanks This is something that needs to be done during installation, and unfortunately it isn't supported by ClickOnce deployment, the only deployment technology supported by Visual Basic Express. If you have the full version of Visual Basic you can specify file associations in the File Types editor for a Setup and Deployment project. The following topic shows how: http://msdn2.microsoft.com/en-us/library/4fcx9 ...Show All

  • Visual C# please help me udnerstand how they do it

    Hi They have 3 buttons.. Like the Control form butonss.. The X _ and maximize.. They make a image for all there buttons in pressed mode.. another image (gif) in mouse over another image in "free" .. that means that no action over the button was made.. Here is the link to those images.... 1 image is on mouse click picture 2 image is a animated mouse over picture 3 image is a map... 4 normal picture of the buttons As you see all the three buttons are in on image... then in their program some how manage to make 3 buttons.. but each button has as background image a part of the initial image(that with all there buttons) .. the Mouse ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Pic Box with multiple vector objects

    I am trying to create a game where you can set several pieces together on a canvas, draw lines between them, and have the objects passs data. (Much like the pipeline games in cell phones) All I need at the moment is to have 2 bitmaps present on a canvas (pic box panel form, who cares. ) and be able to target them separatly and move them about the screen with drag function, and have a snap point on each image to draw a line between the two. ...Show All

  • Visual Studio Team System version control, savepoints and shelving

    I like the idea of 'shelving' in VSTS a lot (we'd use it mainly for personal savepoints). However my understanding is that each shelfset must have a unique name, they cannot be incremental In this case, I would have to create 'john1' then 'john2' etc to get some rollback facility. Not ideal. The alternative approach (that we currently use on SVN) is to have a personal branch for savepoints, commit to that regularly (it's personal, so broken code is fine) and, when finished, merge the work as one unit into the main trunk. If we use this on VSTS would we then be able to totally remove these branches from the server (and reclaim the space). T ...Show All

  • .NET Development DataTable.Filter Or DataTable.Select method question

    Hi ! I'm wondering if someone here know if the Filter or Select method of the DataTable Class is optimize with a table index or is use a sequencial seach Hi! DataTable have DefaultView property, which is index by it's nature. It used in select, sort & filter operations. But in general DataTable is good for small tables only, i.e. it is not heavily optimized like SQL servers. ...Show All

  • Windows Forms inherit control in the flowLayoutPanel.

    Hello.. I want to ask a question because I faced the weird situation. The test process is as below. 1. Make the ancestor form. 2. Put in the flowLayoutPanel and adjust the modifiers to "public". 3. Put in the button in that flowLayoutPanel and adjust the modifiers to "public". 4. Inherit from above the form. ( Make the descendant form ) 5. See the properties of button in the descendant form.     That properties are "read only". If I make the just button and inherit the form, the button's control' properties are modifiable. Why does it happen I can't open my application's windows forms because of that situation since the RTM r ...Show All

  • Visual C++ Compile error when upgrading from vs2003 to vs2005

    I have a class UnitCollection inherited from CollectionBase, in this line:                __property Unit* get_Item( int index); I get this error: error C2392: .......::UnitCollection::get_Item(int)' : covariant returns types are not supported in managed types, otherwise 'System::Object __gc *System::Collections::IList::get_Item(int)' would be overridden Any help is very much appreciated. Thanks. I supose that this was a compiler error in the old version. You can not overide it when you define a new type. Either create e new inte ...Show All

  • Windows Forms How do I display a PDF file in a VC++ .NET Windows Form application?

    The subject says it all! I have used the Choose Toolbox Items to add the Adobe Acrobat Control for Active X to the ToolBox and then dragged it onto the form. It works, but even though I have the very latest Adobe Acrobat 7.07 Reader Installed, the pdf.ocx control is only version 5.05. I checked in the ActiveX directory of my Adobe\Acrobat 7.0 installation and there was no pdf.ocx there. Also on Adobe's Web site, all their info. on pdf.ocx only mentions the 5.05 version. Is there a better way to display PDF files other than the pdf.ocx ActiveX control I had considered using the native .NET WebBrowser control and relying on the Adob ...Show All

  • Windows Forms ToolStrip in MDI Parent

    Hi All, How can i to control a save button on Toolstrip in MDI parent to save a Child form which the child form is activate Thx a lot. Laputa Hi You can get Active MDI child any time by checking the ActiveMdiChild like this. ActiveMdiChild ...Show All

  • .NET Development Complete read-only collection wrappers?

    The new generic collection classes sure are nifty but I'm a bit baffled that the feature-rich Generic List only returns a primitive IList as a read-only wrapper (method AsReadOnly). Generic Dictionary, LinkedList and SortedList don't support r/o wrappers in the first place. Come on, guys... aren't there any plans to implement complete r/o wrappers for the final release The non-generic ArrayList has a feature-complete r/o wrapper... why fall back behind this standard with the generic collections No, that's not at all what I'm talking about... a read-only wrapper restricts access to the elements of the c ...Show All

  • .NET Development Creating a temporary Directory

    I want to create a random temporary folder in C#. Is there an easy way to do this using any.Net Library I don't want to use the FileSystemObject and I want to avoid implementing my own function. Do you have a sample code you can share Thanks! Arturo Thank you for your answer! GetRandomFileName will work. I am not sure how I missed that. This is the code that works like GetTempFileName, but instead creates a directory, public string GetTempDirectory() { string path = Path .GetRandomFileName(); Directory .CreateDirectory( Path .Combine( Path .GetTempPath(), path)); return path; ...Show All

  • Visual FoxPro Downloading and uploading file from URL

    Hi. First task : How to download a file from internert via FoxPro Second task : How to upload a file in Foxpro via ftp Thanks This is what I use to download a file from the web.  My customers use this each day.   To download from http site use    ftp. in front of the file name.   ******************************************************************** *** Name.....: MENU DESIGNER - COMMON - DOWNLOAD UPDATE PROCEDURE *** Author...: Donald J. Higgins *** Date.....: 04/01/2006 *** Notice...: Copyright (c) 2006 Common Sense Software *** Compiler ...Show All

  • SQL Server Drop Down Parameter List

    I have a string with values that are separated by a space. It looks like this: DAY MICS SUN FIX STD . I would like to take the string and make it a drop down list in a report parameter. I have tried the split function but it errors on me. How can I accomplish this Thanks for responding. Yes the value is dynamic. When you say do the split in T-SQL (Transaction SQL ) how do you do that I dropped the code from the article link you sent me into the code section under report properties. I get an error "There is an error on line 0 of custom code: [BC30188] Declaration expected." Maybe that is ...Show All

  • .NET Development validating username/password across the network for \\pcName\c$ connection

    I would like to know how to code into my program automatic authorization across a UNC connection. I have .config files on other pc's in a Microsoft Active Directory network environment that need to be changed from time to time. So let's say there is a pc called POS151 on the network and I need to change some text in a file on that pc....I would like to know how to program authentication to POS151 so I can access the following path and alter said file - \\POS151\C$\Program Files\SpecificProgram\file.config - I have written a VB program that can do that, but only after I authenticate a connection to the pc firs ...Show All

©2008 Software Development Network