|
MyView wrote: I have included Sddl.h , Have AdvApi32.dll and AdvApi32.lib at correct places. But still getting a compilation error as undeclared identifier.
That is surprising??
What platform you are using??
Regards,
Sandip.
|
|
|
|
|
Hi
How to change back color of a owner drawn list box when it has no item?
www.logicsims.ir
|
|
|
|
|
Take a look at WM_CTLCOLORLISTBOX message within MSDN ...
For You ---->
|
|
|
|
|
Really thanks,
I know that, but you know I want to draw on it, for example wants to fill it gradient.
(Glad to see you're from Iran too!)
www.logicsims.ir
|
|
|
|
|
Hi masters!
-----------
Note the following remarks within MSDN about the above function:
1) WM_KEYDOWN and WM_KEYUP combinations produce a WM_CHAR message.
2) If the message is WM_KEYDOWN, WM_KEYUP, WM_SYSKEYDOWN, or WM_SYSKEYUP, the return
. value is nonzero, regardless of the translation.
But in my EXE, it returns 0 even though the message is WM_KEYDOWN or whatever else.
A background:
-------------
I'm writing a system-wide keyboard hook program, so that all key strokes are sent to
an EXE within a DLL (PostThreadMessage()) ...
But into the EXE, TranslateMessage is returning 0 all time ...
|
|
|
|
|
Hello everyone,
I am making some in-depth study of how universal marshaler utilizes typelib for an interface and generate universal (common) marshal code for all the the interfaces which is automation compatible.
My question before the study is why there could be common code universal (common) marshal DLL be suitable for all kinds of auomtation compatible inerface.
My conclusion is, the universal marahler will be able to recognize the data types of parameters/return values of automation compatible types, and will also know how to deal with the serialize/unserialize of them. So, it could have common code.
Is my conclusion and understanding correct?
thanks in advance,
George
|
|
|
|
|
Hello everyone,
1.
I read some MSDN document and some other forum discussions about the differences between IDispatch and dispinterface, but still confused. From MSDN, dispinterface is another interface inherits from IDispatch?
2.
And when we declare dispinterface SomeInterce , then it means SomeInterface inherits from dispinterface interface and dispinterface inherits from IDispatch?
thanks in advance,
George
|
|
|
|
|
IDispatch & dispinterface are quite different entities: the former is a COM interface, while the latter is a ODL statement.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thanks CPallini,
Any differences between the 2 definitions of interface?
- Define an interface dispinterface, e.g. dispinterface IFoo;
- Making an interface inherits from IDispatch, e.g. IFoo : IDispatch.
regards,
George
|
|
|
|
|
See here[^] and here[^] if they are helpful for you.
|
|
|
|
|
Thanks Hamid,
The article you referred is good. But it does not explicitly mention what is the differences between IDispatch and dispinterface. Any comments?
(If I missed any points in the articles, please feel free to point out.)
regards,
George
|
|
|
|
|
No it was not for different its for info,it was not helpful for you?
|
|
|
|
|
Hi Hamid,
The links are good. But it does not answer my questions directly. My question is about what is the differences between IDispatch and dispinterface. Both of the links do not give a direct answer.
Any comments?
regards,
George
|
|
|
|
|
Thats right .Now I have a question of you use of c++ or C#?
|
|
|
|
|
Hi Hamid,
I use both. Any ideas or comments to my original question?
regards,
George
|
|
|
|
|
If you want to get answer to your question you must be know info about both.(I decided to learn C# is it easy or hard?)
|
|
|
|
|
Thanks Hamid,
C# is not hard. It is more and more popular and I suggest you to learn.
What do you mean "info about both"? I think I am lacking the knowledge about what means dispinterface. Any ideas?
regards,
George
|
|
|
|
|
|
Anyway, Hamid. Do you have any ideas to my original question?
regards,
George
|
|
|
|
|
IDispatch is a COM interface it has two useful methods Invoke/GetIDsOfNames for script-based clients but for dispinterfaces did you see here[^]?
|
|
|
|
|
Thanks Hamid,
My question is what is the differences between,
- making an interface dispinterface;
- making an interface derives from IDispatch?
regards,
George
|
|
|
|
|
how to set font size of static text (IDC_STATIC).......
|
|
|
|
|
Hi,
create a new CFont.
m_Font = new CFont();
m_Font->CreateFont(15,0,0,0,900,0,0,0,0,0,0,ANTIALIASED_QUALITY,0,FName);
use SetFont() like this..
m_Static.SetFont(m_Font);
The price of anything is the amount of life you exchange for it.
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
I'm sorry for that. I have not use news before,
How could I open the link news://194.177.96.26/comp.os.ms-windows.programmer.win32?
Use what software? Can I use Google reader like online web software to open it?
Waiting for you reply any thanks in advance.
|
|
|
|
|
fantasy1215 wrote: How could I open the link news://194.177.96.26/comp.os.ms-windows.programmer.win32?
ShellExecute() perhaps?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|