Could somone test this?

This is a discussion on Could somone test this? within the Windows Programming forums, part of the Platform Specific Boards category; I'll try a different approach here, really frustrated with this equation solver. I have followed the example from http://www.sunlightd.com/Windows/GUI/DialogBoxes.html exactly ...

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    91

    Could somone test this?

    I'll try a different approach here,

    really frustrated with this equation solver. I have followed the example from

    http://www.sunlightd.com/Windows/GUI/DialogBoxes.html

    exactly but still must be doing something wrong.

    Everything compiles but the dialog box doen't appear ?

    would someone be kind enough to try it out if i give a link to all the files i have craeted so far, ?

    here is the link anyway.

    http://www.geocities.com/loopy_987/Res.zip

    thanks if you can help.

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >> have followed the example from

    http://www.sunlightd.com/Windows/GUI/DialogBoxes.html

    exactly but still must be doing something wrong.<<

    No, you have used lcc-win32 to generate a skeleton dialog based application. And that lcc-win32 auto-generated code has a lot of junk in it.

    BTW, it compiles fine and your example displayed a small dialog with 2 buttons.

    Given that in this thread you have stated that you have written your quadratic solver in c++, would it not be prudent, assuming that this is the reason you want a win32 window, to get yourself a c++ compiler instead of a C only compiler as lcc-win32 actually is?

    If so, then get MinGW with a cute DevCpp ide here (free, 12mb):

    http://prdownloads.sourceforge.net/d...devcpp4980.exe

    unless you have already got a c++ compiler or intend to get one. There are other free ones but that one, with the ide, is pretty quick and easy to learn.

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    91
    Excuse my ignornace here ken, but how did you manage to compile it, as i forgot to put the main.cpp file in there, you have to understand i'm still a novice here.

    anyway here the file with the cpp file in it, has been 'packed' so it will install to the correct directory, so the cpp file will link to the right header file location etc...

    About the C vs C++ its no problem to change the C++ into C, i'd rather have the option to create applications such as the dialog box... i do have dev C++

    http://www.geocities.com/loopy_987/res1.zip

    I thikn you need to right click as save for those links.
    Last edited by joeyzt; 07-17-2003 at 05:58 PM.

  4. #4
    jasondoucette.com JasonD's Avatar
    Join Date
    Mar 2003
    Posts
    278
    Even though the sunlight tutorials are good, I would actually recommend learning how to create and manage a normal window first, and then you'll realize that dialog boxes are bascially windows as well, except that Windows handles some of the basic management of them. You'll understand the differences between the two, which is good, because most applications you'll eventually make are not just dialog box apps... My recommendation is to buy and read the classic Programming Windows, 5th Edition by Charles Petzold. By the time it explains dialog boxes, you're into chapter 10... so it explains everything in depth, and in the proper order. Well worth every penny.

  5. #5
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>Excuse my ignornace here ken, but how did you manage to compile it, as i forgot to put the main.cpp file in there, you have to understand i'm still a novice here.<<

    haha! Nicely put. I looked at what you had provided and it seemed to be just auto generated code from lcc-win32 and, sure enough, when I fired up lcc-win32 and walked it through a dialog only app, it produced the same code as you had supplied - ergo, it worked!

    >>anyway here the file with the cpp file in it, has been 'packed' so it will install to the correct directory, so the cpp file will link to the right header file location etc...<<

    What's wrong with just zipping the source/project up?

    >>About the C vs C++ its no problem to change the C++ into C, i'd rather have the option to create applications such as the dialog box... i do have dev C++<<

    You can create and use resources with devcpp (mingw) but it doesn't have its own gui resource editor. It's possible to use lcc-win32's to design your dialog and other resources and generate a script that should be ok to use with mingw.

  6. #6
    Registered User
    Join Date
    Jun 2003
    Posts
    91
    OK, i give up , i need some decent software!

    If i want to mainly, for now, create maths programmes in a windows style box, should i puchase, VC6++ or visual basic ?

    or is there any other software that would be recommended ?

  7. #7
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    If you are buying a compiler then I would go for Visual C++.net 2003.

    For free you can get Dev-C++ here
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Integer Emulation
    By Elysia in forum C++ Programming
    Replies: 31
    Last Post: 03-18-2008, 02:03 PM
  2. My C++ test is COMING!!...
    By [Z-D] in forum C++ Programming
    Replies: 52
    Last Post: 12-01-2006, 08:02 PM
  3. undefined reference
    By 3saul in forum Linux Programming
    Replies: 12
    Last Post: 08-23-2006, 06:28 PM
  4. C++ Operator Overloading help
    By Bartosz in forum C++ Programming
    Replies: 2
    Last Post: 08-17-2005, 01:55 PM
  5. MSVC Template Constructor/Assignment Errors
    By LuckY in forum Windows Programming
    Replies: 3
    Last Post: 07-22-2005, 03:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21