|
Thanx again,
If u could be a little more elaborate abt that line
"read it, render it, output as TIFF".
I didnt really get this.
Acer
|
|
|
|
|
1) read it - this is where you read the input data.
2) render it - draw it in some context (maybe on-screen, maybe in memory, maybe to a DIB, whatever). this is where you interpret the data and make a visual representation.
for .Doc files, this is the hard part because you would have to write code to handle all of the things that Word can do (tables, formatting, effects, columns, etc.). for something like a photoshop file, this is where you take all the layers, paths and blending options and combine them to form the final image. for 3d packages, this is where you read all of the object shapes, shading, colors, motions, etc. and render them using the 3d engine.
3) output as TIFF. take whatever you drew in step 2, convert it to a form that your TIFF writer understands and output it.
There ain't no second chance
Against the thing with the forty eyes
|
|
|
|
|
Thanx a lot Chris..
I'll look into this and get back to u if i have more queries..
Acer
|
|
|
|
|
Have you considered asking that the Word files be saved as Rich-Text-Format (.rtf), which you could read quite easily using RichEdit controls, including all the formatting and embedded objects. If anyone is creating Word compatible documents, there is a good chance they creating them using Rich-Text-Format, which I believe is a publicly available format. (my guess)
Gaulles
|
|
|
|
|
StarOffice on Linux generates Microsoft Office compatible .DOC files.
Maxwell Chen
People say "No news is good news". Then, no code is good code!?
|
|
|
|
|
writing is much easier than reading because you can always stick to a known subset of features. reading requires that you handle any number of features (none of which are documented, in the case of .Doc files)
-c
There ain't no second chance
Against the thing with the forty eyes
|
|
|
|
|
If i write a program in UNMANAGED VC++ 7.0 using ATL 7.0 and\or MFC 7.0, do I have to install the .Net framework or can I just supply the required ATL\MFC DLL's to the users machine?
Is installing the framework just for Microsoft's CLR?
|
|
|
|
|
You only need the framework for Managed C++ and for VB.NET and C#. Your ATL and MFC code will run without the framework, you'll just need to distribute the new DLLs.
Michael
Communication is the first step towards enlightenment.
|
|
|
|
|
My Shortcut Keys are not shown on the main menu. I've put in the '&' before the relevant letter, but the letter is not underlined.
If I use the shortcut it does work, and strangely if there is a sub menu (like 'Alt+F' for File) then the shortcuts do appear on that and the main menu until I go back to just the 'normal' main menu, then the shortcuts have gone again.
I'm sure its something stupid I have done, but I cannot think what.
Any ideas?
ali p
|
|
|
|
|
ali p wrote:
Any ideas?
Did you check your menu or resource file for SS_NOPREFIX? *wild guess*
|
|
|
|
|
Keep ALT key pressed and you'll see the underlined short cuts
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Thats it, what a complete idiot I am!
Thanks Nish
ali p
|
|
|
|
|
You'd be amazed how many people didn't know this. I have a whole host of bug reports from testers saying that the shortcut keys weren't working right.
Michael
Communication is the first step towards enlightenment.
|
|
|
|
|
Adding to Nish's response, this is a particular annoying new feature of XP.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Joaquín M López Muñoz wrote:
this is a particular annoying new feature of XP
You can disable it using XP powertoys I think
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
this is a particular annoying new feature of XP.
It's nothing new to NT5.1, it's been there since NT5.
|
|
|
|
|
|
Michael Dunn wrote:
There is a setting under Display->Effects that turns underlining and other keyboard indicators off and on.
And here I was thinking I need Powertoys to do that.
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Hi there,
I recently run into big trouble while mixing ON_MESSAGE and ON_COMMAND handler (nasty assert in Win32-release, but not in Win32-debug). VC didn't complain, eeeks, I'm really glad I found it after hours...
Now I'm confused. May I ask two questions:
1. What is the difference between COMMANDS and "normal" window messages (okay WM_COMMAND is an own message), what is this concept though for?
2. I'm using context menus (sending COMMANDS), plus I'm using build-in hotkeys (now sending normal messages with SendMessage()). How should I combine both, should I send WM_COMMANDS from my OnKeyDown() method?
Thx 4 pointing me into right direction again!
|
|
|
|
|
i use createview(), which is memeber function of Class CMainFrame, to create a record-view based on a dialog in a Command-message handler. code as follows:
void CMainFrame::OnViewConfdef()
{
CView *t_pCurrentActiveView = GetActiveView();
CCreateContext *t_pCretContext = new CCreateContext;
t_pCretContext->m_pCurrentDoc = GetActiveDocument();
t_pCretContext->m_pCurrentFrame = this;
CRuntimeClass *t_pRunTC = RUNTIME_CLASS(CHuiYiDefView);
t_pCretContext->m_pNewViewClass = t_pRunTC;
t_pCretContext->m_pLastView = t_pCurrentActiveView;
CView *t_pView = (CHuiYiDefView*)CreateView(t_pCretContext);
if(!t_pView)
{
AfxMessageBox("error!");
exit(1);
}
t_pView->ShowWindow(SW_SHOW);
t_pView->OnInitialUpdate();
SetActiveView(t_pView);
RecalcLayout();
delete t_pCurrentActiveView;
}
The class CHuiYiDefView is derived from the class CRecordView. And the class CHuiYiDefView is linked with a dialog recource.
The following code "enum { IDD = IDD_CONF_DLG }" is added by AppWizard.
I face a problem that the pointer t_pView returned by createview() equals to NULL after I place the controls, Microsoft Ado Data Control and Microsoft DataGrid control, onto the dialog.
All codes i write pass the compile and have no errors. But I cant create the view correctly.
|
|
|
|
|
How Do I send a window message to another window that I have no source or control over to maximize?
Here is what I have so far.
In PretranslateMessage I
catch the F10 key and
BOOL CTestCapTabDlg::PreTranslateMessage(MSG* pMsg)
{
BOOL bMsgHandled = FALSE;
switch (pMsg->message)
{
case WM_KEYDOWN:
{
switch (pMsg->wParam)
{
case VK_F10:
// It is easy to substitute another key here but should I use SendMessage(WM_MAXIMIZE,...) to send through the pump? break;
Best Wishes,
Baldwin
|
|
|
|
|
You need to capture the respective window handle (HWND) so that you can use the ::SendMessage API to send the WM_MAXIMIZE. You can use the EnumWindows to do that... enumarate the windows, discover which one you need, get its handle and send the message.
Mauricio Ritter - Brazil
Sonorking now: 100.13560 Trank
I've gone sending to outer space, to find another race
|
|
|
|
|
Yes, I know but I don't always know the name of the application or the contents of the titlebar. I just want to send a message to maximize all open windows.
Thank you,
Best Wishes,
Baldwin
|
|
|
|
|
Hi,
I've installed InstallShield for VC++ 6
I've made a setup program, but how to
remove an icon when Uninstall runs..
I've created an icon using AddFolderIcon,
but how do i remove, when user presses uninstall.
Please help
Sameer
|
|
|
|
|
Icons created by AddFolderIcon are automatically logged for uninstallation (I' ve done it in the past and the icons actually went away on uninstallation.) Is this not working for you?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|