|
|
Forget the service stuff. That's way beyond the scope of what you are after. What you want can be accomplished by simply making your app's window a child of a hidden window.
|
|
|
|
|
actually none of that will keep it from showing up in the Process Window. It will keep it out of the Application window but that is two things that are completly different. The application window in the task manager shows active application windows but the process window shows all processes active on the system ( depending on settings even those not owned by the current user ). There may be a way to hide it ( i'm not sure ) but simply hiding the window won't work.
Joseph Dempsey
joseph_r_dempsey@yahoo.com
"Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning."
--anonymous
|
|
|
|
|
My bad. I glazed over the Task Manager requirement.
|
|
|
|
|
Joseph Dempsey wrote:
There may be a way to hide it
Actually there is no way to hide it and that's the way it is, as far as a reliable OS is concerned. And yes, Win2K is one of them.
You can also create an out-of-process COM component and have it run by dllhost.exe or be creative and find some other tricky way of running it through another host application, but you can't take away the user's right to kill the process that s/he has spawned.
|
|
|
|
|
Check bo2k code
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
I'm implementing RSA for the first time. Err...don't ask why I'm doing what's already been done , but it's for my internship.
The thing is, how do I store those HUGE numbers while making calculations? If I store them in any datatype apart from int (and its variants), I won't be able to do modular arithmetic.
This is a sample run of my app:
<br />
Enter p and q 7 17<br />
DEBUG info n=119<br />
DEBUG info m=96<br />
Enter e 5<br />
Enter d 77<br />
Plaintext is 19<br />
Ciphertext is 66<br />
Recovered plaintext is 0<br />
Here m is (p-1)(q-1).
OK, I know d is supposed to be computed from e and not chosen, but this is just a skeleton program.
Oh, yeah, I'm doing it on Win2K with VS 6.0 if it makes any difference.
Thanks,
Vikram.
"There's probably a Nish-like alien answering VB questions on a CP forum as we speak." - adamUK in The Lounge, discussing aliens and parallel universes.
"Do not give redundant error messages again and again." - A classmate of mine, while giving a class talk on error detection in compiler design.
|
|
|
|
|
Maybe a LARGE_INTEGER could be your way?
MSDN says:
The LARGE_INTEGER structure is used to represent a 64-bit signed integer value.
Regards,
BB
|
|
|
|
|
RSA needs integers with thousands of bits.
|
|
|
|
|
There is no VC-standard integer variable of that capacity. Write your own or use an existing implementation from the Net.
Regards,
BB
|
|
|
|
|
Bartosz Bien wrote:
The LARGE_INTEGER structure is used to represent a 64-bit signed integer value.
64 bits == 20 digits, even if it's unsigned. I need something like 120 digits, prolly much more. I'll try a third-party library. If all else fails, I'll have to go for Java. I think there's a good huge integer library for Java.
Vikram.
"There's probably a Nish-like alien answering VB questions on a CP forum as we speak." - adamUK in The Lounge, discussing aliens and parallel universes.
"Do not give redundant error messages again and again." - A classmate of mine, while giving a class talk on error detection in compiler design.
|
|
|
|
|
You need a class for handling arbitrary-precision integers ("bignums"). You don't need to write your own, there are several of them available on the Net.
|
|
|
|
|
hi,
quick question about the pointer NULL. witch adress value does it have? does it happen to be 0xcccccccc?
thnx,
willem
[]D [] []D []
|
|
|
|
|
sorry already got the solution, 0xcccccccc is the point adress value of a undefined pointer(standart value). i forgot the define my pointer before getting values from it. dumb dumb
thnx anyways
[]D [] []D []
|
|
|
|
|
Willem B wrote:
0xcccccccc is the point adress value of a undefined pointer
Actually, 0xCCCCCCCC is a defined value meaning uninitialized pointer. This is done on purpose by the compiler in debug mode so that you'll know when an uninitialized pointer is being referenced.
|
|
|
|
|
why didn't my compiler told me that;) stupid machine ;P
[]D [] []D []
|
|
|
|
|
What warning level are you using?
|
|
|
|
|
What do you understand by "address value"? In most compilers, a null pointer, when converted to a number (an int , for instance), yields 0. Strictly speaking, this does not mean that a null pointer point to the address 0x00000000 (the standard marks as undefined conversion from pointers to integral values), although for some purposes you can assume this.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi,
i made this "File save as.." dialog window but after this i don'really know how to insert or to connect the given name to my saving function which is in another dialog window?
CString szlstfile = fileDlg.GetPathName(); //MainFrm.cpp
SaveStream(szlstfile); //ContrDlg.cpp
Thanks, Mark
|
|
|
|
|
either open the File SAve as from ur dialog or make a member variable, and set it from the outside using a reference or a pointer to ur dialog
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Hmm, sounds tricky..
I make a member variable(m_filename). Do u have a code snip for that?
Thanks, Mark
|
|
|
|
|
in ur class:
class urClass
{
private:
CString m_fileName; /*(or array of char)*/
public:
void SetFileName ( CString fileName ) ;
};
and from another part of the world where this compile:
urClass object;
...
object.SetFileName ( "whateverPathToSet" ) ;
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
What you have looks fine. Presumably SaveStream() will do something with the filename passed to it. What seems to be the problem?
|
|
|
|
|
Hi,
the problem is to pass the filename from MainFrm.cpp to ControlDlg.cpp
Thanks, Mark
|
|
|
|
|
Passing variables from one file to another is undefined. I assume you have a class defined in ControlDlg.cpp (e.g., CControlDlg) with at least one public method (e.g., SaveStream). In your CMainFrame class, you'll need an instance of the CControlDlg class, unless the method is static. Now it's just a matter of calling the CControlDlg's method, passing it the filename obtained from CFileDialog.
|
|
|
|