|
Blacklisting URLs is best done at the firewall or gateway. That's one of the features they provide. Is there a reason why you can't go this route?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
well, our app needs to have access to it. Also, they should be able to go to www.that.com or www.that.com/products.htm, but not www.that.com/dataentry.htm. However, our app should be the ONLY one to be able to access this particular specific page. Our network admin knows about firewalls (which is why I can only get to a few select sites ), but the guy who worked on the app that hosts the web browser control said that he spoke to him and I guess they didn't come up with a solution. Plus, I don't know exactly what rights we'll be granted to their network, so I was thinking that having an app/service running that's part of our install would be the best solution. I don't know much about networking or firewalls myself, but would it be possible to only allow one .exe to access a certain url through the firewall settings?
My articles
www.stillwaterexpress.com
BlackDice
|
|
|
|
|
BlackDice wrote:
I don't know much about networking or firewalls myself, but would it be possible to only allow one .exe to access a certain url through the firewall settings?
Possibly, but it's more conceivable to limit or deny access at the IP address level (i.e., only allow IP addresses in the xxx to yyy range to access this site).
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Can I declare the map class as follows?
typedef queue<unsigned char=""> clientBuf;
map<int,clientbuf> buffers;
Thanks a lot!
|
|
|
|
|
if you previsouly declared using namespace std; ,
yes, you can use map<key_type, value_type> myMap;
for example :
<font color=#008000>
<font color=#0000FF>#include</font><map>
<font color=#008000>
<font color=#0000FF>using namespace</font> std;
<font color=#0000FF>void</font> main(<font color=#0000FF>void</font>) {
map<CString, <font color=#0000FF>int</font>> myMap;
myMap["toxcct"] = 1;
}
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Thanks a lot.
I would like to ask one more question. Can I replace the "int" with a class that is defined by myself?
Really thx~
|
|
|
|
|
of course, my answer was just an example...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
|
I'm trying to modify a html page using the CHtmlView class. I've overidden the onBeforeNavigate2 class and I get the document using GetHtmlDocument(). I then add some content to the page and that's when I get lost. How do I redisplay the page with the additional content.
Thanks in advance,
Ron
|
|
|
|
|
|
Neville,
Yes I've checked the articles at CP. I can create the view and edit the pages but can't seem to display the modified files.
I'll check Ehsan's articles,
Thanks for the help,
Ron
|
|
|
|
|
Hi Ron,
rlepine wrote:
I'll check Ehsan's articles,
I'm pretty sure you'll find what you need here. If not make another post.
In Surfulater I build the html on the fly and basically put it back into the view using PutinnerHTML().
Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
|
|
|
|
|
Here is from MSDN
OnMouseMove
point
Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the window.
OnMouseWheel
pt
Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the screen.
Why is it that when I have the screen print out last known OnMouseMove point in OnMouseWheel the value is totally different from OnMouseWheel's pt? The value should be the same because cursor is still at the same location.
|
|
|
|
|
Because "Upper Left Corner of Screen" is NOT necessarily equal to "Upper Left Corner of Window". In most cases it is NOT equal.
See MapWindowPoints and ScreenToClient/ClientToScreen for converting points.
|
|
|
|
|
Is there a way to determine if the scroll bar reach it's min and max?
|
|
|
|
|
Currently I am using GetScrollClip. Finding min is easy but find max would require a lot of work.
The other problem is OnMouseWheel doesn't get the Scroll change until after it's completed.
|
|
|
|
|
See the GetScrollInfo function...
The GetScrollInfo function retrieves the parameters of a scroll bar, including the minimum and maximum scrolling positions, the page size, and the position of the scroll box (thumb).
|
|
|
|
|
Hi,
I'm working on an Outlook Add-in written in VC++. My problem is that I have to add some buttons to a toolbar, and the only way (I know) to set icons to them is using PasteFace. By doing this, I have to use the clipboard, and I loose everything that I had in there. Is there any way I can somehow save this data (from the clipboard) in a buffer, and after pasting the images, to put the initial data back into the clipboard.
Any ideas or suggestions would be most welcome.
Thanks,
Doru
|
|
|
|
|
If the clipboard data is in a format/formats you understand, then yeah, you could probably hack it. Since just about anyone can put just about anything in the clipboard though, it's unlikely you'll get this working across the board without a huge amount of effort.
Shog9
I'm not the Jack of Diamonds... I'm not the six of spades.
I don't know what you thought; I'm not your astronaut...
|
|
|
|
|
This is a rather vague question so my answer may not be totally applicable. Use AppWixard to create a dialog-based application. On the dialog template, put an edit box and a button. Use ClassWizard to assign member variables, CEdit and CButton respectively, to these controls. Provide a handler function for the button. In that function, obtain the search text from the edit control by using CEdit::GetWindowText() . Once you get this far, we can then discuss how to search a database.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
hum, i can't find the english word that express my thinking, so, smileys will represent my mind :
i'm felling Mr Crow (Deyyyvid Crow) is a little bit about Mr Zumbi...
am i so far of the reality ???
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Your atrocious spelling aside, I am far from angry with zumbi. Unless my answer to him was just totally incorrect (it's been known to happen), why on Earth would you even entertain such a thought?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
i just couldn't explain what i was thinking in a correct english...
sorry, it was the only smiley i found to say this.
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
zumbi wrote:
We need the answer (code) soon becouse its our schoolwork.
The only reason to ever include statements such as this is to inform any potential responder that you may not be as well-versed in the language as them and that extra details might be necessary. To qualify it by saying "hurry," "soon," or "ASAP" will almost assuredly get you nowhere fast.
That said, have you visited this site?
"Lack of planning on your part does not constitute an emergency on my part." - Anonymous
|
|
|
|
|
Hi.
I'm using a DLL provided by someone else which throws up a message box in case of an error in some function within the DLL. Is there some way I can suppress these message boxes? Asking the person who wrote the DLL to get rid of them doesn't work. Any useful suggestions would be appreciated.
Thanks,
Sandhya.
|
|
|
|