|
Dudi Avramov wrote:
However,you can disable the buttons of the opened window by setting some values in the registry Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer.
Thanks a lot for the reply. I have heard certain OSes do not allow you to have full control over the CTRL+ALT+DEL feature.
However, what's so important about the app ?
Well I have an app which needs to be invulnerable to the more naive (or ignorant, should I say) users because some extremelly important analysis & update process has to be carried out and whilst it is being done, no keyboard input should be allowed.
Does anyone have any ideas as to what I should do?
Thanks very much for the replies.
dNimrod#X
________________________
|
|
|
|
|
If it's NT, 2K or 2.03K, you can't do it that way, the SAS will always be picked up, for obvious security reasons. If it's Win9x/ME then it is simpler.
However, what's so important about the app ?
Steve S
|
|
|
|
|
I got this error in my program
error C2011: 'CRichText' : 'class' type redefinition.
I added a RichText ActiveX Control and added a variable for it.
Once when i compiled, I got stuck with the above error.
Iam unable to proceed further.
Please help me out.
I thank in advance.
Mughi
|
|
|
|
|
What does the line in question look like? Are you including a .h file more than once?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hi , I've been searching the internet and CodeProject but I haven't found any customizable autorun app , All we know autorun dialogs present in every Microsoft CD . I'm a C# programmer and I don't have good c++ skills I'm sure that lots of programers like my are looking for some solution does anyone has any code to share ?
Thanks,
|
|
|
|
|
There is basically a Autorun.inf file in the root directory of the CD containing the name of a program to run when the CD is inserted.
This can be prevented by holding down the 'shift' key when inserting the CD. Also, it does not work with operating systems other than Windows.
I thought I just say that, because recently some very smart guy (SunnComm Technologies) invented a CD copy protection scheme on autoloading a program that prevented access to the CD. They sued the one who found out: Link here
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
Hi
I like to use Blob data(non-encrypted) before calling CryptExportkey. So i can customize in such a way i can implement my own algorithm. How to do that.
chak
|
|
|
|
|
I have a very large mathematical model that runs continuously. I am trapping for math errors via _control87(_EM_INEXACT, _MCW_EM) and signal(SIGFPE, MyFPHandler). This part works and my routine (MyFPHandler) is called whenever there is a divide by zero, invalid operation, etc.. What I would like to do is get the program location of the offending operation. Is there a way to do this? The code must know somehow because, if I wanted to, I could resume execution from that point. However, in my case, I do a an _fpreset, and then longjump to a safe area that does some simple error reporting and cleanup.
Thanks,
Paul
|
|
|
|
|
Hi I have a problem where I cannot use GetDIBits on 98, works fine on XP. I read somewhere that in 98 the width and height have to be divisable by 4 so I even tried that with no avail.
Here is a snippet which works in XP but doesn't in 98. Has anybody got any clue why it's not working in 98
<br />
<br />
...<br />
<br />
HDC hBmDC = CreateCompatibleDC(NULL);<br />
HBITMAP hB = CreateBitmap(16,16,1,24,pPixels);<br />
<br />
bmiInfo.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);<br />
<br />
int iRes = GetDIBits(hBmDC,hB,0,16,NULL,&bmiInfo,DIB_RGB_COLORS);<br />
<br />
...<br />
<br />
Thanks
|
|
|
|
|
I am trying to use the CPrintDialog functionality, with my own template, as a child on a tabbed dialog in VC6. If I make the child dialog a CPrintDialog it does not initialise with the printer details. So I tried to make the Main dialog a CPrintDialog, still the child does not respond. I then put the Controls on the Main dialog, then MoveWindow them to the Child, this inits ok but no longer responds to any user interaction ( change of printer combo ). I have played a little with message routing and can now respond to combo change, but not Properties Button. Anyone any thoughts
|
|
|
|
|
What is the correct method to overload the operator []. I am doing something like:
class MyClass
{
const int operator[](const int i ) const;
int& operator[](const int i );
}
Now i want to invoke the operator [] as follows:
MyClass foo;
int i = foo[j];
foo[j] = i;
Strange that in both cases second operator of the above class always gets called. Can anyone tell me whats the problem and why not first operator gets called ??
Imtiaz
|
|
|
|
|
IIRC, the rules of C++ say that if two functions differ only by const , the non-const version is preferred for a non-const object.
If foo was const , the first assignment would call const int MyClass::operator[](int) const while the second wouldn't compile (the error would probably say something like "'const int' is not an l-value").
C++ doesn't know the context of an array access, so you return a reference to the object to be assigned to if you want to allow assignment. If you want to be able to control assignment (e.g. inspect the value before assigning it), you typically need to return a proxy object from operator[] . The proxy object overloads operator= and is also convertible to the contained type (in this case, you'd probably supply operator int ). You would place your 'setter' logic in operator= .
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
From what I can tell, you only need one of the overridden methods. The second one can be used on either the left or the right side of an assignment statement. Consider this example:
class MyClass
{
public:
MyClass()
{
arr[0] = 2;
arr[1] = 4;
arr[2] = 6;
}
int& operator[](const int i )
{
return arr[i];
}
int arr[3];
};
MyClass foo;
int j = 0,
i = foo[j];
foo[2] = i; The reason has to do with the function returning a reference to arr . It's being treated as if you had written:
MyClass foo;
int j = 0,
i = foo.arr[j];
foo.arr[2] = i;
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
DavidCrow wrote:
From what I can tell, you only need one of the overridden methods. The second one can be used on either the left or the right side of an assignment statement.
Unless you want to call it on a const object to read the value...
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I need to watch for a particular window on the screen. There are two approaches - to use a timer, say with an interval 500 ms, and use the FindWindow() function to check if that window has appeared. Another would be to use a system wide hook to monitor all events, filter out the window create events, and check the caption. Which one would take less system resources.
Is there a way to compare system performance with background processes running?
|
|
|
|
|
Hi all,
I have two views, one of which is associated with a document. this view can be used to open a modal window which performs an operation on some data, and then it is closed. This window creates an array which i need the other view to access; the other view also needs access to the document data!
i can't see how to do this !
can anybody help ?
Paul.
|
|
|
|
|
Hi Everybody !
Could you tell me when it occurs the worst case (n*n) and the best case in quick sort algorithm ?
Thank,
Nguyen
nguyen_nd
|
|
|
|
|
I'd say let professor google answer this ...
anyway, if I remember correctly, it's when the data is already sorted; but I don't remember the justification ...
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
The partition-exchange sort (i.e., quicksort) algorithm performs the worst when the data is already sorted. Its best case is O(N lg N).
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Does anyone know direct download link for
Microsoft Exchange Development Kit (EDK)
I am not able to find it on Microsoft pages.
Thanx
viliam
|
|
|
|
|
|
That is not exactly what I am looking for.
I need EDK (something like SDK)
Header, and Lib files and these are just
tools.
Thanx anyway
viliam
|
|
|
|
|
Hi all,
Where can i find atl service s tutorial for the very beginner?
10'x
|
|
|
|
|
Hi all,
I have an issue related to pocket pc.
I would like to find out how I can delete the most recently opened files or programs in the pocket pc..
I mean I have an uninstallation where I want to remove the icon in the most recently used program group.
thanking you
|
|
|
|
|
I don't have a solution but I think you'll have more replies if you try the Embedded/Mobile forum
|
|
|
|