|
Ok, I've tested this shareware and indeed it creates a separate IStorage in the Excel files I have tested.
But this program is useless :
- when it comes to signing a document, this separate storage makes it prone to erasure, or intentional cloneage. In other words, if someone wants to bypass or spoof the signatures, he just needs a 10-line tool that either destroys or clones this IStorage.
- when it comes to encrypting a document, it creates a totally separate document, which does not load anymore in Excel. This feature is thus nothing more relevant than a password-protected zip file.
sometimes it helps to look at the IL generated code
a MS guy on develop.com "answering" .NET issues
|
|
|
|
|
Hi
I gave you this link just to give an example that putting something inside Office files is reasonable, I don't mean that this program is good (actually it sucks, not only because of silly encrypting, I can give you more reasons why ), but I don't agree with you in one issue (about signing the doc in such way). Firstly show me the way of signing the doc that will be resistant to destroying the signature (teoretically it is possible but in this case it's not, if you don't agree I can elaborate my opinion). Secondly I don't see any sense in cloning the signatures. What would you do with such signature? Put in another document? I don't see your point (can you give some details?).
Greetings
Mariusz Popiolek
|
|
|
|
|
Mariusz Popiolek wrote:
Firstly show me the way of signing the doc that will be resistant to destroying the signature
Watermarking. (for instance in pictures).
Mariusz Popiolek wrote:
Secondly I don't see any sense in cloning the signatures
That's aimed at spoofing documents, just like if you would mimic the signature of your mum for any signed paper you had to return to people at school. Seriously, spoofing is a great business. I am looking forward such tools would be licensed by national public administrations or the like, I would make a lot of $$$.
sometimes it helps to look at the IL generated code
a MS guy on develop.com "answering" .NET issues
|
|
|
|
|
Hi
>Watermarking. (for instance in pictures).
Ok, but what if I will destroy picture? Seriously I mean that there is always possibility that someone will destroy the signature. The one thing we can is that we can find out that someone has destroyed or messed in the signature (for example digital signature with message recovery)
>just like if you would mimic the signature of your mum for any signed paper >you had to return to people at school.
Can you forge digital signature? I bet you won't (and probably nobody at the moment). Of course I mean "modern" digital signature. For example we take some document, put it through some hash function (for example SHA1), encode result of hash function using RSA (with private key of the signer) and put together encoded hash and document. Now everybody can verify the signature, just by making hash from document, decoding encoded hash (with public key of the signer) and comparing this two hashes. If they are different signature is forged. It was simple example, real algorithms are more complex.
Greetings
Mariusz Popiolek
|
|
|
|
|
I need to implement a COM object (using ATL) which will have a property that is a collection. Anybody got a tutorial of how to do that?
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
http://www.codeproject.com/com/
Search for Dunn and u have bunch of good tutorials!
About ur property u can do it then quite easily
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Other than vaguely remembering this article[^], i have no clue.
Shog9
------
If you really what to get shitfacde tell a crowded bar that is is yourt borthday and hife your wallet. you ka will many more friends.
- David Wulff, Brithday selebrations, 9/19/02
|
|
|
|
|
Your property should return a SAFEARRAY containing the collection of data. Check out KB article Q207931[^] which has some sample code. (It's written for VB folks, but should be applicable to you as well.)
--Mike--
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
I know that the size of enum in VC++ is by default "integral". So the following structure is 4 bytes (or sizeof(int)). I also know that the size will scale based upon the value of said enumeration. However, I need my enum to be 'short' in order to read some binary data into a much larger structure that contains many of these enums? How can I cahnge the size?
typedef enum _ALARM_TYPE
{
LATCHING = 0,
SELF_CLEARING
} ALARM_TYPE;
Ryan Baillargeon
Software Specialist
Fuel Cell Technologies Inc.
|
|
|
|
|
Got It, Nevermind....
#pragma enum(2)
Ryan Baillargeon
Software Specialist
Fuel Cell Technologies Inc.
|
|
|
|
|
nope, I was wrong.. still looking
that was under AIX
Ryan Baillargeon
Software Specialist
Fuel Cell Technologies Inc.
|
|
|
|
|
for everyones benefit I am going to post that I have found you cannot change the size of enum under VC++. In some other environments you can.
Ryan Baillargeon
Software Specialist
Fuel Cell Technologies Inc.
|
|
|
|
|
Can you do the conversion yourself? By that I mean, if you want the enum to fit into a short then convert it to a short and read/write that. You may need to do some funky casting and/or memcpy'ing, but the effects will be the same and will work on other compilers too
|
|
|
|
|
not mfc
thanks
|
|
|
|
|
SendMessage(
(HWND) hWnd,
BM_SETCHECK,
(WPARAM) wParam;
(LPARAM) lParam;
); For wParam use BST_CHECKED, BST_UNCHECKED or
BST_INDETERMINATE.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
SendMessage is Great but there is a macro which do the same
BOOL CheckDlgButton(
HWND hDlg, // handle to dialog box
int nIDButton, // button identifier
UINT uCheck // check state
);
|
|
|
|
|
You're right, CheckDlgButton() is easier to use.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I am looking at MS HTML Help and cant quite figure out what I need to do and how to do it. Going around in circles.... plus it looks like I need to know HTML - I dont. Any suggestions on the easiest way to write help docs? I do want the tabbed sort of help file window to pop up with Index, Contents etc (like you get with the MSDN). Help!
Appreciate your help,
ns
|
|
|
|
|
You only need to know a handful of tags to write most of your documentation. Imho, a great book on HTML Help is this one[^].
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
The TOC mentions win 3.1 and win95 an awful lot - no whisper of win98 or win2K. DO you think its up to date? Have you used it? Has the workshop not changed since the book was written? I dont know if you can answer these questions...but before I order it get as much info as I can...
Appreciate your help,
ns
|
|
|
|
|
Works great for Win2K! I'm using it to write the .chm for the next version of one of my products.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Terrific. Now I know who to bother when I (eventually) get started on the process. Thanks a million for the link to the book. I
'lll just buy it and not wait for official channels to order it.....I feel more confident now knowing that soon the mists of the concept will be lifted (I hope!)
|
|
|
|
|
My books on its way - had to buy it used - its out of print. Have fun!
|
|
|
|
|
Keeeeeeeeeewl!
I have to show you my GPS hack one of these days. I'm using it to track trucks whizzing past in scenic Illinois! (Man with too much time on his hands )
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Btw, the help compiler included in the book is circa 1912. Be sure to download the latest version and docs from here[^]. You can still use the same book.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|