473,396 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
Jul 22 '05 #1
13 5362
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
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
"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

"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
"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

"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
"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

"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
"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

"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

"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


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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: John Lauwers | last post by:
Hello, Is there a way to move the commondialog to a specific position ? Greets John
1
by: Gord | last post by:
Hello, Does anyone know how to access the caption property on a command button within the common dialog control? Specificaly, I'm trying to change the caption of the 'Open' button in the 'Open...
4
by: Ron Nolan | last post by:
Re: Access 2000 Has anyone been able to find information in the online help on the topic of "Common Dialog Control? If so, what did you type in your search to receive the information? I've been...
23
by: George | last post by:
Is there a way to customize the open file common dialog? I am trying to modify the button text so I can create a delete file common dialog. I need the same functionality of the open file common...
4
by: Adam | last post by:
I have a form that has a timer running on it (System.Timers.Timer). On this form, I have a button that opens a Common Dialog box. As soon as this button is pressed, the timer stops running. When I...
0
by: Bo Gusman | last post by:
A curious problem, one that I think I've seen before. I have a .250 MLOC vb6 app that uses the common dialog control. If I select File/Open in my app to display the file open dialog and then...
6
by: Steve Barnett | last post by:
I need to include a wizard in my application that will, as one of the steps, ask the user to select a file to open and (later) a file to save it as. The naff way to do this would be to have a...
1
by: =?Utf-8?B?SmltIFdhbHNo?= | last post by:
I have an VC++ MFC Win32 application that isn't working correctly when I build it with VS2005. The problem seems to be in some ADO ActiveX controls that came with VS6 and are now out of support....
23
by: =?Utf-8?B?TWlrZTE5NDI=?= | last post by:
This is an example that is supposed to work in VB http://support.microsoft.com/kb/175512/en-us After spending a couple of hours downloading and installing VB Express 2008 after someone told me it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.