|
You need to get a pointer the the IHTMLDocument2 interface which can be done like so:
IDispatch* pDisp = GetHtmlDocument();
IHTMLDocument2* pDoc = NULL;
pDisp->QueryInterface(IID_IHTMLDocument2, (void**)&pDoc);
IHTMLElementCollection* pColl = NULL;
pDoc->get_forms(&pColl);
Then you can browse through all the objects on the form (document) by using the methods of the IHTMLElementCollection interface. Hope this helps.
Bret Faller
Odyssey Computing, Inc.
|
|
|
|
|
I would Like to create a window that essentially looks like a toolbar but is independent can any one help how to do it
thanks in advance
|
|
|
|
|
you could try using the WS_EX_TOOLWINDOW style
Nish
|
|
|
|
|
I try now to convert all my project (that I writed as MFC dll) to ATL type
I opened by the wizars ATL class Dialog with mfc support and I fill its method with my code that I copies from my project.
Maybe someone can tell me if is it possible that the ATL will contain code of MFC as mfc functions , types and objects like CString.
I trys it and this is works with mfc client program but the question if is it will be match for Delphi and another .
What do you say ?
With manny thanks !!!
|
|
|
|
|
hi,
i want to capture pix from cam. in win98. i am using quickcam's activeX
componment. however, it is really a bad ocx. it will crashed in a k6-300 but
work perfect in my p3-800. since, i need to deploy my program in a embedded
pc. so, i need to find other solution. did anyone has such experience? anyone try to capture a picture start with video for windows?
thanks,
jim
|
|
|
|
|
Does anybody know how to accomplish this?when i use dumpbin like
dumpbin /exports gcmail.dll iam getting problem like
gcmail.dll ia an ne format ,use exehdr to dump it.
chands
|
|
|
|
|
Can anyone help me? I need to extract information about functions in a dll. Does anybody know how to accomplish this?when i use dumpbin like
dumpbin /exports gcmail.dll iam getting problem like
gcmail.dll ia an ne format ,use exehdr to dump it.
chands
|
|
|
|
|
I don't know in wich version was the "dependency walker" included, but in the VC++6 there's that app. it can help you (I think).
There you can load the DLL and look for information related to it.
I'm novice, I expect to help you...
I was trying them... (just kidding...)
|
|
|
|
|
I run VS6(SP5) on Win2000(SR2). I have a one line program which will not compile.
#include windows.h
int APIENTRY WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,LPSTR lpCmdLine, int nCmdShow )
{
CreateWaitableTimer( NULL, TRUE, "JOE" );
return 0;
}
c:\develop\test\test.cpp(8) : error C2065: 'CreateWaitableTimer' : undeclared identifier
To clarify the situation, I have no precompiled headers. The call definition is seen by VS because a mouse hover over the source shows the call prototype correctly. If I change windows.h to afxwin.h I get a good compile.
QUESTION:
Why can't I compile with windows.h? What has a Win32 API call got to do with MFC - or rather what does afxwin.h do that I don't?
Thanks for any advice !
|
|
|
|
|
Forgot to mention: The MSDN example fails to compile also.
|
|
|
|
|
|
Thanks Michael!!! Saved me again as usual.
I also found the answer in MSDN Q184796 together with an example.
|
|
|
|
|
Are there any web sites about "AI(Artificial Intelligence)"?
Thanks,
Maer
|
|
|
|
|
|
You might take a look at www.gamedev.net
regards
|
|
|
|
|
http://cs.felk.cvut.cz/~xobitko/ga/
Enjoy it....
Nice weekend
Carlos Antollini.
Today is Friday....
SSShhh Bob!!!
|
|
|
|
|
Hi, Antollini!
It is a nice site!
Regards,
Maer
|
|
|
|
|
What means "dependency loops in the DLL load order"? (from MSDN "DllMain")
Can you show me an example?
Thanks,
Maer
|
|
|
|
|
How to precisely create a CEdit that contains 6 rows with 10 characters in a row? (the font and size of the characters are not certain, so we must get the width and height of the font, but I do not know how to do that)
Can you show me an example?
Thanks,
Maer
|
|
|
|
|
You need to make the CEdit multiline, you need to get the size of the font, and then you need to call MoveWindow or SetWindowPos to size the CEdit accordingly. You probably have to take into account the edge of the CEdit also.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Thanks pal!
Your answer is the one I am looking for.
Have a nice day!
Maer
|
|
|
|
|
What is the function of "a thread local storage (TLS) index"?
What is the difference between it and an ordinary parameter?
Can you help?
Thanks,
Maer
|
|
|
|
|
The thread local storage (TLS) is a place provided by Win32 where you can put thread-specific data. Imagine you have a multi-threaded program, and you have some piece of data in each thread which is specific for that thread. Win32 gives you the TLS to store this kind of thread data. The index-part is because you can allocate many TLS "slots".
To answer what's the difference between a TLS index and an ordinary parameter I'd have to know your context.
Cheers
Steen.
"To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
|
|
|
|
|
Hi, Steen!
Thanks for your reply! It really helps me a lot.
From MSDN, I learned that the DLL have something to do with the TLS. For example, the DLL uses TlsAlloc to allocate a TLS index. But I do not know how they work?
Why Dll should do that?
Can you help?
Regards,
Maer
|
|
|
|
|
Well, the DLL can be attached to several threads within a process, and you could imagine that each attachment would need some data that was global to the DLL but specific to each thread (e.g. the state information that MFC uses). DllMain can use TlsAlloc in response to a DLL_THREAD_ATTACH to allocate room for this data, and a TlsFree to deallocate it in response to a DLL_THREAD_DETACH.
If you want to know how TlsAlloc/TlsFree works just look it up in MSDN. If you want to know more about multithreading then I warmly suggest that you read Richter's "Advanced Windows".
Cheers
Steen.
"To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
|
|
|
|