Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #7747 > unrolled thread

Integrity of a file

Started bymarcosmisanchez@gmail.com
First post2015-02-19 03:37 -0800
Last post2015-02-26 18:47 +0000
Articles 6 — 4 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  Integrity of a file marcosmisanchez@gmail.com - 2015-02-19 03:37 -0800
    Re: Integrity of a file nicktekhne@googlemail.com - 2015-02-19 04:36 -0800
      Re: Integrity of a file marcosmisanchez@gmail.com - 2015-02-19 09:16 -0800
        Re: Integrity of a file nicktekhne@googlemail.com - 2015-02-19 09:35 -0800
          Re: Integrity of a file Paulo Oliveira <paulo@clipinfor.com> - 2015-02-26 09:47 -0800
    Re: Integrity of a file Carlos Rocha <NoWay@NoWhere.com> - 2015-02-26 18:47 +0000

#7747 — Integrity of a file

Frommarcosmisanchez@gmail.com
Date2015-02-19 03:37 -0800
SubjectIntegrity of a file
Message-ID<95518122-cca8-4bf5-8f6e-5b572169c871@googlegroups.com>
Hello! At first, sorry for my poor English.

I am developing a program in which export a file which is uploaded to the web and downloaded elsewhere, importing it with the same program.
My need is to check through my program VO, that file is the same as originally genre and did not suffer alterations.
According investigate what, this is done through a hash, or a checksum, but can not find how to do it in VO.
If I am wrong or suggest another solution, it is welcome correction.
Really appreciate it your help

Marcos

[toc] | [next] | [standalone]


#7748

Fromnicktekhne@googlemail.com
Date2015-02-19 04:36 -0800
Message-ID<e160e9a4-af2a-4b15-b903-3bd0b633be7c@googlegroups.com>
In reply to#7747
Hi Marcos,

This will do what you need

http://www.xstandard.com/en/documentation/xmd5/

LOCAL oCheck AS OBJECT   
LOCAL cCheck AS STRING  
 	
oCheck:=OleAutoObject{"XStandard.MD5.1"}
cCheck:=oCheck:GetCheckSumFromFile(cFile)

HTH

Nick


On Thursday, February 19, 2015 at 11:37:56 AM UTC, marcosm...@gmail.com wrote:
> Hello! At first, sorry for my poor English.
> 
> I am developing a program in which export a file which is uploaded to the web and downloaded elsewhere, importing it with the same program.
> My need is to check through my program VO, that file is the same as originally genre and did not suffer alterations.
> According investigate what, this is done through a hash, or a checksum, but can not find how to do it in VO.
> If I am wrong or suggest another solution, it is welcome correction.
> Really appreciate it your help
> 
> Marcos

[toc] | [prev] | [next] | [standalone]


#7751

Frommarcosmisanchez@gmail.com
Date2015-02-19 09:16 -0800
Message-ID<53a19b26-d19b-4f09-9b11-023b83d9d27c@googlegroups.com>
In reply to#7748
Many thanks Nick. I'll try if it works and comment on the result.
I take the opportunity to consult you to you or who knows: Is there a way to include the .dll as part of the program without registering it manually on each computer that is installed?

Marcos

[toc] | [prev] | [next] | [standalone]


#7752

Fromnicktekhne@googlemail.com
Date2015-02-19 09:35 -0800
Message-ID<d829d62c-ae71-4963-a3be-d6b6250fa2b0@googlegroups.com>
In reply to#7751
Hi Marco,

You need to use a manifest file. The following will do it for the XMD5.dll file... you can find how to use a manifest file in other posts here.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">

<assemblyIdentity name="MYEXEFILE.EXE" version="10.0.0.1" type="win32" processorArchitecture="*"/>

<file name="xmd5.dll">
    <typelib tlbid="{58c12974-2da8-4276-8bff-0b0815dc33e7}" version="1.0" helpdir="" resourceid="0" flags="HASDISKIMAGE" />
    <comClass clsid="{6434afda-bd68-492f-9a46-58e0160bde6b}" threadingModel="Apartment" tlbid="{58c12974-2da8-4276-8bff-0b0815dc33e7}" progid="XStandard.MD5.1" description="MD5 Class" />
</file>

</assembly>

Nick

On Thursday, February 19, 2015 at 5:16:37 PM UTC, marcosm...@gmail.com wrote:
> Many thanks Nick. I'll try if it works and comment on the result.
> I take the opportunity to consult you to you or who knows: Is there a way to include the .dll as part of the program without registering it manually on each computer that is installed?
> 
> Marcos

[toc] | [prev] | [next] | [standalone]


#7805

FromPaulo Oliveira <paulo@clipinfor.com>
Date2015-02-26 09:47 -0800
Message-ID<d6819849-c349-4efc-8581-ee05489a9923@googlegroups.com>
In reply to#7752
quinta-feira, 19 de Fevereiro de 2015 às 17:35:02 UTC, nickt...@googlemail.com escreveu:
> Hi Marco,
> 
> You need to use a manifest file. The following will do it for the XMD5.dll file... you can find how to use a manifest file in other posts here.
> 
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
> 
> <assemblyIdentity name="MYEXEFILE.EXE" version="10.0.0.1" type="win32" processorArchitecture="*"/>
> 
> <file name="xmd5.dll">
>     <typelib tlbid="{58c12974-2da8-4276-8bff-0b0815dc33e7}" version="1.0" helpdir="" resourceid="0" flags="HASDISKIMAGE" />
>     <comClass clsid="{6434afda-bd68-492f-9a46-58e0160bde6b}" threadingModel="Apartment" tlbid="{58c12974-2da8-4276-8bff-0b0815dc33e7}" progid="XStandard.MD5.1" description="MD5 Class" />
> </file>
> 
> </assembly>
> 
> Nick
> 
> On Thursday, February 19, 2015 at 5:16:37 PM UTC, marcosm...@gmail.com wrote:
> > Many thanks Nick. I'll try if it works and comment on the result.
> > I take the opportunity to consult you to you or who knows: Is there a way to include the .dll as part of the program without registering it manually on each computer that is installed?
> > 
> > Marcos

Hi Nick,

I can include the code in cctl6.man file?
How?

Paulo Oliveira

[toc] | [prev] | [next] | [standalone]


#7806

FromCarlos Rocha <NoWay@NoWhere.com>
Date2015-02-26 18:47 +0000
Message-ID<mcnpm5$kdh$1@dont-email.me>
In reply to#7747
Hi Marcos,

You can use the XStandard MD5 component and the manifest approach if 
you like, but I use my own md5.dll. As a bonus you are able to "md5" a 
string in memory too.

You can get it in the following link, along with the needed VO code.
http://www.doossier.com/files/md5.zip

Carlos


> Hello! At first, sorry for my poor English.
>
> I am developing a program in which export a file which is uploaded to the web 
> and downloaded elsewhere, importing it with the same program. My need is to 
> check through my program VO, that file is the same as originally genre and 
> did not suffer alterations. According investigate what, this is done through 
> a hash, or a checksum, but can not find how to do it in VO. If I am wrong or 
> suggest another solution, it is welcome correction. Really appreciate it your 
> help
>
> Marcos

-- 
Carlos Rocha

---
Este e-mail foi verificado em termos de vírus pelo software antivírus Avast.
http://www.avast.com

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web