Borland C++ Help Please

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • squills
    New Member
    • Feb 2007
    • 9

    Borland C++ Help Please

    ok I have a web site , made a program that i want to put on my website. but first i have to fix one thing and have not been able to get it to work.

    I am going to try and explain this the best I can.

    ok I have a listbox (ListBox1) i also have a edit box (Edit1) and one button (Button1)

    Then 2 more buttons Save(Button2) and upload(Button3)


    Now i want when i open this program to beable to click on Upload and it takes info from a log file and places that info into the listbox. Also i need when i hit save it takes the info inside the list box and places it back onto the log.

    This is pretty much the procedure. person x opens the website and see's the form. clicks on upload and names appare in the listbox. Person x now types in his/her name and click enter there name is now in the listbox. They hit save so the next person that comes alone will now see person x name when they hit upload.

    What i am doing is alot more detail but in a small example this answer should help me along the way.

    Also do i need the upload button or can i make it so when it starts it automaticly loads the log file into the listbox?

    iam sure ill have more questions but for now these are my major ones.
    Thanks
    Squills
  • AdrianH
    Recognized Expert Top Contributor
    • Feb 2007
    • 1251

    #2
    Sorry squills, but this question sounds like a web app. Where do you get the idea that it has to do with Borland C++?


    Adrian

    Comment

    • squills
      New Member
      • Feb 2007
      • 9

      #3
      well i all ready made most of the form. just not the saving part..

      and i just plan to post it on my website when i do finish it?
      see iam only having problems with how to read in from a log file and save to a log file the info inside the list box.
      thanks
      squills

      Comment

      • squills
        New Member
        • Feb 2007
        • 9

        #4
        Also upload and save are just the names of the buttons.

        Comment

        • Ganon11
          Recognized Expert Specialist
          • Oct 2006
          • 3651

          #5
          Borland C++ probably has some plug-in type extras that allow buttons and labels to created like VB - but this is just a guess, as I've never used Borland before.

          Comment

          • squills
            New Member
            • Feb 2007
            • 9

            #6
            ahhh i see ... I am using Borland Builder C++ not just regular borland C++
            This does have the buttons and ect just like VB. ill have to change to title i guess?

            so any ideal on how to read and write to a log file using Borland Builder?
            squills

            Comment

            • AdrianH
              Recognized Expert Top Contributor
              • Feb 2007
              • 1251

              #7
              Originally posted by squills
              ahhh i see ... I am using Borland Builder C++ not just regular borland C++
              This does have the buttons and ect just like VB. ill have to change to title i guess?

              so any ideal on how to read and write to a log file using Borland Builder?
              squills
              So what you are making is a server application?


              Adrian

              Comment

              • squills
                New Member
                • Feb 2007
                • 9

                #8
                Originally posted by AdrianH
                So what you are making is a server application?


                Adrian

                well i dont know much about servers. but pretty much this is my program.

                i have a web site that i want to put this program onto. once the program is on there i will have a log file also stored on the program.

                so when someone visits this page in my website they can add there name to the listbox. and i want the list box to keep eveyones name

                so i thought i had to have a way of saving the info...kind of like a database

                i wish we could attach pictures i would show you what i have would make it alot easier...

                ok let me try this way of explaining it.

                i have a list box the names mike bob and carol are in it
                ex. Mike
                Bob
                Carol


                ed visits the page and wants to put his name init so when he visits he should see the other 3 names all ready in the list box. he enters his name ED
                so next person that comes to that page will see
                mike
                bob
                carol
                ed

                ill see if i can get a link to my picture it might help explain things
                squills

                Comment

                • squills
                  New Member
                  • Feb 2007
                  • 9

                  #9
                  ok i have picture up so let me explain my whole program just so your not confused.

                  This is a program for my online game i play. I what to record who has certin keys.
                  I have all the programming working just it wont save.



                  if that dont work go to http://img136.imagesha ck.us/img136/459/programrl5.png

                  OK you come to my page and the form1 pops up. from there you will put in your name and check marks next to what keys you have and press enter. On the right there is 7 buttons each button has a list box. EX. if you press button called The Eye it will hide all other list box but the one called listbox for The Eye.

                  Now when you press enter your name will go into what ever listbox you placed a check next to EX. you checked The Eye and The Arcatraz then your name would be placed in listbox for The Eye and for The Arcatraz.

                  The problem iam having is once the name is in the box and you leave everything in the listboxes are gone. what i want is when hte next person after you comes to this they will see your name in the list box for what ever key you have..

                  Does this help any... can you tell what i need or should have?
                  thanks
                  squills

                  Comment

                  • squills
                    New Member
                    • Feb 2007
                    • 9

                    #10
                    Any ideal?
                    cheers
                    squills

                    Comment

                    • AdrianH
                      Recognized Expert Top Contributor
                      • Feb 2007
                      • 1251

                      #11
                      Ok, I understand. It is like a .NET web server app aka ASP .NET Web Forms. However, if it is a web app, you've got more problems then what you are asking. Synchroniation is a biggie, (you have two people hit the site when a third has just submitted, depending on timing, you will get the name and stuff from the previous submitter, the current submitter or garbage as the submition is in progress) though if you use a database, this isn't so bad as that can make access to the information atomic.

                      After the sync problem, it is a cake walk (that means a good thing right? :)). You access the information when the onload event occurs, and setup the page accordingly. Now, how that is done in the Borland framework is something I don't know. But if Borland C++ is using the .NET framework, then try adding the Page_Load() event and setting the stuff up from there.

                      Hope this helps.


                      Adrian

                      Comment

                      • squills
                        New Member
                        • Feb 2007
                        • 9

                        #12
                        yes you are correct. and i can see what you mean buy 2 or 3 people on at same time..

                        so any ideal on how i can make a database using Borland Builder?

                        Comment

                        • AdrianH
                          Recognized Expert Top Contributor
                          • Feb 2007
                          • 1251

                          #13
                          You can do it without a database, but it could get messy. It would require some thought in design.

                          You could get MySQL, but you will need to learn the SQL interface. Are you using .NET under Borland C++?


                          Adrian

                          Comment

                          Working...