The Five Biggest Contradictions in Fitness
Latest Article

The Five Biggest Contradictions in Fitness

Itís no secret that when people contradict themselves, it has the effect of making the flaws in their actions or statements seem glaringly obvious. But what about when WE ourselves get caught contradicting ourselves by someone else?

By: Nick Tumminello Added: January 6th, 2014
More Recent Articles
Contrast Training for Size
By: Lee Boyce
An Interview with Marianne Kane of Girls Gone Strong
By: Jordan Syatt
What Supplements Should I be Taking? By: Jay Wainwright
Bench Like a Girl By: Julia Ladewski
Some Thoughts on Building a Big Pull By: Christopher Mason

Facebook Join Facebook Group       Twitter Follow on Twitter       rss Subscribe via RSS
Results 1 to 8 of 8
  1. #1
    Senior Member danmac's Avatar
    Join Date
    Aug 2007
    Ottawa, ON

    Programming help! (C++)

    I figure someone on here knows some programming. I don't, well not enough anyway.
    Does anyone knows how to created a GUI (graphic user interface) in C++? I need to create one for a project. It doesn't have to be anything fancy. I just need two inputs from the GUI that can be used in my program as if they inputs in the command prompt.

    Can anyone here help?

  2.    Support Wannabebig and use AtLarge Nutrition Supplements!

  3. #2
    Grammar Nazi BG5150's Avatar
    Join Date
    Jun 2005

    In search engine: gui c++

    There will be other links, too.
    There are no stupid questions, just stupid people.
    Two wrongs don't make a right, but three rights make a left.
    Are you eating while you are reading this? You should be... --hrdgain81
    Remember, kids, if you type well the Grammar Fairy will leave a quarter under your pillow. The Blue Book of Grammar and Punctuation

    Well, the Blog's (finally) back (again!): Love and Hope and Sex and Dreams Feel free to stop by and comment.
    Here is my newly-created World of Warcraft Blog: BG's WoW Blog. Once again, feel free to stop by and comment.

  4. #3
    Wannabebig Member
    Join Date
    Nov 2008
    I do but this isn't something you can just teach through an online forum. I would suggest searching blog articles or visiting a forum dedication to programming. Reading a book is your best bet.

  5. #4
    Senior Member lakeripple's Avatar
    Join Date
    Dec 2006
    what platform do you need the application to run on?

    if this has to work on windows, you can do this in a couple minutes with visual studio 2005 or 2008.

    create a new c++ project, and under clr, select windows form application. you can then add controls for whatever inputs you need from the vs toolbox, then import any existing code you need into the project.

    there are other ways you can do this that suck a lot less, but they're more complicated, it sounds like you're just learning so there's no reason to over complicate things.

    you could also make it cross platform using the Qt framework, but that's a whole different can of worms.

    let me know if you have any more questions, and i'll try to help you out.
    Last edited by lakeripple; 12-01-2008 at 08:03 PM.
    Goal: Set a deadlift provincial record in mens junior.

  6. #5
    Senior Member danmac's Avatar
    Join Date
    Aug 2007
    Ottawa, ON
    Hey sorry for the lack of replys. I didn't mean to ask a question and then take off.

    I need this to run on windows xp. I really have no programming background, this is for a 4th year engineering project. Our prof "stongly suggested" that we have a gui istead of the command prompt.

    I dont really have time to learn the language in detail, its a very small part of a VERY big project.

    I will try what lakeripple said and get back to you guys.

  7. #6
    Senior Member deeder's Avatar
    Join Date
    Oct 2005
    If the project doesn't have to be in C++ you could write it in Java and use Netbeans and Swing to build a very simple, quick GUI. Java is pretty close to C++ for the most part so it would be an easy transition IMO.
    Full Powerlifting
    Squat - 595lbs -- 270kg -- Dec. 31, '09 (Provincial Record @100kg class)
    Bench - 374lbs -- 170kg -- Dec 20, '08 (@100kg class)
    Dead - 589lbs -- 267.5kg -- Dec 20, '08 (Provincial Record @100kg class)
    Total: 1537lbs -- 697.5kg -- Dec 20, '08 (Provincial Record @ 100kg class)
    Bench Only -- 358lbs -- 162.5kg -- Nov. 25, '07 (Provincial Record @ 90kg class)
    Bench Only -- 376lbs -- 171kg -- Jan. 26, '08 (Provincial Record @ 100kg class)

  8. #7
    Senior Member danmac's Avatar
    Join Date
    Aug 2007
    Ottawa, ON
    It has to be in C++, no idea why.

    I have made a little graphical interface following what lake ripple has said, and it runs and looks like what i want but i cant get it to do anything.

    I created two text boxes that i need to be my inputs for my code, and a button to say ok.

    Is there a way to link what is in those text boxes to a variable in my code? and is there a way so taht if you press ok it sends those two inputs to the variables and runs the rest of the program?

  9. #8
    Senior Member lakeripple's Avatar
    Join Date
    Dec 2006
    in the form designer, if you double click on the ok button you created, it will take to you the code for your form, and create a function for you. there you can write all the code that will be done when the user clicks on the button.

    you need to create two private variables in the form code, and two get methods that return their values.

    variablename = textboxname->Text->ToString() or ToCharArray(), to access the text in the textboxes from the form class.

    then you can use the get methods you created, to return the variables in the from code to your code.
    Last edited by lakeripple; 12-01-2008 at 11:42 PM.
    Goal: Set a deadlift provincial record in mens junior.

Similar Threads

  1. starting strength versus practical programming
    By sandcracker21 in forum Bodybuilding & Weight Training
    Replies: 14
    Last Post: 09-05-2008, 11:39 AM
  2. Website Programming
    By d'Anconia in forum General Chat
    Replies: 7
    Last Post: 10-21-2007, 05:12 PM
  3. Practical Programming
    By Vapour Trails in forum Bodybuilding & Weight Training
    Replies: 15
    Last Post: 05-30-2007, 11:51 AM
  4. What programming language to learn?
    By BG5150 in forum General Chat
    Replies: 25
    Last Post: 07-19-2006, 07:19 AM
  5. Interested in Programming?
    By defcon in forum General Chat
    Replies: 11
    Last Post: 05-02-2005, 09:36 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts