|
Thanks. That seems to have worked.
Guess i missed that part.
As for the question, I guess I'm used to the "Get" then "Set" process. Didn't think of any other way.
Thanks again.
|
|
|
|
|
I'm trying to create a simple fax application that justs sends a fax. Has anyone come across a basic example.
Thanks to anyone that can help
|
|
|
|
|
I would have thought it was dependent on your interface to the fax gateway/comms device (if you have one) - most fax cards come with some sort of software for example, if you're dealing with a modem/pstn line combo then your solution will be different (since you havnt specified anything here its a bit hard without such info) ...
Microsoft, as part of their TAPI interface, provide this :- http://msdn.microsoft.com/en-us/library/ms690910(VS.85).aspx[^]
ie a COM interface which may help - I havnt read it but I'd be thinking you'd need a modem and some sort of comms line for instance
A quick google finds plenty of info out there on SDK's etc - your ISP might also provide a fax interface or such
'g'
|
|
|
|
|
|
|
I've already looked at both the Black Ice and microsoft examples. The Black Ice looked good until I started to step through the free example code. It looks like it is missing the key source code. I've written examples that send off emails in just a few lines of code. Is it just not that easy to send a fax? I just figured you would just find an attached modem send it a phone numer and the location of the document and go, like you would with an e-mail.
|
|
|
|
|
take a look at the browser in the front of yourselves. When you move the scroll bar, every thing moves up and down; includeing buttons, edit boxes, list boxes and so on. How can I achieve such a thing?
Thank you masters!
|
|
|
|
|
This[^] might help.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
|
|
|
|
|
Jusef Marzbany wrote: take a look at the browser in the front of yourselves. When you move the scroll bar, every thing moves up and down; includeing buttons, edit boxes, list boxes and so on. How can I achieve such a thing?
I suppose you should move the scroll bar of your dialog window.
(see for instance, Simple Word Processing with an Edit Control [^]).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
What's really eerie is, he knows what's on my browser
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Actually we ALL know what's on your browser!
Be careful!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
why do you open so many tabs on CodeProject?
|
|
|
|
|
Hey get off my browser!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Seems you're looking for something like this. Scrollable Child Dialog[^]
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
Thank you all for suggestions. All worked ...
|
|
|
|
|
Sorry, I konw this is a quite rube question. But I'm new in MFC programming.
Any way, I want to save the whole content of an Rich Edit Control with the right format with which characters and words are wrtten.
Thank you masters!
|
|
|
|
|
|
I am currently using
TCHAR TextArray[MAXARRAY]={0};
m_RichEditCtrlVariable.GetWindowText(TextArray, MAXARRAY);
CHARFORMAT CharForm;
m_RichEditCtrlVariable.GetSelectionCharFormat(CharForm);
GetWindowText will get the words and newline characters and what not.
GetSelectionCharFormat will get the font type, font size, bold, italics, colour, etc. Though, this has a problem if the font changes at any point in the rich edit box. It'll only return the first character set details it encounters.
Don't know if that'll help youi in any way
|
|
|
|
|
I would strongly encourage the Stream functionality (EM_STREAMIN/OUT) as it will give you a text stream with the formatting embedded in. You'll be amazed at how big it ends up.
If you want a good reference for the rich edit control, with all sorts of formatting stuff, look at http://www.codeproject.com/KB/edit/rulerricheditctrl.aspx[^]. It's a great article by Johan Rosengren, only harmed by my flailing about in his code to make it UNICODE compatible.
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
I've been trying to update a program written in VC++6.0 in to VC++ 2008. The VS2008 conversion went smoothly, leaving mostly errors resulting from the tighter type checking of VS2008.
This program uses a third party library which causes no problems in VC++6. It does, however, in VC++2008.
Here is the initial error;
fatal error C1083: Cannot open source file: 'FixTools.lib': No such file or directory c1xx DataStructures
The 'include' and 'library' directories are set correctly in the project properties and the file and directory permissions are correct.
Copying the FixTools.lib to the 'DataStructures' directory results in the following compile error;
fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? d:\sacmannet\datastructures\fixtools.lib 7 DataStructures
Sound familiar to anyone?
Thanks,
- Dale
|
|
|
|
|
I'm wondering why you're getting compiler errors on a .lib file...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
So am I.
I'm rather new to Windows programming with C++. I've used Visual Basic since version 3.
My C++ experience has been limited to Linux OS utilities and console apps. I was dropped into the middle of this Windows C++ app six years after it's inception.
|
|
|
|
|
The .lib file is a library you want to link to your project, correct?
If so, there's a couple ways to add it to the project so it gets linked (not compiled):
1) Add the FixTools.lib file to the project Linker/Input/Additional Dependencies settings
2) Use #pragma comment(lib, "FixTools.lib") in a source (cpp) file
How have you included the library in your project?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks for your quick response. I'm truly at a loss here, not that it takes that much to lose me in VC.
The software that contains the library file installed itself under the 'Program Files' directory. Per their instructions, I added the path to the lib file to the location in your #1. While checking, I noticed that the Additional Dependencies 'text' apparently didn't like the spaces in the path. I copied the file to the root of 'C' and corrected the path here and the options-Project and Solutions-VC++ Directories 'INCLUDE' & 'LIBRARY' settings.
The results are the same.
|
|
|
|
|
Dale Bourne wrote: the Additional Dependencies 'text' apparently didn't like the spaces in the path
In the additional dependencies linker settings section:
Pathnames with spaces should be surrounded by double quotes.
You can use relative or absolute paths.
Multiple pathnames should be separated by whitespace.
You should only get a linker error if it's wrong.
Somewhere else in your project there's some reference to the library
which is causing it to try to compile it....that's not good.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|