|
hi is it possible to rubber-band a rectangle with an image opened on the background? it works fine on a blank view(with no images opened) using the the SetROP2 function and set it to R2_NOTXOROPEN.
but when an image is opened on the client it doesnt paint the rubber banding rectangles..
please help..is there any way or articles related?
thanks
positive vibes
|
|
|
|
|
Hi, all:
I'm developing a feature for our software which can block a list of websites. For internet explorer, I chose the BHO technology. I've written a little BHO.dll which is loaded when internet explorer is launched. When user types a website address in the address bar and hit enter, I check the address to find out whether it is in the block list. If in the list, the internet explorer will be directed to a simple page containing "this website is blocked."
It works and I get desired feature.
But, to my surprise, it seems there's some conflict between internet explorer and the BHO.dll. Internet explorer ofter crashes after being launched. If I unregister the BHO.dll, internet explorer becomes OK.
Are there anyone who meets this kind of problem before? How to resolve it?
And, I notice that IWebBrowser2 can also implement my feature. Then, to my feature, which one is better?
I have to think about firefox and other IE-cored web browser. Where can I find some help to implement my feature?
Thank you very much!
daheitou
|
|
|
|
|
About the crashing effect, you could start the program in debug mode. Set the "Executable for debug sessions " to iexplore.exe (You have to give the full path to iexplore.exe). Then start the program in debug mode and set breakpoints in your BHO dll code. That way, you can debug your BHO.
About the firefox etc, sorry don't have any idea. I hope someone else can help.
this is this.
|
|
|
|
|
Thank you very much.
I know how to debug BHO.dll, what I have no idea is whether IWebBrowser2 is better than BHO.dll to implement website blocking feature.
Does any one have ideas?
^_^
|
|
|
|
|
The way I remember it, your BHO would implement some interface like IWebBrowser2 , and through that, implement a function like Navigate or Navigate2 etc, and block the url in that function.
this is this.
|
|
|
|
|
Hi all,
I have automated MSWord in my VC Programme.Now I am able to Open a word document. Can I perform Searching of a string programatically using MSWord functionalities .
Please Help me,
Thanks in Advance,
George K Jolly.
|
|
|
|
|
Can you be more specific.
|
|
|
|
|
Hi,
I have automated MSWord in my VC++ Programme. So that I can open any doc file using my programme and perform any functionality of MSWord programmatically. But I dont know how to use find functionality of MS Word in my programme,
Thanks
George K Jolly
|
|
|
|
|
Hi everybody,
I am getting Japanese strings in char arrays, Instead of English, in my Quick watch while debugging. Can anyone help me out, Please !...
Thanks and Regards,
bharath .k
|
|
|
|
|
Most probably it would be junk values. Pls ensure
akt
|
|
|
|
|
I am using the following code as shown similar.
<br />
wchat_t pExeFile[128];<br />
wchar_t pModuleFile[512];<br />
wsprintf(pExeFile,(LPCWSTR)"%s",pModuleFile<br />
if I use char instead of wchat_t it shows error the following error
"error C2664: 'wsprintfW' : cannot convert parameter 1 from 'char [128]' to 'LPWSTR'"
Thanks and regards,
Bharath .K
|
|
|
|
|
Hi all,
I have created a Dialog Based Application in MFC. In it I have created a button control dynamically. Now i want to handle events such as click or double click etc. Can some one suggest a good reference site of tips to get the above done.
I have heard we have to use the WM_COMMAND but i have no clue as to how to accomplish the above.
Some one Plz help me.
Thanks and Regards In advance
Kenny
|
|
|
|
|
|
Hope I understood your question
You Create a button
m_MyButton.Create("Button",WS_CHILD|WS_VISIBLE,CRect(0,0,100,23),this,IDC_MYBUTTON);
Now you need to events for this button
#Define IDC_MYBUTTON 20000
BEGIN_MESSAGE_MAP(CMyAnswer, CDialog)
ON_BN_CLICKED(IDC_MYBUTTON, OnBnClickedMyButton)
END_MESSAGE_MAP()
...
...
void CMyAnswer::OnBnClickedMyButton()
{
MessageBox("Test");
}
////////And in header file insert
afx_msg void OnBnClickedMyButton();
Is your purpose?
|
|
|
|
|
Thank you Gentle Men for solving my problem. It is now working perfectly.
Thank u very much
Regards
Kenny
|
|
|
|
|
Hi,
Hi guys, i got some requirement, i have to find the unique ip address of my system on the internet.
how can i get that one through coding in MFC. need it urgently, can any one help me in this issue,
Thanks in advance.
Gopinath MV
"Don't sit like a Rock, Work like a Clock
|
|
|
|
|
I can't speak for MFC itself, but the way I've done this before is:
- Create a new UDP socket.
- Call 'connect' with a non-local IP (I've used google.com's IP but any will do)
- Call 'getsockname' on the socket to get the local address.
- Close the socket
Note that no data is ever sent on the network - this approach uses the fact that connect()ing a UDP socket doesn't do anything but bind the socket addresss. A side effect of this is that the local address (as returned by getsockname) is set to the outbound IP address of the machine. Or rather, the IP address that is used to tgalk to the non-local IP you specified.
Unfortunately, if you're behind a NAT (as most people are these days) getting the real external IP is somewhat different. I believe you can use UPNP (if your router supports it) but the only way I'm aware of is to actually connect to and exchange data with an external server who can then tell you which IP address you're coming from. This relies on you having a server running somewhere...which is a bit beyond your original question.
I hope that's at least of some help!
|
|
|
|
|
Thanks Mr Matt Godbolt,
The information that you have provided is some what helpful..
Once again Thanks for ur kind interest
regards
Gopinath MV
|
|
|
|
|
Use gethostname() followed by gethostbyname() .
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
If your machine is connected through a cable modem (router, ...) you can't.
You have to ping a site like http://checkip.dyndns.org/[^] and parse the result.
...cmk
Save the whales - collect the whole set
|
|
|
|
|
Hi,
Can anyone tell me what exactly the
#if _MSC_VER >= 1100 will do. what does the value signify? what are the other possible values??.
Where can i find any documentation on the above. I could'nt find it in google, MSDN.
Thanks & Regards,
Dhana
|
|
|
|
|
_MSC_VER is the version of Visual c++. 1100 is VC5, I believe. Either way, it's used to write code which can target multiple VC++ versions, where the versions differ.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Its compiler version.
From MSDN :-
_MSC_VER Defines the compiler version. Defined as 1200 for Microsoft Visual C++ 6.0. Always defined.
|
|
|
|
|
jana_dhana wrote: #if _MSC_VER >= 1100 will do. what does the value signify?
It says that
If Microsoft Compiler Version is Greater than or equal to 1100 compile the statements that is wrapped in side the block, else don't compile. It's a conditional compilation statement.
|
|
|
|
|
I want to list all the files in a certain directory which were created "after" certain date. I've thousands of ever growing files in that directory. If i enumerate these files using FindFirstFile method and then sort these on the basis of date, it take enormous amount of time.
Can anyone tell me better technique to do so. Is it possible with MS-DOS 'dir' command. If yes, then how and also how can i execute that dos command programatically ?
Imtiaz
|
|
|
|