Example of a common dialog?

L

Libby

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
 
T

Thomas Matthews

Libby said:
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
 
J

Jeff

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

Gary Labowitz

Thomas Matthews said:
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.
 
S

Starr

Libby said:
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. :)
 
D

Derek Baker

Starr said:
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.
 
D

Derek Baker

Starr said:
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.
 
S

Starr

Derek Baker said:
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?
 
D

Derek Baker

Starr said:
Derek Baker said:
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?
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!
 
S

Starr

Derek Baker said:
Starr said:
console
apps
really? I write mostly gui stuff and it does well for me :) not bad for a
freebie huh?
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
 
S

Starr

Jeff said:
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.
 
D

Derek Baker

--
Derek
Starr said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,147
Messages
2,570,835
Members
47,382
Latest member
MichaleStr

Latest Threads

Top