|
I meant, flash-based. I.e. they heavily use flash animation for interactivity.
llp00na
|
|
|
|
|
Right - in that case, you probably want to parse the HTTP response (which is overwhelmingly likely to be HTML) and see if it has an instance of the Flash player object embedded in it.
How do you identify the Flash object? I'd suggest looking at the HTML for pages that use Flash (load them in your browser and view the page source - the Flash object instance should be reasonably easily detectable).
How do you differentiate between pages that use Flash for the majority of their content and pages that just have Flash adverts? Good question - I don't know.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
My main concern really is to detect the pages that use Flash for the majority of their content.
Thanks for the try though
llp00na
|
|
|
|
|
llp00na wrote: Thanks for the try though
Thanks for the try? Really? That is the answer to your question, period. Not surprisingly it's the same one I gave you. You seem to want us to believe that you have a clue about what you are doing. The problem is that your post don't indicate that in any way.
|
|
|
|
|
What is an animated web site ? a fully flash (or silverlight) site ? or something else ?
This signature was proudly tested on animals.
|
|
|
|
|
An animated website is a flash-based website. All/ Major content is flash.
llp00na
|
|
|
|
|
After parsing the html source, how can you decide that the major content of a page is in flash or not ?
This signature was proudly tested on animals.
|
|
|
|
|
How can you do that?
llp00na
|
|
|
|
|
Website is a display. While some people unfortunately use diagonals to measure displays, I prefer width and height attributes. Fortunately, so do <object>s in webpages, usually.
All that's left to do is pick a "total area" number, & compare.
|
|
|
|
|
Thats good idea which I started to implement now
Thanks
llp00na
|
|
|
|
|
llp00na wrote: Thats good idea
Really, it's a good idea now, it just wasn't a good idea the first two times people gave it to you? What a frakin monkey.
|
|
|
|
|
Given this...
class CTopDlg : public CDialog {
...
then this works...
HBRUSH CTopDlg::OnCtlColor(CDC*,CWnd*,UINT){
HBRUSH ret = CDialog::OnCtlColor(...)
...
return ret
}
but if I try this...
class CDerivedDlg : public CTopDlg {
...
then this does _not_ work...
HBRUSH CDerivedDlg::OnCtlColor(CDC*,CWnd*,UINT) {
HBRUSH ret = CTopDlg::OnCtlColor(...)
...
return ret
}
OnCtlColor is declared virtual in my CTopDlg class, and is also in a protected: section. It is _not_ virtual and _is_ protected in CDialog. The error is based on the rules of C++, but how did CTopDlg compile?
|
|
|
|
|
brain fart.. here's why in case you wasted your time with my first post, or you looked this up:
make OnCtlColor not virtual in CTopDlg. Then it isn't overwritten by CDerivedDlg::OnCtlColor, and CTopDlg::OnCtlColor(...) is a valid reference inside the CDerivedDlg version.
|
|
|
|
|
CTopDlg::OnCtlColor should be a valid reference within CDerivedDlg even if it is declared virtual. It tells the compiler explicitly to call OnCtlColor as if this had type CTopDlg.
It certainly works in VS2008 and g++4.0.1
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
The message indicates the compiler can't get a CTopDlg object pointer from the CDerivedDlg object pointer you get using this (BTW - what error number are you getting?).
Your scenario, as presented, (OnCtlColor declared virtual and protected in CTopDlg, OnCtlColor declared virtual (or non-virtual) and protected in CDerivedDlg) compiles under VS2008. So...what compiler are you using (VC6? I'm thinking it might get confused easier than VS2008), are you absolutely sure you've derived CDerivedDlg publicly from CTopDlg?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
(busted!) Yes, I'm using VC6, since for some reason that's what our partners chose to code in originally.
I thought it was a blessing in disguise, as if CDerivedDlg::OnCtlColor ever got executed, with a valid call to this->OnCtlColor, the program would almost certainly hang, right? (I can't try it on this machine)
|
|
|
|
|
bulg wrote: I thought it was a blessing in disguise, as if CDerivedDlg::OnCtlColor ever got executed, with a valid call to this->OnCtlColor, the program would almost certainly hang, right?
No, it'll do the right thing - when you use a class namespace specifier like that (i.e. something like CTopDlg::OnCtlColor ), it determines what method to call statically at compile-time (i.e. the compiler works out what to call) rather than dynamically at run-time (i.e. looking up what to call in the v-table).
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi, I'm looking for large opensource C++/g++ Eclipse projects to test and build in Eclipse, any suggestions?
Preferably where the workspace .cproject has been provided.
(I'm using Windows, did I post this in correct forum?)
Thanks
Beth
|
|
|
|
|
I don't know of any, but I'd suggest searching Google (both Web and Google Code[^]) for something like "cproject cdt" or "cproject cdt eclipse" - that found a few when I had a look.
Searching SVN repositories for ".cproject" might help as well - an example[^].
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thanks your help there seem to some sizable projects out there to pick.
|
|
|
|
|
Can some please tell me how to find multiple instances of same top-level class name. I have used FindWindow(), however it's only returning the first window it finds.
thanks a million.
|
|
|
|
|
You can enumerate all windows using EnumWindows .
Then use GetClassName on the window handle to get the name of its class.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
|
Superman, I am stuck between using EnumWindows and a hook. I have tried both. Here are my problems with both. I was avoiding to use hook because i am not as provicient yet to use, however if I can get it going with what I have so far, It will save me frustrations in the future. The reason I am avoiding it is I for now is I only need it to get my window captions and window positions of all windows open based on classname. I am way behind in this. If you can help with either I will appreciate it.
Hook Problem.
The Dll compiles fine. Not sure how to test it yet on its own.
User Inteface that goes with the hook compiles fine own its own and runs fine. However when I compile and run it with the header files included for the hook dll. I get a run time execution error. I changed the project to make it as a dependency when compiling. When I do that the user app is looking for a hookdll.lib file which I believe is for the dll's export which I can't find and not sure what options to change, even though I have the __desc(....dllexport) in there. So I am stuck there.
EnumWindows Problem.
I am using trying to use it when the user clicks the command button in the user application.
This is what I have so far and cant compile once i have this in the app.
void CUserAppDlg::OnBnClickedButton1()
{
::EnumWindows(MyEnumProc, 0);
}
Not sure How to declare this. Getting compile errors on this too.
I have it in the app's header file in the public section as
BOOL CALLBACK MyEnumProc(HWND hWnd, LPARAM lParam);
the following is in the app's.cpp
BOOL CALLBACK MyEnumProc(HWND hWnd, LPARAM lParam)
{
char title[500];
GetWindowText(hWnd, title, sizeof(title));
return true;
}
I sincerely appreciate all the help you have provided me with.
once again thanks a million.
|
|
|
|
|
It looks fine to me.
What is the error that you're getting?
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|