|
What do you mean by "locked?" You can open a file exclusively that would prevent others from opening it. Or you could change the permissions of the file/folder such that only certain users/groups can access it.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Ok,I will be in brief..
If a user tries to access a file in windows A request is sent to the Server machine and a messagebox pops up indicating the a user is trying to access a file in the client....The admin in the server allows or denies access to a file ..Suppose if the admin denies access a control message is sent to the client..And The user gets a message that "The File cannot be viewed B'coz you are denied access" and if he permits the file Opens in the Client Machine.
I have a service running in the Client and another in the Server ...
-- modified at 17:37 Friday 11th August, 2006
Luck is Opportunity with hardwork
|
|
|
|
|
I have an application that uses two monitors, either side-by-side, or one over top of the other. Right now, my AfxMessageBox appears in each half of the two screens --- not very clean to the user. Is there a way to move the message box to a new x/y location or would it be simpler to create a new dialog of my own and reposition that one to where I'd like it to go?
Many thanks to all of you who answer these questions. You are a tremendous repository of knowledge for those of us less skilled.
John P.
|
|
|
|
|
Since MoveWindow requires a handle to the window and the AfxMessageBox is esstentially a modal dialog, I do not think that you are able to move the messagebox. So, AFAIK the easiest thing to do would be to create your own dialog and do whatever you want with it.
|
|
|
|
|
I believe you are correct. I searched throught the MFC documentation and saw NOTHING on moving the AfxMessageBox or the MessageBox. But then, MS doesn't always document EVERYTHING you need to know
Thanks for your help
John P.
|
|
|
|
|
I worked in an operation that used 2-3 video cards and the software that came with the cards that integrates with the video options had configuration options to make popups appear in various locations to prevent it from popping up cut in 2 pieces like on a 2 monitor system.
Does your card's software have these settings?
|
|
|
|
|
Good question --- now if only I could find the ICD!
Not much documentation around on this one.
Thanks for the tip, though.
John P.
|
|
|
|
|
A disparate way is :
first create a thread then call AfxMessageBox and in thread proc get handle of active window then move it.
|
|
|
|
|
Indeed. A real desperate way...
Ovidiu Cucu
Microsoft MVP - Visual C++
|
|
|
|
|
Hi all,
Being new to this, I have a very dumb question.
When calling a function that requires a list of options or flags, what do you pass if you don't want to use any of them?
For example:
FindText(FR_DOWN | FR_MATCHCASE, other arg here);
I don't want to use either of those flags, but passing 0, FALSE or NULL doesn't seem to work!
Thanks, and remember you were a newbie once too
|
|
|
|
|
what happens if you don't pass anything - don't even use the comma ?
|
|
|
|
|
stretchcoder wrote: When calling a function that requires a list of options or flags, what do you pass if you don't want to use any of them?
That all depends on what the function is expecting.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
It all depends on what the person who wrote the function expected. By convention, the function SHOULD work with 0 as the parameter. However, some people force a non-zero answer by requiring you to send a default flag value in. If it is a library function (e.g. in MFC) look at the documentation and see what it expects. If you have the source for the function, look at what the function is doing and determine what value you should send.
stretchcoder wrote: Thanks, and remember you were a newbie once too
No problem ... but when I was a newbie, 99.999% of "simple" questions would receive the answer of "RTFM!"
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Zac Howland wrote: when I was a newbie, 99.999% of "simple" questions would receive the answer of "RTFM"
Luxury.
When I was a newbie, they hadn't written the manual yet.
|
|
|
|
|
normanS wrote: When I was a newbie, they hadn't written the manual yet.
Same here. Usually that just mean they expected you to read the entire bookshelf at B&N before asking a question. Which, looking back on it, wouldn't be a bad thing to recommend to some people.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Why FALSE or NULL doesn't seem to work
|
|
|
|
|
I have an error message that says..
"Unhandled exception at 0x77fcc024 in MyApp.exe: 0x0000005: Access violation writing location 0x000000"
This error only happens in release. Can i use the location 0x77fcc024 to somehow find out where this is crashing. When i look at the call stack i get the general area, but cannot zone in on it.
Thanks,
|
|
|
|
|
If you only see it in the Release build, and don't see any memory violation warnings in the Debug Console for Debug builds, then your options are limited. First, check your project settings (specifically with regard to stack size) to make sure they are the same for both builds. Then, if you can narrow down the problem to a specific class or function, try to comment out then entire area and then slowly uncomment it to see when you see the problem.
Another option is also to put an __asm { int 3 }; line in the area you see this exception to spawn the debugger (you will want to compile your Release build with debug symbols unless you really want to debug assembly code though).
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
|
Hi,
I'm create new store (.pst) in Outlook. There are two folders in it by default (Deleted Items and Search Folders). How can I delete this folders?
WBR, Rider.
|
|
|
|
|
Hi,
I'm trying to use Rob Manderson's article Capture an HTML document as an image to capture full site as image. The problem is that the CCreateHTMLImage class needs a size to work with, and it crops the image to that size. Since we have the html page loaded already, how can I get the *real* page dimentions from the browser/doc/html interface ?
Thanks
Yariv
|
|
|
|
|
Yariv wrote: how can I get the *real* page dimentions
HTML pages don't have 'real' dimensions; they size to fit their container.
|
|
|
|
|
but still, the web browser has scroll bars if needed. I tried to use the get_HWND() method to get the web browser window and to try and calculate its size by using the scroll bar info. Although I have found a lot of examples of using this method in the internet, in my app it fails to return valid HWND.
Any ideas ?
|
|
|
|
|
CDHtmlDialog or CHtmlView arent good for your program.
|
|
|
|
|
Each time when I plug in USB memory stick to the pc, there is a window (file folder for the USB drive) pops out. I have application to indicate whether a USB memory stick presents.I don't want this auto window to pop out. How shall I resolve it??
|
|
|
|