|
Hi,
I am working on application which uses blowfish crypting algorithm. I would like to do application which doesn't just create the encoded file, but which create the .exe file with encoded file inside, that it can later decrypt itself after pluging in a password. Thanks.
I appreciate all links or advice.
Vojtech Havir
|
|
|
|
|
I'm interested, what would you use this for?
Ant.
|
|
|
|
|
|
Maybe so, the only reason I can think of is masking a trojan while writing a dropper program! Whichever way it sounds sinister to me!
Ant.
|
|
|
|
|
I didn't answer that about the business.... It was one of my friends here at my High school, who has seen the message. I'm using that for simple encrypting application, nothing ilegal.
|
|
|
|
|
OK, no problem. I was intregued that's all.
Ant.
|
|
|
|
|
ya, none of your business, you communist dog
|
|
|
|
|
ya, none of your business, you communist dog
|
|
|
|
|
It is not impolite to ask. If the information is considered confidential, you can always say that you cannot tell it. Shouting up like "None of your business, a$$h*le" will certainly decrease your possibilities of being helped, and hamper your creditability significally.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
|
Hi every1, lets say i have a Dialog based Win32 application and i want to save and retrive the dialog data (the values of the edit ctrls inside the dialog). Is there any way i can dump the whole dialog into some file and read it later and show it?
-Tareq
|
|
|
|
|
I personally would use INI file to do that...
|
|
|
|
|
If you are using MFC you can use CObject::Serialize()
Ant.
|
|
|
|
|
Which frormat is used for file DRAG to windows explorer ?
I need to create drag source for moving files by mouse to
Windows Explorer.
Which format is used for that?
Is ther sample of drag source for that puprose ?
thanks.
|
|
|
|
|
You need to create CF_HDROP, which is basically a list of file-names, and store it in your data-object.
This looks like a long but helpfull article
http://www.codeproject.com/shell/explorerdragdrop.asp.
|
|
|
|
|
Are not you gettting fun?
I need drag TO explorer, but not from - that is easy.
|
|
|
|
|
That's what I said.
declare a COleDataSource.
allocate memory for a CF_HDROP struct + a list of all your file names
hDrop = GlobalAlloc(GMEM_MOVEABLE, bufSize);
lock it:
pDrop = (DROPFILES*)GlobalLock(hDrop);
Fill it
Unlock and cache it in your data-source
<br />
GlobalUnlock(hgDrop);<br />
<br />
FORMATETC etc = {CF_HDROP, NULL, DVASPECT_CONTENT, -1, TYMED_HGLOBAL};<br />
m_dataSrc.CacheGlobalData ( CF_HDROP, hDrop, &etc );
now just call the data-source's DoDragDrop:
DROPEFFECT dwEffect = m_dataSrc.DoDragDrop();
and the magic will happen.
|
|
|
|
|
I think you typed a good code,
/thanks/
but some incomplete,
after filing that structure - in which function,
(which handler)
of which class, I can realize begin DRAG operation ?
there are many methods to do it, and some are
inconsistent with that way, that need be,as first, found.
Please point me which method you meant?
|
|
|
|
|
I'm abit confused, but here's my word:
You will usually want to begin your drag when someone starts dragging items off a list/tree/any-other control. these controls support drag-notifications (LVN_BEGINDRAG for example).
At that point, or at any other point you wish to begin your drag, declare your COleDataSource on the stack.
Then do the actions in the previous message (allocate, fill and cache your CF_HDROP data into the data-source). After this simply call dataObject.DoDragDrop() and your drag-drop will begin, when it ends dataObject.DoDragDrop will return.
Notice: the destination takes care of performing the operations themselves. So if you're dragging into explorer and drop with a 'copy', explorer will copy the files.
|
|
|
|
|
thanks you.
I only began to work with drag and drop,
so methods of use are important for me to note.
|
|
|
|
|
I've examined XP's behaviour and it seems as if it adds the 'A:' entry to the sendto menu manually, unlike all the other entries which are picked up from "\docs and setts\user\sendto..."...
Can someone elaborate on this ?
Do they store this somewhere in the registry ?
Do they add any other commands to the menu ?
p.s. they do check if an 'A:' exists before adding, i'll give you that, but still...
thanks
|
|
|
|
|
After a quick search of the registry, this seems to be in-built into the Microsoft SendTo Service, and thus is in-built for each OS that uses it. Removing this possibility seems impossible. Why it is implemented, I don't know. Perhaps to ensure that a malign virus cannot completely remove the possibility of moving files away from the computer ?
The default behaviour does not seem to add other commands to the menu, except from the 'A:' target.
If someone has more in-depth knowledge, it is appreciated.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Does this interest you as well ?
Do you know if it happens only in XP, or in other Oss' as well (doesn't happen in Windows-2000)...
|
|
|
|
|
I place interest on everything that happens in the Windows OS. I, however, do not know for sure if it is a built-in feature. You should try asking Microsoft directly, I'm sure they can provide a sure answer.
And no, I have not tried if this behaviour is repeatable on other Windows OS revisions.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Many programs are now showing a standard file selection dialogue box with the favourites control down the left hand side. How can one add this into a Visual C++ 6 application?
Thanks.
Andrew
|
|
|
|