|
I should add that I could modify this ATL DLL source anyway I want. It just has to work.
|
|
|
|
|
MonkuMonku wrote: My lead suggested that I should remove #import due to its hard-coded path dependency, and I should just link it using the lib file that DLL generates during compilation.
#import has nothing to do with linking. #import generates wrapper classes for COM objects at compile time. COM operates completely at runtime and does not use LIBs to find DLLs.
|
|
|
|
|
Michael Dunn wrote: #import has nothing to do with linking.
Yeah but his "lead" says so... idiom[^]
|
|
|
|
|
As suggested by Michael, the #import generate the wrapper classs for coclasses that are part of ATL dll,
any COM DLL need to be registered before it use, and location of dll is irrelevent as it shourld be registed in the windows registry by using "regsvr32" command.
if you don't want to use the #import you can directly create the instance of class by using CoCreateInstance but life is more tough without #import as you have to handle the AddRef and Release part of your own.
Regards,
Sunil Tonger
|
|
|
|
|
and you are telling me all of that because??
|
|
|
|
|
|
Does this have anything to do with ATL/WTL?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Oh yes.
The first, i think i will create dll with ATL to hook IE message just like BHO. And i have call my process when the URL end with doc,pdf.... It is not true with my ideas. I want my process place inside the IE Browse.
If you have any document talk about it please tell me. Thank.
|
|
|
|
|
I am guessing here and I don't know if it's relevant, but do you think something like this in registry (for your file) helps you
HKEY_CLASSES_ROOT\.txt
where .txt could be any extension. Check registry.
Sohail
modified 21-Apr-21 21:01pm.
|
|
|
|
|
anyone know url for downloading documentation of tidyatl.dll? I know some urls for it, but they aren't available. Please help me. Thanks
|
|
|
|
|
I have to write the event handler for MSCOMM.OnComm who is listening to serial port for data, so that the event is fired 'OnComm' is executed when the data is arrived.
My understanding for the documentation is unclear as how to achieve this.
Does any one have the sample source code implementation in C# / C++?
Thanks and Regards.
Amar.
|
|
|
|
|
Search MSDN for the VCTERM sample application. It is a C++ program that uses MSCOMM.
|
|
|
|
|
How to Generate OLE dispatch map functions using class wizard or using any other.
please help.
|
|
|
|
|
I edit a sample program. To exercise container's function. I compiler the program is ok. When run the code "mPacket[uid_] = Finishtime;". Then the memory is error. Why? How to update it? Show my program below(flow.h & flow.cc).
---------------------flow.h------------------------
#ifndef FLOW_H
#define FLOW_H
#include
class flow
{
public:
flow();
~flow();
void addPacket(int uid_, int Finshtime);
std::map<unsigned int,="" int=""> mPacket;
};
void flow::addPacket(int uid_, int Finishtime)
{
mPacket[uid_] = Finishtime;
};
#endif
---------------------flow.cc------------------------
#include "flow.h"
int main()
{
flow *mflow;
mflow->addPacket(1,33);
mflow->addPacket(2,55);
return 0;
}
|
|
|
|
|
In your main() function :
int main()
{
flow *mflow;
mflow->addPacket(1,33);
mflow->addPacket(2,55);
return 0;
}
Have you forgotten to new a flow object ? As in :
flow *mflow = new flow();
- Bio.
|
|
|
|
|
I am creating an activeX control for web use. I want to initialise the control state when it is loaded on the website.
How do I best do this? ( In effect I am trying to do an "OnInitDialog()" kinda thing ).
Hope my message is loud and clear.
bart
|
|
|
|
|
I think that what you want is here..
http://msdn2.microsoft.com/en-us/library/Bb250489.aspx
|
|
|
|
|
Hi,
I am beginning IContextMenu. But When I Create my project there is no sub menu!
But when I compile other projects they work fine.
As I looked at them for diffrences I noticed _Module in them and _AtlModule in Mine...(DllMain and other codes) What can I do?
Please Help me.
Every new thing you learn,Gives you a new personality.
|
|
|
|
|
How difficult is to develop windowless activex multiline edit control?, do we need to handle lowlevel details like "mouse highlighting", "keyboard navigation", "data structures for handling text", as we do not have a window. the msdn sample which shows usage of controls uses extensively for all kind of controls. any help?
|
|
|
|
|
I have created simple ATL project. Using AddClass i have added ATL Control object which has a stock property 'Fillcolor' then finished the wizard. After that i tried to add property by using 'add propery', its creating necessary entries in IDL file but its not creating get and set methods to the implementation file.
why this happens? Please help me.
I also find that if i add stock propery to the ATL Control only the above problem occurs.
|
|
|
|
|
have you tried this tutorial? Its quite quick to go through.
ActiveX Tutorial[^]
bart
|
|
|
|
|
Yes, the same tutorial i have tried.
In Step 3: "Adding a Property to the Control" it states get_Sides and put_Sides methods added when we add a property "Sides". but its not adding that methods.
This problem occurs only when we add stock property in previous step 2.
|
|
|
|
|
OK, let me have a quick look at the tutorial
bart
|
|
|
|
|
ok sir
|
|
|
|
|
Hi
I am creating a toolbar for IE in ARL,COM and WTL.I want to add bitmap images to the toolbar buttons programmatically.previously I was adding the images on the toolbar buttons by hand drawing.But these images obviously do not look good.I want to add bitmap images to the buttons programmatically.Can anybody help me with code?Thanks in advance.
|
|
|
|