|
|
|
hi
i have embeded an ActiveX control in a web page, when the page is accessed the control downloads and registers successfully on client's machine but it is not shown on the web page, instead a cross icon comes at its place
what might be wrong
plz help me its urgent
regards.
Muhammad Azam
|
|
|
|
|
I have a active-x ATL control. Inside my control I want to use InvalidateRect(), but I can not because it is not a window. Even I do I get Assert letting me know that it failed, because it is not a Window or no handle for the Window. What I am looking that how can I get the handle of the container. In my case it is a dialog Box.
Looking help I found this example. (
ATL Library Reference
CComControl::CreateControlWindow
)
RECT rc = {10,10,210,110};
HWND hwndParent, hwndControl;
// get HWND of control's parent window from IOleInPlaceSite interface
m_spInPlaceSite->GetWindow(&hwndParent);
hwndControl = CreateControlWindow(hwndParent, rc);
Here I am lost. How we can use IOleInPlaceSite to get the Window Handle.
Or if you have any other idea.
Your help will be very much appreciated.
Best regards,
Agha Khan
Agha Khan
|
|
|
|
|
If you're dealing with window less controls, take a look at the IOleInPlaceSiteWindowless interface. Query m_spInPlaceSite for IOleInPlaceSiteWindowless , and use the InvalidateRect() function. Not that I've ever written any window less controls, but from what I can tell, this seems to be the correct way to invalidate rectangles.
--
Weiter, weiter, ins verderben.
Wir müssen leben bis wir sterben.
I blog too now[^]
|
|
|
|
|
Dear Jörgen Sigvardsson:
Well I am NOT writing Windowless control. Perhaps you have noticed that regardless it is Window control or not IOleInPlaceSiteWindowless is implemented. Bottom line is it does not work. I will let you know as soon as creak it.
Thank you for your prompt reply.
Agha Khan
Agha Khan
|
|
|
|
|
BilloKhan wrote:
Well I am NOT writing Windowless control
I don't get it. Didn't you say that the control had no window?
BilloKhan wrote:
Perhaps you have noticed that regardless it is Window control or not IOleInPlaceSiteWindowless is implemented.
Yep. That's because the code can handle both windowed and windowless controls, and it can even configure itself at runtime. IIRC, there's a member variable called m_bWindowless or similar that controls that behavior.
--
Weiter, weiter, ins verderben.
Wir müssen leben bis wir sterben.
I blog too now[^]
|
|
|
|
|
Hello everybody,
I am creating a dll that contains some
Methods and these methods have some styles like:
#define dw_style 1401
After importing my dll and calling that method I want to
Use this dw_style name instead of 1401.
In another word I want a global #define.
////////////For example/////////////////////////////
//In the Dll file
#define dw_style 1401
..
methods
..
////////////////////////////////////////////////////
//////////In the mfc app and after importing the dll
method(dw_style)
..
..
Best Regards
Thanks.
|
|
|
|
|
Export the varible tooo
-----------------------------
"I Think this Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Define in stdafx.h
What is the problem?
Agha Khan
|
|
|
|
|
I think Me Sollium want to export that in DLL
-----------------------------
"I Think this Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
The answer is also very simple. As we know that define just replaces the actual content what we have defined. It CAN NOT be exported.
Agha Khan
|
|
|
|
|
YEah you are write but what about ENUM in Com DLL.
-----------------------------
"I Think this Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
enum are more like constants whereas #define are macros that get expanded during compilation time.
I hope you will get what I am saying
Have a great day ahead!
Regards,
Sohail Kadiwala
(My Blog - http://blogs.wdevs.com/sohail/[^])
modified 21-Apr-21 21:01pm.
|
|
|
|
|
Sorry Sohail Sir,
i Understand the Difference Between TWO
-----------------------------
"I Think this Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
export them is not suitable. you can define them in the header file.
when you use the dll ,you can include the header file first.
Happy new year!
|
|
|
|
|
Hello everyone
I am creating a DLL using ATL and I want to know
How can I use a timer in my DLL?
Best regards
Thanks.
|
|
|
|
|
you can create Hidden window in your dll that will handle the above cause
-----------------------------
"I Think this Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
I'm developing a multithreaded application mix of MFC & STL stuff using MSVC and having so many DLLs integrated in it .
I have very small question. I want to have little structure(about 3 elements ) associated with each thread and needs to be exported to all DLL in system.
So what's the best way to implement by having simplest old way to have a array of structure/class or have list/map template of structure/class.
Can someone please suggest the best way to go ?
thanks
ben
|
|
|
|
|
It is such a simple question, perhaps I am not following. You may pass any data to any thread even a whole class or more and inside that class cast to that struct or class. By nature all thread functions are static so you have to cast incoming data to desire class.
Agha Khan
|
|
|
|
|
howdy all-
My current problem: I've got this ISAPI DLL, which does some stuff and generates XML. It's written in C++, uses MSXML3, and run's inside DLLHOST...
Oh, and it leaks memory.
(1) Is there a good way to debug this?
(2) If I could convert this to a stand-alone exe, I could attach a debug memory manager.... Can this be done -- can I make an ATL/IIS server extension which is also an exe. (is this what's called an out-of-process server?)
Thanks in advance!
Regards
-peter
P.S. I think I do ask some of the more esoteric questions on this site.... I hope someone has some help or direction for me. Thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
Compile a debug version of your DLL and attach your debugger to DLLHOST.exe. Debug as usual.
|
|
|
|
|
oh...
I wish it were that simple....
But tracking memory leaks is the real problem...
and it's not MFC....
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
I'm not sure I understand what your getting at. You asked "Is there a good way to debug this?". I explained how to do this. Why is it any different to track memory leaks in a dll? What does MFC have to do with anything?
|
|
|
|
|
Forgive me for my ignorance in this arena.
It's code that was kinda thrown at me, and finally given all responsibility to figure out.
I'll be more specific. It's an ISAPI DLL which mines data out of our servers, generates some XML and passes it back to IIS for display.
Upon repeated use, it leaks memory...
My attempts to locate the memory leak are failing, and i am flailing
Maybe you could tell me the best way to detect memory leaks in a situation like this?
Thanks
-peter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|