|
I can recommend "Introduction to Algorithms" by Cormen, Leiserson and Rivest. ISBN 0-262-03141-8 (MIT-press) or ISBN 0-07-013143-0 (McGraw-Hill). My printing is from -92, and there could be newer ones. It (or the like) should be part of every programmers library. It contains pseudo-code examples, easy to convert into C++.
|
|
|
|
|
The Boost Graph Library implements this algorithm (and a lot more). Plus, it is a beatifully crafted library, if you like the STL way.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Here's the question - I use threads of type "UINT MyFunc(LPVOID pParam)" and inside I pass CListCtrl pointer and use MFC classes as CString. Is that correct - I mean can I loose in some conditions information?
|
|
|
|
|
It's ugly as anything, you can thank Microsoft for that. But it will work fine.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
I come back with an old question: how could i bring a modeless dialog box to background? Background meaning behind the parent window, not hiding.
Is it possible by changing the modeless' settings?
Wish for help!
rechi
|
|
|
|
|
No you can't change the modeless settings. All that modeless means is that it uses the main message loop to get access to its messages. A modal dialog box creates and uses its own message loop.
Have you tried to set the ZOrder of the windows in order to make your dialog set behind the main one? Use SetWindowpos for this.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
It's useless. I've tried and it has no effect. Despite this, i can
successfuly hide the modeless using SetWindowPos.
rechi
|
|
|
|
|
|
Try this
BOOL ReadProcessMemory(
HANDLE hProcess, // handle to the process
LPCVOID lpBaseAddress, // base of memory area
LPVOID lpBuffer, // data buffer
SIZE_T nSize, // number of bytes to read
SIZE_T * lpNumberOfBytesRead // number of bytes read
);
|
|
|
|
|
thanks! i need full source code!
|
|
|
|
|
|
|
Have you looked at PEDUMP. It is a sample program by Matt Petriek in MSDN. It shows how to walk through the PE file format and extract all of the information including the import table.
One thing that you will need to do is resize the file in order to accomodate the new entry because there is no extra space for new entries.
Another thing to worry about is Windows 2000 and up will complain if you try to change any of their executables.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
|
Can somebody please give me URL to any utility for searching a string withing another string. I know VC++ is very powerful. I want to use the utlity in Visual Basic. It would be nice if there is utility in DLL form which I can use in Visual Basic. Does someone know. Please help me.
|
|
|
|
|
Can't you use built-in function InStr for this purpose? My guess is that its performance will match that of any regular implementation in C++.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi,
How do i close my application in InitDialog()
According to some checkings i want to terminate
my application..
I've tried EndDialog.. and DestroyWindow()
Please help
|
|
|
|
|
As i understand, your application is a dialog-based one?
rechi
|
|
|
|
|
Yes, my application is a Dialog Based MFC Application
|
|
|
|
|
Then, it should work with EndDialog.
I've created a test application and i've put:
EndDialog(0); // adding this!!!
return TRUE; // return TRUE unless you set the focus to a control
The application is stopping immediately.
rechi
|
|
|
|
|
You can call EndDialog, but don't use '0' as argument: use IDOK or IDCANCEL instead.
--
Alex Marbus
www.marbus.net
But then again, I could be wrong.
|
|
|
|
|
OK, OK...
0 was just a random value to see if EndDialog works fine.
rechi
|
|
|
|
|
You can use 0. You can use 13259. The argument to EndDialog is just the value that is returned to the application. IDOK and IDCANCEL are used so application can tell which control closed the dialog.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
I will sonn start a big Client/Server project and I have a question about backdoors (if you know what I mean?).
How to prevent them? It's a difficult question but is there any documentation on the net which the most common backdoors is?
I want to write a safety server with no leaks!
------------------------------------
Rickard Andersson, Suza Computing
ICQ#: 50302279
I'm from the winter country SWEDEN!
------------------------------------
|
|
|
|
|
ummmm it totally depends on what server platform you use
if you use iis there are known holes and fixes and whatnots
linux / unix the same
if you were to write your own say web server you could make it hack proof to a large extent a) because you know exactly what does what and b) cos the hackers dont know the system
its kinda a vague answer to a vague question
situations to avoid #37: "good morning ... how many sugars do you take in your coffee ... and what was your name again?"
coming soon: situations to avoid #38: "...and the dog was there too?"
|
|
|
|