|
Thanks for answering!
I try to get that book, seems to look nice.
I found article about such generation of primes, quite fast, that gives samthing like 99.9999..99% probability that result is really prime.
It is: http://www.codeproject.com/csharp/biginteger.asp?target=big|numbers
there is library that uses big numbers and so on.
Unfortunately i can not assume even such thing that 1 for 10^30 numbers is wrong.
I found that there is such algorithm named AKS, which gives 100% probability that number is really prime. Info about it can be found at:
http://www.tcs.hut.fi/~helger/crypto/link/primality_tests/aks.html
but this algorithm is really incredibble slow. I try make in in assembler, it may speed it up...
thank you!
Pawel
|
|
|
|
|
Pandor wrote:
Unfortunately i can not assume even such thing that 1 for 10^30 numbers is wrong.
Why not? That's what they all do (RSA & co) if I've understood it correctly. Unless you have a scientific requirement, the 100% probability doesn't do much in cryptography over the 99.99999.......9% probability. It's still extremely hard to crack stuff like RSA.
Pandor wrote:
but this algorithm is really incredibble slow. I try make in in assembler, it may speed it up...
I hate to be such a party pooper, but I don't think you'll be able to speed it up much. The slowness is in the complexity of the algorithm, not the implementations.
--
Tune your mind, reach inside, peel away
Touch, Taste, Feel, Saturation
|
|
|
|
|
How Microsoft Word Works.?
1]
Is it creates seprate instance when new file is opned?
i.e. If we open two files ,two diffierent instances of Word
are running?
But If we PressCtrl+Alt+Delete it shows only one application running????????
2]
Is it creates another document when new file is opned?
(Document from MFC DOC/View)
i.e. If we open two files ,two diffierent Documents are open but only one instances of Word
But for another view how it shows two diffierent tabs?
Closing one not affects on other .How is this?
3]
Is it uses MultiThreading?
Each thread for each document are running?
Is it possible for each thread having its on window etc?????
Waiting for answers !!!!!!!!!!!1
Hemant
|
|
|
|
|
Hello!
I have an ActiveX that is dynamically created using the create method from the class. What now if I want to call a function when, for example, the mouse is moving on it ??
When the ActiveX is drawn on the ressource, I can go in the message map from class Wizzard and add a function for several messages. But in my case, how can I do it ???
Thanks
Moonen Cédric
|
|
|
|
|
Hi folks,
a silly question from sunny Italy:
I have a ListCtrl driven by a ListView, I have implememented a very powerful find engine utility but sometimes the found and selected items lies outside the few items I can see, so there should be some code that lets the control scroll and places the selected item at the very center of the control.
I have no idea on how to do this.
Can you help me???
Thanx a lot.
|
|
|
|
|
|
I put a Combo on my Dialog and I want add a string into this Combo but I cant do it
I used this way
...
case WM_INITDIALOG:
SendDlgItemMessage(hDlg,IDC_COMBO1,CB_ADDSTRING,0,(LPARAM)"MyString1");
SendMessage(GetDlgItem(hDlg, IDC_COMBO1),CB_ADDSTRING,0,(LPARAM)"MyString2");
...
I usually use SendMessage(CB_ADDSTRING) with Combo, which created by CreateWindow on MainWindow, It's good way.
But with Combo on Dialog, I cant add any string into it.
I need to do something before call those function or...
I need to set what Style of Combo..
????????
Help me .....
Thanks
I use Visual C++ 6.0 with non-MFC
|
|
|
|
|
I tested your code and... it works fine
rechi
|
|
|
|
|
I use WinXPpro and this problem is true! Why so?
|
|
|
|
|
I tested it on 2000Professional and WinXPpro. Do you need the test project (11k)?
rechi
|
|
|
|
|
can you send your project for me, thanks!
skidrow406@yahoo.co.uk
I found it, reason, which cause I can't add string into combo. That's combo, which design on design-time on dialog, have a height of drop down list = 0 >> so that, I need to set HEIGHT OF DROP DOWN LIST > 0 by one of following function:
BOOL MoveWindow(
HWND hWnd, // handle of window
int X, // horizontal position
int Y, // vertical position
int nWidth, // width
int nHeight,// height
BOOL bRepaint// repaint flag
);
BOOL SetWindowPos(
HWND hWnd, // handle of window
HWND hWndInsertAfter, // placement-order handle
int X, // horizontal position
int Y, // vertical position
int cx, // width
int cy, // height
UINT uFlags // window-positioning flags
);
|
|
|
|
|
I am confused. I do not have WinXPpro. How can a drop down list have a height of 0? The height should have been set in the dialog editor (1 line by default), although you normaly want to resize it to more. I have never needed to change the size but in the dialog editor.
Trust in the code Luke. Yea right!
|
|
|
|
|
Hi !!
With VC++ 6, I'm displaying in a combobox, the list of available disks of the local computer.
I'm wondering how I could be notified when a removable disk is connected (for instance a USB key) so that I can refresh the combobox, without having to do polling.
Thank you for your help !
Jerome
|
|
|
|
|
problem: when i press button "build" - not "build all", VC 6.0 compiles all of files in the project now.
normally, it should not compile any file because there is no file has been modified.
i met the problem before, i fixed it with run anti-virus, but the method doesn't work now.
so, in the moment, even i just modify one line in one cpp file, vc 6.0 compiles all of files, i have to wait for over 10 minutes for this huge project. normally vc just compiles the file modified then links it to others - totally few seconds.
it consumes all of my time for two days.
do u know how to solve the problem?
thx
includeh10
|
|
|
|
|
Problems with dates of files? Try pressing build after a build --normally no extra build is done.
Watch your system time, it might be set in the past or something, check also the sates of your files to rule out any odd date. These things happens sometimes.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
system time keeps going, no compile and run time error.
i guess one of h file is corrupted, but i can't find which one.
i have no idea.
includeh10
|
|
|
|
|
In explorer, do a search for *h, *.cpp, *.rc etc from the root of the project. Show details.
Sort by date. Are any of the files "newer" than "now"? If so, open them edit them trivially
(i.e. press <space> and <delete>) and save them. Clean the project and compile. This will do
a full compile, but now everything should be in sync. (Not the pop group...)
Iain.
ps. I've had this problem copying between my laptop and main pc when I've come back from the
far east and forgotten to change my clock back...
|
|
|
|
|
hi, mate, it works!
many thanks and
far east is a magic place, isn't it?
includeh10
|
|
|
|
|
There are have many library such as GDI, GDI+, OpenGL, DirectX.
I want to build small image viewer that able to zoom, score with dithering on 16-bit screen display mode.
Could any one tell me, if I have an image in memory what is the fastest way to show it on screen?(both in window's frame and full-screen mode without resolution and color-depth change) What's library you use?
|
|
|
|
|
I normally use GDI/MFC for my "serious" programming as I'm not writing games. Ease of writing /
debugging is more important here than performance. I've not touched GDI+ but it does appear a
little easier. But with more overhead...
For raw speed of display I'd go with DirectX. But you pay the penalty in programming headache.
OpenGL is good for 3d stuff, but I've found it not so good for 2d work.
In the final analysis, "It depends". If performance wasn't critical to you, you wouldn't be
asking, so I'd have to say DirectX.
Iain.
|
|
|
|
|
How i can create a setup application using Windows Installer SDK. Let me know from where i can get Source Code. or anything that can help.
|
|
|
|
|
I would like some information on this as well. I remember when the MSI thingy came out there was a tool (I think from Microsoft) that let you create a installer from a Wizard. But the only thing I can find now is the SDK, wich as of right now I don't have the time to dive into and learn.
-----
IMHO: C# a poor attempt at bringing C++ to the VB masses
-----
|
|
|
|
|
I need to generate an XML file from a bytearray. Can somone help me with that?
thanks
|
|
|
|
|
My prefered XML library is XML4C[^]. Much more efficient than MSXML and open source to boot.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Ravi Bhavnani wrote:
My prefered XML library is XML4C[^]. Much more efficient than MSXML and open source to boot.
Ravi, have you tried our own pugxml http://www.codeproject.com/soap/pugxml.asp[^]?
I'm using this more and more and just love it. Mind you it is probably a bit light on, compared to XML4C, but do you realy need all that extra stuff. The answer I'm sure is, it depends.;)
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|