|
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
|
|
|
|
|
|
again and again and we can see same questions(always)
|
|
|
|
|
I have an x.ico file and I want to set it as my default application icon,
that is .exe icon and application icon.
How to do this.
Thank you.
KIRAN PINJARLA
|
|
|
|
|
|
paste it in the resource folder (res/ ), delete the old .ico and rename x.ico like the old one you just deleted.
it's the most simple you can do.
|
|
|
|
|
Hi
You can import the x.ico into the resources. Then delete existing IDR_MAINFRAME icon, and rename your new icon to IDR_MAINFRAME.
-Houari
|
|
|
|
|
kiran.pinjarla wrote:
I have an x.ico file and I want to set it as my default application icon,
that is .exe icon and application icon.
SetIcon will only work!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
hi all i want to use windows services API in project.i had written generic class for this purpose.i had included winsvc.h and lib Advapi32.lib throgh pragma statement like
#pragma comment(lib,"Advapi32.lib")
but when i build the project errors,where that is the function of that class that i m calling for windows service.
error LNK2019: unresolved external symbol __imp__CloseServiceHandle@4 referenced in function "public: __thiscall CWindowsService::~CWindowsService(void)" (??1CWindowsService@@QAE@XZ)
the class to which this function belongs is the generic class.and code used to make the object of this class is
CWindowsService o_obj;
o_obj.Test();
-- modified at 8:23 Tuesday 25th July, 2006
|
|
|
|
|
|
thanks for reply i m using vc++ 2003 not visual c++ 6 and my link error number does not match to that post.it is link2019.but it gone to porperties of project and link and then input i give the name of lib file and pasted that file in hte debug folder but still same problem.
Service error LNK2019: unresolved external symbol __imp__OpenThreadToken@16 referenced in function "public: bool __thiscall CAtlAllocator::Init(char const *,unsigned long)" (?Init@CAtlAllocator@@QAE_NPBDK@Z)
Service error LNK2019: unresolved external symbol __imp__RevertToSelf@0 referenced in function "public: bool __thiscall CAtlAllocator::Init(char const *,unsigned long)" (?Init@CAtlAllocator@@QAE_NPBDK@Z)
Service error LNK2019: unresolved external symbol __imp__SetThreadToken@8 referenced in function "public: bool __thiscall CAtlAllocator::Init(char const *,unsigned long)" (?Init@CAtlAllocator@@QAE_NPBDK@Z)
Service fatal error LNK1120: 3 unresolved externals
Tasleem Arif
|
|
|
|
|
Did you see MSDN and did you includes Requirements
whitesky
|
|
|
|
|
what are requirement of including lib file.i had found on MSDN to include lib file use #pragman comment(lib,"name") there was written that name will be searched in the current path and then other so i copied that lib in the debug directory.
and i had googled also but cannot found working answer related to that error number.
-- modified at 9:39 Tuesday 25th July, 2006
|
|
|
|