|
Thanks for your reply
I found following link http://www.totalblowhole.com/new-857613-3604.html
Here GetLastError() returns same error code either if the crypto dlls are corrupt or file is unsigned.
I think first executing API on a known signed file to determine if crypto system is OK and then using this error code after first step is successful to conclude that file is unsigned could be a solution.
|
|
|
|
|
How to do communication between Activex on HTML and
CGI server. I want to write my ActiveX using C++/MFC.
How my ActiveX will get IP address or name of CGI server.
Please Help
|
|
|
|
|
Hi,
I am facing a typical problem,in storing the application value. Here
what i have done. I am using VC++ 6.0
I have created ComAddin ,in that i have created CommandButton on
Inspector window. And in the Button event(click event) i am used to display
a dialog box.
Let us take ComAddin - class :CAddin
Interface :IAddin
For Dialog Box(which is derived from CAxDialogImpl) class --
CSample.
i have created a Edit box and a Button on that Dialog. My Objective
is when that dialog button click event occurs, the text which is edit have
to append to the current mail(the mail is in HTML format). Actually this
functionality is implemented in that CAddin with in a method take as
"ADD_TEXT".
in this ADD_Text method i used CComPtr<
Outlook::_Application>m_application variable and Active_Inspector to get
the current working Inspector windows. And useing this we can add the text
at the end the mail text. this task has been completed.
But when i call this method from CSample (dialog class) in button
click event by creating instance for CAddn class,it does not works. When i
researched for the cause. the application varianble(m_application) value
becomes null ,when that method calls from this CSample method.?
Here how can make it works, the CAddin method is called
from button click event of Dialog blass
--
Regards,
RamakoteswaraRao Koti
spend every minute for success
|
|
|
|
|
hi,
i have created on simple object for ATL application, by using ATL Object wizard ,named is Addin(class name CAddin,Interface IAddin). This class has a method(for example add),which is added to CAddin class not Interface.
And i have created a dialog box implementd from CAxDialogImpl. In this dialog box. In a dialogbox click event ,i want to use that "add" method.
How can i use that ?
Spend every minute for success
|
|
|
|
|
CComObject<CAddin>* pCAddin;<br />
CComObject<CAddin>::CreateInstance(&pCAddin);<br />
pCAddin->Add();
rgds..mil10
|
|
|
|
|
Mil's suggestion is sound but you'd have to take care the object is destroyed properly. He's the code he posted:
CComObject<CAddin>* pCAddin;<br />
CComObject<CAddin>::CreateInstance(&pCAddin);<br />
pCAddin->Add();
There's a trap here - the object is created with a reference count of zero. Since objects destroy themselves when the reference count is descremented to zero calling Release doesn't destory the object (since it decrements the reference count to -1). Using this code you would have to destroy the object as follows:
pCAddin->AddRef();
pCAddin->Release();
He's how I'd do it however:
CComObject<CAddin>* pCAddin;<br />
CComObject<CAddin>::CreateInstance(&pCAddin);<br />
pCAddin->AddRef();<br />
pCAddin->Add();<br />
pCAddin->Release();
Steve
|
|
|
|
|
Perfect Steve. I forgot the fact that CComObject instances are zero reference counted.
rgds..milton.
|
|
|
|
|
I have ATL COm dll, Now I want to convert it to ATL EXE, But when I removed the DLL main stuff to Winmain... It still assumes, its dll. When I try to execute it on cmd-shell, it gives me error messsage, " Not valid Win32 application"
Any Soultion.
cheers
Balkrishna Talele
|
|
|
|
|
You'll also need to change the project output settings on the link page from DLL to EXE ...
Why not create a new EXE project and cut/paste your code if you cannot figure it out?
:..::. Douglas H. Troy ::..
Bad Astronomy |Development Blogging|Viksoe.dk's Site
|
|
|
|
|
Mr Douglas H. Troy
Its not that simple, after all stunt, I have posted this question. Simply copy/cut/paste and changing the o/p to EXE dosent work. The entry point is itself dllmain. AND I WANT TO EXECUTE THAT EXE. do you understand
cheers
Balkrishna
|
|
|
|
|
The Exe project will give you a valid entry point (e.g. main()). Douglas did probably not mean to copy DllMain verbatim to your Exe project.
|
|
|
|
|
it gave me exe as per ur discussion, but during execution it said not vaild win 32, and my project is not of 2 or 3 files its massive project
|
|
|
|
|
Per my original recommendation, I did not mean for you to outright copy the centire contents of your DLL into a new executable project; there are obviously DLL specific implementations in a DLL ... you would need to make the determination yourself as to what can go/stay. However ... based off your following remark:
Balkrishna Talele wrote: and my project is not of 2 or 3 files its massive project
... why not just create a "stub" EXE that calls your DLL and that EXE becomes your primary application executable?
Balkrishna Talele wrote: AND I WANT TO EXECUTE THAT EXE. do you understand
Another thing: I'm trying to help/suggest things you may/not have tried to resolve your problem. Do not "yell" (aka All caps) at people who are trying to help you, or you'll find you get a big fat nothing back.
:..::. Douglas H. Troy ::..
Bad Astronomy |Development Blogging|Viksoe.dk's Site
-- modified at 13:01 Friday 17th February, 2006
|
|
|
|
|
Good day,
Suppose that I have completely developed a MFC dialog base application. At design time, I didn't want it to support Automation and I didn't check Automation support in AppWizard.
So now, how can I make it support Automation? What changes must be made to my current application?
Thank you in advance,
Have a good time!
KEMI
|
|
|
|
|
The easiest way to make this determination is to just create a new Dialog based MFC project and check the Automation support check box, then compare the source files to see what's been added ... basically, there are a couple of additional calls: CoInitialize() and CoUninitalize() are two that come to mind ...
If you're project is too big already, just create two new dialog projects; one with automation support and one without, then do a diff.
-done-
:..::. Douglas H. Troy ::..
Bad Astronomy |Development Blogging|Viksoe.dk's Site
|
|
|
|
|
Anybody knows how can I dynamically insert memory images into HTML document through mshtml interface?
|
|
|
|
|
Don't know about inserting "memory images" directly into the HTML, but you could take the following approach:
1. Get instance of the DOMDocument
2. create temp files of your "memory images" to disk
3. Insert image tags into DOMDocument pointing to said images
when you're done, clean-up your temp files; you could just maintain a 'list' of the temp images files created, so you can easily clean them off the disk when done.
:..::. Douglas H. Troy ::..
Bad Astronomy |Development Blogging|Viksoe.dk's Site
|
|
|
|
|
This is not a simple question. There are a number of way you can do it that I know of:
- Use an ActiveX control.
- Use a Rendering Behavior.
I have done both and they both work. You have to be at home with COM and do a little reading.
Steve
|
|
|
|
|
It's sounds interesting. May I have some examples or more detailed idea?
|
|
|
|
|
Hello, friends. I develope COM Add-in for MS Outlook. Anyone know how to get all accounts information in Outlook? Are necessary e-mail all accounts.
|
|
|
|
|
|
Thanks, I have already made.
|
|
|
|
|
Hi,
I have a class template that I want to derrive another class template from - could anyone help with the syntax?
My base class is declared as:
template <class type, long size> class xyz
{
};
What would I need to derrive a templace class abc from the above?
TIA
-- modified at 8:31 Thursday 2nd February, 2006
|
|
|
|
|
please come back to your post, click on the little [Modify] link at the bottom right, and there, check the "Ignore HTML tags in this message (good for code snippets)" check Box to let use see the whole template declaration.
note that i ask you to modify your post, not to repost it !
now i imagine you have this :
template<class T>
class xyz {
};
then you can do this (i think) :
template<class T>
class child : public xyz<T> {
};
thanks in advance...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
-- modified at 8:22 Thursday 2nd February, 2006
|
|
|
|
|
Thanks for this. That is pretty much how I have it but the compliler is unhappy. I will have to double check.
Ta
|
|
|
|