|
I have an "enhanced" file open dialog (it has an image previewer inside it).
I can call and use this dialog whenever i want like ::
CPreviewDialog p(TRUE);
p.DoModal() ... etc
However in my application when i select File/Open the default CFileDlg always gets called.
MFC calls CWinApp::OnFileOpen, which is the function i assume i need to override. Which in its lower levels
instantiates the CFileDlg.. The problem is this function
does a lot of other document opening etc...
Is there an easy solution??
Thanks for any help whatsoever
|
|
|
|
|
Replace the default implementation with your fileopen dialog, and call CWinApp::OpenDocumentFile with the document's file.
I hope this info helps to you.
|
|
|
|
|
Having problems with the TOC auto-synching with some of the Topic files (the auto-synch option is selected). Some of the files synch and some don't. I don't think it's seeing the files as "topic" files even thought they exist in the .hhc file.
I've tried deleting the files and adding them again as topic files -- no luck. Any suggestions?
Thanks --
|
|
|
|
|
How do you call another MFC program in an MFC program?
The already debug .exe file.
I don't have MSDN to help me out.
|
|
|
|
|
|
i am looking for an application that can print an HTML file without any promp dialog box, just print and that's it. if anyone has something like that i would be happy to get it
thanks a lot
grospa
|
|
|
|
|
You won't find one based on the IE WebBrowser control. Allowing a page to print w/o asking first would be a major flaw.
--Mike--
http://home.inreach.com/mdunn/
Sometimes, arming yourself with a big pointy stake just won't do you any good.
|
|
|
|
|
Dear All,
How to pass a picture from a COM+ component (writen in VC++) ?. I've heard to use
IPicture/IPictureDisp, but
i don't know how to use it.
FYI, the client is VB.
Thanks for your attention
Regards,
ian
ian.alfian@eudoramail.com
|
|
|
|
|
Can anyone suggest a report tool, add-in or something that I can use in my C++ project that tracks some basic usage data. Do most developers roll their own when they need to provide 10 or so, simple reports to screen and printer?
Any ideas would be appriciated.
Regards
Rod Hamilton
|
|
|
|
|
I got a surefire solution:
use MSWord and OLE automation....
Ive been code-n' things since I was 10
I real-ly can't re-mem-ber when,
I ever cou-ln't parse an ASCII string...
I don't need no byte in-struction,
All's I need is my de-duction...
It's the only way to keep Code bi-nar-y!!!
«!Yee-Ha!»
CodeCrafty®
nauhaus@swbell.net
|
|
|
|
|
In a previous project I made use of the MS IE plugin, and recieved a handfull of complaints (I'll never know the exact ratio of lost customers). So I'm leary of using automation with a 3rd party product and alienating my product from ?% of the market.
Any other suggestion out there or is Seagates Crystal Report the only game in town.
Thanks
Rod
|
|
|
|
|
Hehe, I hope your code is better than your rhymes!! =)
|
|
|
|
|
Maybe this one:
http://www.idealsoftware.com
|
|
|
|
|
Thanks, it looks interesting.
|
|
|
|
|
|
Ya, I figured after searching the last few days for alternative solutions that Crystal Reports is about the only decent tool available.
Thanks Ed.
|
|
|
|
|
Help! I need a template for a simple library program. Anyone can help? If you do have one...Please email to
beachmania2@yahoo.com
many thanks in advance,
Nathaniel;)
|
|
|
|
|
Howsabout you do your own homework and just ask when you need help with something specific ?
Christian
#include "std_disclaimer.h"
People who love sausage and respect the law should never watch either one being made.
The things that come to those who wait are usually the things left by those who got there first.
|
|
|
|
|
hehe...That's a way to tell them.
I hate when you have people asking, especially in an article, I want the class you wrote to do this, can you give me the source code to do it? Or, can you tell me where I can find this? You know it's a class assignment or something
That's why when you goto places like rentacoder.com, or something, more than half of the postings sound like homework code I'm going to start writing down names, and posting them to a website so all prospective employers know that these people cheated on their homework :-p
Sam C
----
Systems Manager
Hospitality Marketing Associates
|
|
|
|
|
I'd not seen rentacoder - the sad thing is people there are offering bids to provide solutions that are available here for free..... If people can't use a search engine they are unlikely to be able to impliment the solutions IMHO.
Christian
#include "std_disclaimer.h"
The careful application of terror is also a form of communication.
Eagles may soar, but weasels don't get sucked into jet engines.
|
|
|
|
|
Do they know what a compiler/assembler does? Beside making virusses come to live?
TMB!
|
|
|
|
|
hi all,
I'm developing a program based on ms word 2000 via automation.
everything seems to be going fine, but I get an error every time I try to save a document, open one or add a new one.
these entries in the menu are disabled (grayed), otherwise then that I can run the speller, auto- text, or anything else (like running a macro).
btw, when I try to call _document.SaveAs I get an exception.
does anyone has a clue? all of the official examples from the msdn ignore the problem (and they are vb, I develop using VC++ with SP5
thanks anyone for helping,
Omri W.
|
|
|
|
|
I need to create a dialog based app that does basically one thing, calculate the total pay from 2 fields
-i have 3 edit box's, 1 for hours worked, 1 for pay rate and the third for the total pay.
-what it has to do is take whatever numbers i put into the first 2 fields, then by clicking a button multiplay them together and put the answer into the third field.
i've seen calculation code for console based but it looks completely different then what i use for dialog. i know it must be simple but to me as a beginner, it's rather confusing. please help
|
|
|
|
|
Since you have a console app that performs the desired function your problem then seems to be how to get the numbers from the edit boxes and put the result into the third edit box.
Look at the documentation for Dialog Data Exchange (DDX) and UpdateData.
|
|
|
|
|
Kron,
I'm not sure what parts you are finding confusing but the app you want is so simlple here's a quick walkthrough of how to make it in Visual C++; (No I/O control or formating/error checking etc) You should be able to spot where you went wrong.
Create a new Project - MFC AppWizard (exe)
Add the 4 controls you need ...
3 edit boxes and a button
Right click each one in turn and in their properties/general change the IDs to :
IDC_HOURS
IDC_RATE
IDC_PAY
IDC_CALC (for the button)
Now again right click one o fthe controls again and this time go to the ClassWizard.
For the 3 edit controls you want to add a variable and associate it with the edit box: In ClassWizard select the "Member Variables" tab then - ( example for "Hours" box... )
Highlight "IDC_HOURS" in Control IDs column.
Click "Add Variable"
Complete Member variable name as "m_Hours"
Make sure "Value" is selected in Category drop-down list.
Select "float" in "Variable Type" drop-down list.
Click "OK"
...do the same for IDC_RATE and IDC_PAY Controls IDs.
Now select the Message Maps tab on the AppWizard.
Highlight IDC_CALC in the Object IDs list
Highlight BN_CLICKED in the "Messages" list
Click "Add Function"
Click "Edit Code"
This will take you to the code at the newly created ::OnCalc()function.
Here insert the 3 lines:
UpdateData(TRUE);
// the above line transfers the input typed in the IDC_HOURS
// box and IDC_RATE box into the variables m_Hours and m_Rate
m_Pay = m_Rate * m_Hours;
// This does the work
UpdateData(FALSE);
// This causes newly calculated contents of m_Pay to be
// displayed in the IDC_PAY edit box.
Compile and run!
Hope that helps.
Steve T.
|
|
|
|