|
2 posts before, i said : this[^]
TOXCCT >>> GEII power
|
|
|
|
|
Hi,
If I understand correctly the print out is not considered to be entire documents?
Doesn't matter consider following:
Maybe you can choose RTF format for that. The RichEdit Control supports that format, you can print it out from code and Word can open it when you write it to file.
We use it in our product here (@ my job) all the time...
It's also a little easier than automation.
Look on MSDN about rtf codes, printing rtf and the RichEdit controls.
Hope this helps!!
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
I used MFC and then I put just three line codes in OnDraw Handler(?)..
void CImgViewerView::OnDraw(CDC* pDC)
{
CImgViewerDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
if (!pDoc)
return;
// from here
Graphics g(pDC->GetSafeHdc());
Image img(L"test.jpg");
g.DrawImage(&img, 10,10);
}
I compiled and linked.. it was OK.. but..
This cause runtime error in Image img(L"test.jpg");
I can't figure it out why it happens..
I also added startup and shutdown code..
why?
I'm with VS.net 2003
|
|
|
|
|
bektek wrote:
This cause runtime error in Image img(L"test.jpg");
Does the file exist in the current directory?
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
<italic>Work hard and a bit of luck is the key to success.
You don`t need to be genius, to be rich.
|
|
|
|
|
I have VIsual C++ ANd i Was Wondering could i write openGL and driectX in c++ or other library in c++ thank
|
|
|
|
|
Gee, did you do any research of your own before asking this question ?
Of course you can. You just need to install the SDK.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Can i ask a C++ question on the Visual C++ mesage board on CP ?
TOXCCT >>> GEII power
|
|
|
|
|
No, this forum is only for Visual C++
|
|
|
|
|
yes, untill you have a C++ messageboard on CP
There is no spoon.
mail
|
|
|
|
|
hum, are we only playing with word, or just talking on a "non C++ message board" there ?
TOXCCT >>> GEII power
|
|
|
|
|
|
Is it possible to (programmatically) make a computer's system clock (time) go a set amount faster, like making the computer's clock move 1100ms every real second so that for instance, if I started speeding it up at 10:00:00, the computer's clock reads 10:00:11 while my (correct) watch reads 10:00:10?
|
|
|
|
|
Why would you want to do such a thing ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
More precisely, it is to affect Windows timers, so that timer events happen faster than they normally would. Beyond that, I don't know; I'm researching this for someone else, and that's all the info they've given me.
|
|
|
|
|
Since you are not dealing with a real-time OS, events are not going to happen exactly when you specify anyway. For example, the time specified in the call to SetTimer() is the minimum amount of time that must elapse before a WM_TIMER message is sent to your application.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Tell them that they are lost at sea. There is no way this is the right approach to their problem. If they want the timer to fire more quickly, they should lower the interval at which it fires.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
there are several ways to do this. the best one is manipulating the kernel-mode time management.
Don't try it, just do it!
|
|
|
|
|
Thanks; do you know of any resources or tutorials or source code on that subject?
|
|
|
|
|
I want to do a project with MFC MDI. in this project, open different file (determine by file extention mane. e.g. xxx.txt, xxx.jpg, xxx.bmp ...) and show in different view. how to implement this. there are some article in this Web. it seems not suitable for my case. is anyone have better idea?
Thanks
|
|
|
|
|
Hi,
In this "http://flounder.com/download.htm" newcomer's download page, there is a 17 mb file(Complete win32 CD Contents). Within that there is a sample program "MDIDemo", a nice mdi program. Have a look @ it.
It will surely help you.
Sujan
|
|
|
|
|
Thank you. But that is Win32 API programming. I want MFC Doc/View project. Do u have any other guide?
Thx
|
|
|
|
|
Hiya!!
im using borland 5.01 and i am trying to interconnect 2 computers with eachother over the internet .
i have to do it with windows (not linux), and it must be DOS (standard).
I have only 2 obstacles in my way so far...
1-does anyone know what functions exist for me to connect to a pc, knowing its IP address?
2-does anyone know what functions exist for me to obtain a pc's IP address, knowing its name?
to use these functions, what libraries must be included and where can i get them?
Thanks
|
|
|
|
|
You can use sockets.
You can find sample codes at http://www.geocities.com/jcynion/jcynion_codes.htm, Echo Server sample
Though the server project is a VC++ you can just extract needed classes to create Win32 console mode application.
|
|
|
|
|
I am trying to create a very simple file/folder browser using the shell, similar to the right hand pane of windows explorer. It should list folders (along with special folders), which can be double-clicked to drill down to the next level. To return to the parent directory, the user can double-click the ".." folder.
However, I have run into a problem. The only way to get the parent folder, is to call SHBindToParent (which doesn't exist on some platforms, but that's a discussion for another day ). SHBindToParent requires a full PIDL in order to work.
On the other hand, IEnumIDList (used for listing the contents of a folder) returns relative PIDLs. Once I have enumerated a folder and displayed its contents, I can see no sensible method of returning to the parent. I could "remember" the parent before opening a sub-folder, but I may not always start at the desktop, so I will be missing some information on my way back up the tree.
I need a full PIDL to call SHBindToParent, but I only have relative PIDLs returned from IEnumIDList, and there's no way (that I can see) to build a full PIDL from a relative one. (IShellFolder::ParseDisplayName and IShellFolder::GetDisplayNameOf don't do what I want, and since I only have relative PIDL's to work with, the results are not always useful anyway).
I was wondering how Microsoft managed to create Explorer without any mechanism for obtaining the parent and then I realized that they are using the tree control to do it! Does this mean I have to scan the entire file system and store it as a tree in my application?? Surely there must be a more intuitive way to get the parent of an item in the file system?
Any help would be greatly appreciated.
Thanks.
|
|
|
|