Example of a common dialog?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Libby

    Example of a common dialog?

    I am evidently not very good at C++ so please excuse me if this is a
    dumb question...
    I would like to create a common dialog modeled after something like
    the windows file dialog, that would be in a dll and could be called by
    multiple other software products; currently Powerbuilder and C++ apps
    would be the caller. My attempts to do this so far have failed. Could
    anyone point me to, or give me a simple example of, a modal dialog
    program that can be invoked directly by a caller? Or, possibly at
    least explain the steps involved to me?

    Thanks,
    Libby
  • Thomas Matthews

    #2
    Re: Example of a common dialog?

    Libby wrote:[color=blue]
    > I am evidently not very good at C++ so please excuse me if this is a
    > dumb question...
    > I would like to create a common dialog modeled after something like
    > the windows file dialog, that would be in a dll and could be called by
    > multiple other software products; currently Powerbuilder and C++ apps
    > would be the caller. My attempts to do this so far have failed. Could
    > anyone point me to, or give me a simple example of, a modal dialog
    > program that can be invoked directly by a caller? Or, possibly at
    > least explain the steps involved to me?
    >
    > Thanks,
    > Libby[/color]

    Since you are not very good at C++, I will be gentle with you.
    The C++ has an area of functionality described by the C++ standard.
    Extra functionality can be added to a program by using platform
    or compiler specific libraries. Dialog windows are in this area.
    They are not part of the _standard_ C++ library and are not
    discussed in this newsgroup. You will need to ask the experts
    in a more appropriate newsgroup. The C++ FAQ and Welcome.txt
    listed below will contain references to more appropriate
    newsgroups.


    --
    Thomas Matthews

    C++ newsgroup welcome message:

    C++ Faq: http://www.parashift.com/c++-faq-lite
    C Faq: http://www.eskimo.com/~scs/c-faq/top.html
    alt.comp.lang.l earn.c-c++ faq:

    Other sites:
    http://www.josuttis.com -- C++ STL Library book

    Comment

    • Jeff

      #3
      Re: Example of a common dialog?

      Two suggestions:
      1. if you're developing for MS operating system, look into their
      visual c++ or visual basic .NET. You can create DLLs with those.
      2. look into wxWindows, a cross-platform GUI toolkit
      (http://www.wxwindows.org/). They have a file dialog in their
      library. Warning: you may need to dig around a little to set it up on
      your system.

      Comment

      • Gary Labowitz

        #4
        Re: Example of a common dialog?

        "Thomas Matthews" <Thomas_Matthew sHatesSpam@sbcg lobal.net> wrote in message
        news:9gMub.3114 1$ss7.18103@new ssvr31.news.pro digy.com...[color=blue]
        > Libby wrote:[color=green]
        > > I am evidently not very good at C++ so please excuse me if this is a
        > > dumb question...
        > > I would like to create a common dialog modeled after something like
        > > the windows file dialog, that would be in a dll and could be called by
        > > multiple other software products; currently Powerbuilder and C++ apps
        > > would be the caller. My attempts to do this so far have failed. Could
        > > anyone point me to, or give me a simple example of, a modal dialog
        > > program that can be invoked directly by a caller? Or, possibly at
        > > least explain the steps involved to me?
        > >
        > > Thanks,
        > > Libby[/color]
        >
        > Since you are not very good at C++, I will be gentle with you.
        > The C++ has an area of functionality described by the C++ standard.
        > Extra functionality can be added to a program by using platform
        > or compiler specific libraries. Dialog windows are in this area.
        > They are not part of the _standard_ C++ library and are not
        > discussed in this newsgroup. You will need to ask the experts
        > in a more appropriate newsgroup. The C++ FAQ and Welcome.txt
        > listed below will contain references to more appropriate
        > newsgroups.[/color]

        This is a beautiful response. My hat is tipped to you, Thomas.
        --
        Gary


        Comment

        • Starr

          #5
          Re: Example of a common dialog?


          "Libby" <LibbyChantel@n etscape.net> wrote in message
          news:aef1c36b.0 311190719.53786 1f0@posting.goo gle.com...[color=blue]
          > I am evidently not very good at C++ so please excuse me if this is a
          > dumb question...
          > I would like to create a common dialog modeled after something like
          > the windows file dialog, that would be in a dll and could be called by
          > multiple other software products; currently Powerbuilder and C++ apps
          > would be the caller. My attempts to do this so far have failed. Could
          > anyone point me to, or give me a simple example of, a modal dialog
          > program that can be invoked directly by a caller? Or, possibly at
          > least explain the steps involved to me?
          >
          > Thanks,
          > Libby[/color]

          Libby. Get a decent windows compiler. Most will let you build dlls
          Bloodshed dev c++ for one. :-)


          Comment

          • Derek Baker

            #6
            Re: Example of a common dialog?

            "Starr" <Starr@polaris. org> wrote in message
            news:bpji4t$ps0 $0@pita.alt.net ...[color=blue]
            >
            > "Libby" <LibbyChantel@n etscape.net> wrote in message
            > news:aef1c36b.0 311190719.53786 1f0@posting.goo gle.com...[color=green]
            > > I am evidently not very good at C++ so please excuse me if this is a
            > > dumb question...
            > > I would like to create a common dialog modeled after something like
            > > the windows file dialog, that would be in a dll and could be called by
            > > multiple other software products; currently Powerbuilder and C++ apps
            > > would be the caller. My attempts to do this so far have failed. Could
            > > anyone point me to, or give me a simple example of, a modal dialog
            > > program that can be invoked directly by a caller? Or, possibly at
            > > least explain the steps involved to me?
            > >
            > > Thanks,
            > > Libby[/color]
            >
            > Libby. Get a decent windows compiler. Most will let you build dlls
            > Bloodshed dev c++ for one. :-)
            >
            >[/color]

            Yes, though Dev-C++ is actually the IDE. The compiler is the mingw version
            of gcc.

            --
            Derek


            Comment

            • Starr

              #7
              Re: Example of a common dialog?


              "Derek Baker" <me@XYZderekbak er.eclipse.co.u k> wrote in message
              news:1069381313 .166925@ananke. eclipse.net.uk. ..[color=blue]
              > "Starr" <Starr@polaris. org> wrote in message
              > news:bpji4t$ps0 $0@pita.alt.net ...[color=green]
              > >
              > > "Libby" <LibbyChantel@n etscape.net> wrote in message
              > > news:aef1c36b.0 311190719.53786 1f0@posting.goo gle.com...[color=darkred]
              > > > I am evidently not very good at C++ so please excuse me if this is a
              > > > dumb question...
              > > > I would like to create a common dialog modeled after something like
              > > > the windows file dialog, that would be in a dll and could be called by
              > > > multiple other software products; currently Powerbuilder and C++ apps
              > > > would be the caller. My attempts to do this so far have failed. Could
              > > > anyone point me to, or give me a simple example of, a modal dialog
              > > > program that can be invoked directly by a caller? Or, possibly at
              > > > least explain the steps involved to me?
              > > >
              > > > Thanks,
              > > > Libby[/color]
              > >
              > > Libby. Get a decent windows compiler. Most will let you build dlls
              > > Bloodshed dev c++ for one. :-)
              > >
              > >[/color]
              >
              > Yes, though Dev-C++ is actually the IDE. The compiler is the mingw version
              > of gcc.
              >[/color]
              its all one package and it's my preferred one.[color=blue]
              > --
              > Derek
              >
              >[/color]


              Comment

              • Derek Baker

                #8
                Re: Example of a common dialog?

                "Starr" <Starr@polaris. org> wrote in message
                news:bpkk0s$3nl $0@pita.alt.net ...[color=blue]
                >
                > "Derek Baker" <me@XYZderekbak er.eclipse.co.u k> wrote in message
                > news:1069381313 .166925@ananke. eclipse.net.uk. ..[color=green]
                > > "Starr" <Starr@polaris. org> wrote in message
                > > news:bpji4t$ps0 $0@pita.alt.net ...
                > >
                > > Yes, though Dev-C++ is actually the IDE. The compiler is the mingw[/color][/color]
                version[color=blue][color=green]
                > > of gcc.
                > >[/color]
                > its all one package and it's my preferred one.[/color]

                Yes, and it's mine too. Though the compiler's rather better for console apps
                then GUI ones.


                --
                Derek


                Comment

                • Starr

                  #9
                  Re: Example of a common dialog?


                  "Derek Baker" <me@XYZderekbak er.eclipse.co.u k> wrote in message
                  news:1069407818 .667229@ananke. eclipse.net.uk. ..[color=blue]
                  > "Starr" <Starr@polaris. org> wrote in message
                  > news:bpkk0s$3nl $0@pita.alt.net ...[color=green]
                  > >
                  > > "Derek Baker" <me@XYZderekbak er.eclipse.co.u k> wrote in message
                  > > news:1069381313 .166925@ananke. eclipse.net.uk. ..[color=darkred]
                  > > > "Starr" <Starr@polaris. org> wrote in message
                  > > > news:bpji4t$ps0 $0@pita.alt.net ...
                  > > >
                  > > > Yes, though Dev-C++ is actually the IDE. The compiler is the mingw[/color][/color]
                  > version[color=green][color=darkred]
                  > > > of gcc.
                  > > >[/color]
                  > > its all one package and it's my preferred one.[/color]
                  >
                  > Yes, and it's mine too. Though the compiler's rather better for console[/color]
                  apps[color=blue]
                  > then GUI ones.
                  >
                  >[/color]
                  really? I write mostly gui stuff and it does well for me :-) not bad for a
                  freebie huh?[color=blue]
                  > --
                  > Derek
                  >
                  >[/color]


                  Comment

                  • Derek Baker

                    #10
                    Re: Example of a common dialog?

                    "Starr" <Starr@polaris. org> wrote in message
                    news:bpnkg0$ppv $0@pita.alt.net ...[color=blue]
                    >
                    > "Derek Baker" <me@XYZderekbak er.eclipse.co.u k> wrote in message
                    > news:1069407818 .667229@ananke. eclipse.net.uk. ..[color=green]
                    > > "Starr" <Starr@polaris. org> wrote in message
                    > > news:bpkk0s$3nl $0@pita.alt.net ...[color=darkred]
                    > > >
                    > > > "Derek Baker" <me@XYZderekbak er.eclipse.co.u k> wrote in message
                    > > > news:1069381313 .166925@ananke. eclipse.net.uk. ..
                    > > > > "Starr" <Starr@polaris. org> wrote in message
                    > > > > news:bpji4t$ps0 $0@pita.alt.net ...
                    > > > >
                    > > > > Yes, though Dev-C++ is actually the IDE. The compiler is the mingw[/color]
                    > > version[color=darkred]
                    > > > > of gcc.
                    > > > >
                    > > > its all one package and it's my preferred one.[/color]
                    > >
                    > > Yes, and it's mine too. Though the compiler's rather better for console[/color]
                    > apps[color=green]
                    > > then GUI ones.
                    > >
                    > >[/color]
                    > really? I write mostly gui stuff and it does well for me :-) not bad for a
                    > freebie huh?[color=green]
                    > > --
                    > > Derek
                    > >
                    > >[/color]
                    >
                    >[/color]

                    In my current program, if I run it in the debugger and open a file the app
                    crashes. It runs perfectly from within Dev, or from Explorer.

                    Apart from that though, it's an excellent package. And the price is nice!

                    --
                    Derek


                    Comment

                    • Starr

                      #11
                      Re: Example of a common dialog?


                      "Derek Baker" <me@XYZderekbak er.eclipse.co.u k> wrote in message
                      news:1069509395 .922866@ananke. eclipse.net.uk. ..[color=blue]
                      > "Starr" <Starr@polaris. org> wrote in message
                      > news:bpnkg0$ppv $0@pita.alt.net ...[color=green]
                      > >
                      > > "Derek Baker" <me@XYZderekbak er.eclipse.co.u k> wrote in message
                      > > news:1069407818 .667229@ananke. eclipse.net.uk. ..[color=darkred]
                      > > > "Starr" <Starr@polaris. org> wrote in message
                      > > > news:bpkk0s$3nl $0@pita.alt.net ...
                      > > > >
                      > > > > "Derek Baker" <me@XYZderekbak er.eclipse.co.u k> wrote in message
                      > > > > news:1069381313 .166925@ananke. eclipse.net.uk. ..
                      > > > > > "Starr" <Starr@polaris. org> wrote in message
                      > > > > > news:bpji4t$ps0 $0@pita.alt.net ...
                      > > > > >
                      > > > > > Yes, though Dev-C++ is actually the IDE. The compiler is the mingw
                      > > > version
                      > > > > > of gcc.
                      > > > > >
                      > > > > its all one package and it's my preferred one.
                      > > >
                      > > > Yes, and it's mine too. Though the compiler's rather better for[/color][/color][/color]
                      console[color=blue][color=green]
                      > > apps[color=darkred]
                      > > > then GUI ones.
                      > > >
                      > > >[/color]
                      > > really? I write mostly gui stuff and it does well for me :-) not bad for[/color][/color]
                      a[color=blue][color=green]
                      > > freebie huh?[color=darkred]
                      > > > --
                      > > > Derek
                      > > >
                      > > >[/color]
                      > >
                      > >[/color]
                      >
                      > In my current program, if I run it in the debugger and open a file the app
                      > crashes. It runs perfectly from within Dev, or from Explorer.
                      >
                      > Apart from that though, it's an excellent package. And the price is nice![/color]

                      eesh. Have you done an update? the debugger could be faulty. ere let me look
                      at it <pulls out clumsy looking mallet> I see the problem <clank clank> yes
                      your chassis is bent <clank clank> whoops well it is now :-D
                      [color=blue]
                      >
                      > --
                      > Derek
                      >
                      >[/color]


                      Comment

                      • Starr

                        #12
                        Re: Example of a common dialog?


                        "Jeff" <jeffz_2002@yah oo.com> wrote in message
                        news:7b01eaf3.0 311191024.1bf8c 183@posting.goo gle.com...[color=blue]
                        > Two suggestions:
                        > 1. if you're developing for MS operating system, look into their
                        > visual c++ or visual basic .NET. You can create DLLs with those.
                        > 2. look into wxWindows, a cross-platform GUI toolkit
                        > (http://www.wxwindows.org/). They have a file dialog in their
                        > library. Warning: you may need to dig around a little to set it up on
                        > your system.[/color]

                        Jeff, MFC is specific to msdev and not to other windows compilers.


                        Comment

                        • Derek Baker

                          #13
                          Re: Example of a common dialog?



                          --
                          Derek
                          "Starr" <Starr@polaris. org> wrote in message
                          news:bpq1s0$gbj $0@pita.alt.net ...[color=blue]
                          >
                          > "Derek Baker" <me@XYZderekbak er.eclipse.co.u k> wrote in message
                          > news:1069509395 .922866@ananke. eclipse.net.uk. ..[color=green][color=darkred]
                          > > > > In my current program, if I run it in the debugger and open a file[/color][/color][/color]
                          the app[color=blue][color=green]
                          > > crashes. It runs perfectly from within Dev, or from Explorer.
                          > >
                          > > Apart from that though, it's an excellent package. And the price is[/color][/color]
                          nice![color=blue]
                          >
                          > eesh. Have you done an update? the debugger could be faulty. ere let me[/color]
                          look[color=blue]
                          > at it <pulls out clumsy looking mallet> I see the problem <clank clank>[/color]
                          yes[color=blue]
                          > your chassis is bent <clank clank> whoops well it is now :-D
                          >[/color]

                          Just a few minutes ago upgraded to gdb 6.0 - both problems still there :(


                          Derek


                          Comment

                          • Starr

                            #14
                            Re: Example of a common dialog?


                            "Derek Baker" <me@XYZderekbak er.eclipse.co.u k> wrote in message
                            news:1069593971 .596043@ananke. eclipse.net.uk. ..[color=blue]
                            >
                            >
                            > --
                            > Derek
                            > "Starr" <Starr@polaris. org> wrote in message
                            > news:bpq1s0$gbj $0@pita.alt.net ...[color=green]
                            > >
                            > > "Derek Baker" <me@XYZderekbak er.eclipse.co.u k> wrote in message
                            > > news:1069509395 .922866@ananke. eclipse.net.uk. ..[color=darkred]
                            > > > > > In my current program, if I run it in the debugger and open a file[/color][/color]
                            > the app[color=green][color=darkred]
                            > > > crashes. It runs perfectly from within Dev, or from Explorer.
                            > > >
                            > > > Apart from that though, it's an excellent package. And the price is[/color][/color]
                            > nice![color=green]
                            > >
                            > > eesh. Have you done an update? the debugger could be faulty. ere let me[/color]
                            > look[color=green]
                            > > at it <pulls out clumsy looking mallet> I see the problem <clank clank>[/color]
                            > yes[color=green]
                            > > your chassis is bent <clank clank> whoops well it is now :-D
                            > >[/color]
                            >
                            > Just a few minutes ago upgraded to gdb 6.0 - both problems still there :(
                            >
                            >[/color]
                            <lneds yoou mallet>[color=blue]
                            > Derek
                            >
                            >[/color]


                            Comment

                            Working...