By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,234 Members | 1,896 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,234 IT Pros & Developers. It's quick & easy.

Example of a common dialog?

P: n/a
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
Jul 22 '05 #1
Share this Question
Share on Google+
13 Replies


P: n/a
Libby wrote:
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


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:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book

Jul 22 '05 #2

P: n/a
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.
Jul 22 '05 #3

P: n/a
"Thomas Matthews" <Th**********************@sbcglobal.net> wrote in message
news:9g*******************@newssvr31.news.prodigy. com...
Libby wrote:
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


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.


This is a beautiful response. My hat is tipped to you, Thomas.
--
Gary
Jul 22 '05 #4

P: n/a

"Libby" <Li**********@netscape.net> wrote in message
news:ae**************************@posting.google.c om...
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


Libby. Get a decent windows compiler. Most will let you build dlls
Bloodshed dev c++ for one. :-)
Jul 22 '05 #5

P: n/a
"Starr" <St***@polaris.org> wrote in message
news:bp**********@pita.alt.net...

"Libby" <Li**********@netscape.net> wrote in message
news:ae**************************@posting.google.c om...
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


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


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

--
Derek
Jul 22 '05 #6

P: n/a

"Derek Baker" <me@XYZderekbaker.eclipse.co.uk> wrote in message
news:10***************@ananke.eclipse.net.uk...
"Starr" <St***@polaris.org> wrote in message
news:bp**********@pita.alt.net...

"Libby" <Li**********@netscape.net> wrote in message
news:ae**************************@posting.google.c om...
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
Libby. Get a decent windows compiler. Most will let you build dlls
Bloodshed dev c++ for one. :-)


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. --
Derek

Jul 22 '05 #7

P: n/a
"Starr" <St***@polaris.org> wrote in message
news:bp**********@pita.alt.net...

"Derek Baker" <me@XYZderekbaker.eclipse.co.uk> wrote in message
news:10***************@ananke.eclipse.net.uk...
"Starr" <St***@polaris.org> wrote in message
news:bp**********@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 console apps
then GUI ones.
--
Derek
Jul 22 '05 #8

P: n/a

"Derek Baker" <me@XYZderekbaker.eclipse.co.uk> wrote in message
news:10***************@ananke.eclipse.net.uk...
"Starr" <St***@polaris.org> wrote in message
news:bp**********@pita.alt.net...

"Derek Baker" <me@XYZderekbaker.eclipse.co.uk> wrote in message
news:10***************@ananke.eclipse.net.uk...
"Starr" <St***@polaris.org> wrote in message
news:bp**********@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 console

apps then GUI ones.

really? I write mostly gui stuff and it does well for me :-) not bad for a
freebie huh? --
Derek

Jul 22 '05 #9

P: n/a
"Starr" <St***@polaris.org> wrote in message
news:bp**********@pita.alt.net...

"Derek Baker" <me@XYZderekbaker.eclipse.co.uk> wrote in message
news:10***************@ananke.eclipse.net.uk...
"Starr" <St***@polaris.org> wrote in message
news:bp**********@pita.alt.net...

"Derek Baker" <me@XYZderekbaker.eclipse.co.uk> wrote in message
news:10***************@ananke.eclipse.net.uk...
> "Starr" <St***@polaris.org> wrote in message
> news:bp**********@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 console

apps
then GUI ones.

really? I write mostly gui stuff and it does well for me :-) not bad for a
freebie huh?
--
Derek



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
Jul 22 '05 #10

P: n/a

"Derek Baker" <me@XYZderekbaker.eclipse.co.uk> wrote in message
news:10***************@ananke.eclipse.net.uk...
"Starr" <St***@polaris.org> wrote in message
news:bp**********@pita.alt.net...

"Derek Baker" <me@XYZderekbaker.eclipse.co.uk> wrote in message
news:10***************@ananke.eclipse.net.uk...
"Starr" <St***@polaris.org> wrote in message
news:bp**********@pita.alt.net...
>
> "Derek Baker" <me@XYZderekbaker.eclipse.co.uk> wrote in message
> news:10***************@ananke.eclipse.net.uk...
> > "Starr" <St***@polaris.org> wrote in message
> > news:bp**********@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
console apps
then GUI ones.

really? I write mostly gui stuff and it does well for me :-) not bad for a freebie huh?
--
Derek



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!


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

--
Derek

Jul 22 '05 #11

P: n/a

"Jeff" <je********@yahoo.com> wrote in message
news:7b**************************@posting.google.c om...
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.


Jeff, MFC is specific to msdev and not to other windows compilers.
Jul 22 '05 #12

P: n/a


--
Derek
"Starr" <St***@polaris.org> wrote in message
news:bp**********@pita.alt.net...

"Derek Baker" <me@XYZderekbaker.eclipse.co.uk> wrote in message
news:10***************@ananke.eclipse.net.uk...
> 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!
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


Just a few minutes ago upgraded to gdb 6.0 - both problems still there :(
Derek
Jul 22 '05 #13

P: n/a

"Derek Baker" <me@XYZderekbaker.eclipse.co.uk> wrote in message
news:10***************@ananke.eclipse.net.uk...


--
Derek
"Starr" <St***@polaris.org> wrote in message
news:bp**********@pita.alt.net...

"Derek Baker" <me@XYZderekbaker.eclipse.co.uk> wrote in message
news:10***************@ananke.eclipse.net.uk...
> > 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!

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


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

<lneds yoou mallet> Derek

Jul 22 '05 #14

This discussion thread is closed

Replies have been disabled for this discussion.