|
Here's something worth considering. What makes you think that I know how to write a worm ? Not to mention, if I did know, why would I tell someone I don't know, unless I don't care if they use the information for destructive purposes. What you're asking is basically dodgy, no matter which way you look at it.
I'd suggest you need to inhabit some rather shadier places if you want to know how to write destructive code, even if don't intend to use it destructively.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Lets assume for a moment that what you claim is true; that you are only interested in learning this form of coding and no malicious harm intended.
The fact of the matter is that there is no way of creating a 'harm-free' and 'cautious' worm. Its main purpose is to spread. It may not be created to create havoc, but that might very well be the eventual effect. I recall a few self-replicating 'worms' a few years back that brought a few servers down because of this, even though it did nothing destructive in itself.
At worst it will cause serious damage, but it will at least be a very irritating problem for others that are 'infected'. And there is the small thing that you may very well be prosecuted in certain countries if your 'worm' is very successful!
I think it is very clear what others have implied (by their nature of the replies), that what you are considering is a bad idea. I think this is one programming concept that should be kept in the text book only.
I Dream of Absolute Zero
|
|
|
|
|
I HAVE A LITTLE WORM. HIS NAME IS ALBERT, HE LIVES IN MY GARDEN, I CAN SEND U SOME PICS IF U WANT
|
|
|
|
|
How to refresh Explorer window after Registry key changed?
I want to hide the files that have hide attribe so I set
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Hidden" to 0
But that doesn't affect the current opened explorer window. I have to use "refresh" menu (not F5 button) to command to hide the hidden files.
How to tell the current opened explorer window to hide these hidden files after I set the registry key?
Thanks a lot!
Let's roll!
|
|
|
|
|
|
Anyone know of a workaround to force the Visual Studio 6.0 editor to Copy and Paste OEM font characters correctly without translating them through ANSI?
(It correctly saves the text using CF_OEMTEXT flag, as it can be safely pasted into other editors like Codewright, but it apparently decides to convert it when it is pasted - an annoying "feature" that no other editor seems to display.)
gjr
|
|
|
|
|
From what I'm able to find, this can't be done. As a result, I copy into notepad and then paste into VS
Cheers,
Tom Archer - Archer Consulting Group
"Eat your brussel sprouts, Junior. There are starving Chinese children American programmers that would kill for that food!"
|
|
|
|
|
Thanks for the comment. I find that I have to use another editor like notepad or codewright to even do the pasting as it seems VS changes the chars during the paste. I guess one (awful) way might be to patch the VS editor to paste using the OEMCHARS flag as I suspect it is handled in one call. i was hoping there might be some obscure setting I was unaware of that would avoid the problem.
gjr
|
|
|
|
|
I need to place a ListCtrl inside a RichEdit document (MDI). How do I do this? Also how do I setup event messages (double clicking on an item) for the control?
|
|
|
|
|
this document can help:
http://codeproject.com/listctrl/listctrldemo.asp
|
|
|
|
|
I actually need to know how to place the control in a RichEdit Document. I understand how to place it in a dialog but not inside a doc/view.
|
|
|
|
|
Hi Guys,
I would like to retrive the Unique ID of my computer in VC++ code. Can any one can help with the sample function to retrive the unique ID.
Thank You.
Regards
.
|
|
|
|
|
What Unique ID?
-- Rocky Dean Pulley
|
|
|
|
|
I assume you're talking about the SID.
Check out the NewSID program by Mark Russinovich over at SysInternals. It comes with the source code and should tell you way more than you were wanting to know.
Excerpt from the article:
A computer's SID is stored in the Registry's SECURITY hive under SECURITY\SAM\Domains\Account. This key has a value named F and a value named V. The V value is a binary value that has the computer SID embedded within it at the end of its data.
|
|
|
|
|
Does anyone know if visual c++ 6 MFC will let me insert jpg files. I have found in the properties box of a picture object Bitmap, Icon, etc. I tried importing a jpg, but did not seem to work.
Regards
Paul
|
|
|
|
|
What do you want to do with the jpg ? GDI+ will allow you to read and write JPGs, as well as draw to them/draw them to a Graphics object ( which you can build from a HDC )
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
And if you do not want to have to distribute the GDI+ library (1661 KB) you can use the IPicture interface to read and display jpgs. Although I do not think IPicture can be used to save jpgs.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
|
|
Hi,
I'm developing a toolbar for the taskbar and it works fine in windows Xp. Now I have to make it work in Win98. I added the unicode layer for win98 and tested it... But I just crashed... I discover that the crashed are in API calls like CreateWindow and MoveWindow... (Those calls works well in WinXP, all the parameters seems to be ok, etc).
Other interesting thing is that not all calls crashes. Some does, but some does not. But it's not random.
For example the MoveWindow call just crash with something like:
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
And the CreateWindow crash with (Sorry, I have the message in spanish, but its a stack error at module ...):
REGSVR32 provocó un error de pila en el módulo KERNEL32.DLL de 0167:bff724c1.
Please, if any one has a hint, I'm really stuck with this.
|
|
|
|
|
Hello,
I want to get direct3d to draw on my desktop background behind my icons, etc. Any idea of how I could go about this. I know how to do it with directdraw but apparently it is not being updated anymore so I want to do it with direct 3d. Thanks.
|
|
|
|
|
AFAIK, DirectDraw just got assimilated into D3D.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I add a CListCtrl control to my dialog app. I want to edit its sub item, so I add handler for LVN_BEGINLABELEDIT. In the function, I have the following:
.....
CEdit *pEdit = my_listCtrl.GetEditControl();
if ( pEdit )
{
pEdit->SetWindowPos(&wndTop, subRect.left, subRect.top, subRect.Width(), subRect.Height(),
SWP_NOZORDER | SWP_NOSENDCHANGING);
}
....
but although I specified SWP_NOSENDCHANGING, windows still put the edit control over the LABEL area of the list control.
How can I position the edit control at the position specified?
Thank you for any help!
|
|
|
|
|
Hey all, I was wondering how I might go about mixing a C++ dll with C# windows form.
I am currently creating a C++ dll to use within another application that allows scripts to call into dlls, for a fun/learning project. Though I have been able to figure out how to perform simple function calls, I am a bit clueless as to how I might go adding GUI components into the mix. In the end I would like to able to add a toolbar to the outside application. Ideally, because it is so simple to create windows forms in C#, I would like to be able to create the toolbar in C# and have it call my dll functions. Though I have done some searching, I am a bit lost on where to even begin.
As a first step, I would like to write a simple function in my C++ dll that creates a simple HelloWorld windows form (script calls dll's helloWorld -> dll creates C# form). Though I can do either by itself, I am not sure how to call the form from within the dll, as well as how to go about having C# and C++ in the same visual studio project. If anyone could point me in the right direction, I would be very thankful.
|
|
|
|
|
I'm trying to write an application that, upon startup or resizing, will resize one other, or several other windows (So that my application shares the screen on the right.) I also need to resize the displayed programs when I close or minimize my application. For that matter, where do I specify where my window is placed on startup?
|
|
|
|