|
Have you looked in the (winuser.h) header file to see if there are any preprocessor directives in/around those identifiers?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi all...
Is there any library that can be used to perform animated image transition, like those on power point presentation? For example, when I load several JPG files, the dialog shows the first image. If I click, say, "Next picture" button, the dialog shows the next image with animated transition like blurring or sliding, etc.
Thank you...
-Houari
|
|
|
|
|
Im not sure but I think you can find your answer in directx
|
|
|
|
|
I'm new to MFC and started developing applications just a few months back. I'm trying to build an application using which I can read a word document and get the information that I need.
Can anyone tell me how can I perform simple file operation on a word document similar to text files like Getline()? Something similar to C or C++ file operations.
Thanks,
Gajendra
|
|
|
|
|
I don't know that the doc format is well documented. I'd suggest using Word through COM to read / write the files, though this will require that Word be installed on the same machine as your program.
earl
|
|
|
|
|
earl wrote: though this will require that Word be installed on the same machine as your program
AFAIK, you don't need to install word on the target computer. Just a simple dll (don't remember its name) will be ok.
|
|
|
|
|
It is not that easy. A word document has a very specific format and you won't be able to read it like that. You need to go for Word automation (search this site or google or MSDN to learn how it works).
|
|
|
|
|
Cedric Moonen wrote: It is not that easy. A word document has a very specific format and you won't be able to read it like that. You need to go for Word automation (search this site or google or MSDN to learn how it works).
Cédric Moonen
Software developer
I checked the MSDN library online and I could find some Stream operations but they are not very clear to me.
CFile cFile(TEXT("File.rtf"), CFile::modeRead);
Can I use this class functions to perform operations successfully? Well it seems so...
|
|
|
|
|
I said that you have to look for 'Word automation'. Did you read my post ?
I never spoke about Stream operation. What I suggested you is exactly the same as the other suggested: using a COM interface for Word (it's just another word for the same thing). You won't be able to read the file if you don't know how it is structured. And I don't think you know (neither do I)
|
|
|
|
|
Thanks Cedric !! I'll gather more information and then probably I'll ask specific questions.
Gajendra
|
|
|
|
|
I would opt for Word's COM interface, but if you really want to navigate the file yourself, the format of some of the older versions of Word can be found here.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi David,
I'm not aware of COM
Please suggest something else... If this is the best then I'll have to get on with it.
|
|
|
|
|
gajendrakashyap wrote: I'm not aware of COM
a.k.a. Outlook Automatioon.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi David,
It would be a great help if you could give me a clear idea how to go about this. Probably names of those interfaces and some help on using them. Tips ...
Thanks,
Gajendra
|
|
|
|
|
See here, and then click the "Visual C++/MFC - Information and Sample Code" link. There's also MSDN articles like Q220911, Q261997, Q222101, Q196776, Q192348.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi David,
All this is going to help me a lot. I will try to work out on these sample codes. I could not find the last article Q192348.
Thanks much for the help.
Regards,
Gajendra
|
|
|
|
|
gajendrakashyap wrote: I could not find the last article Q192348.
Q192348[^]
You'll note that some of those articles are for Excel. That's not because I think Word is synonymous with Excel, I just wanted to give you other Automation examples.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Yes I could find articles on word, powerpoint, excel, outlook etc. Not a problem as I can use excel also for my project.
We've made a program in VB that reads excel and gives the output we need. We're working to refine it. I think MFC would also be great at work.
Thanks,
Gajendra
|
|
|
|
|
Hi All
Can anyone give the proper conversion for (64 bit compatible.):
I found these when coverting from 32 bit to 64 bit.
1. conversion from '__int64' to 'DWORD', possible loss of data
2. conversion from 'size_t' to 'UINT', possible loss of data
3. conversion from 'size_t' to 'int', possible loss of data
4. conversion from 'size_t' to 'USHORT', possible loss of data
5. conversion from 'INT_PTR' to 'BOOL', possible loss of data
6. conversion from 'LRESULT' to 'BOOL', possible loss of data
7. conversion from 'size_t' to 'const int', possible loss of data
"A winner is not one who never fails...but the one who never quits"
|
|
|
|
|
there are no "proper" conversion to avoid these warnings as long as you try to convert from a bigger type into a smaller.
what you can do to avoid the warnings is doing explicit casts or calling #pragma comment() for the compiler number you want to disable
|
|
|
|
|
Cast your variable to the proper type:
__int64 i64 = 1234567;<br />
unsigned long ul32_1 = (unsigned long)i64;<br />
unsigned long ul32_2 = static_cast<unsigned long>(i64);
Alternatively, when going from large ints to smaller ones, you can use bit manipulation to just give you the high bits or the low bits (depending on what you are trying to do).
-- modified at 9:59 Tuesday 25th July, 2006
|
|
|
|
|
Hi all,
I know that we can share data between two application by
#pragma data_seg(...
...
()
but I don't know how to reuse it in other application.
please help me.
Thank you.
Every new thing you learn,Gives you a new personality.
|
|
|
|
|
dSolariuM wrote: ...share data between two application...
How so (using #pragma )? DLLs can share data in this fashion.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
This is very old technology and is not recommended for use any longer. There are much better ways to share data between applications. Try using message passing, socket communications, pipes, or a database.
I can tell you from experience, using data_seg is not worth the effort.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|