LB Booster
« Encryption »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:26am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Encryption  (Read 91 times)
PabloSl
New Member
Image


member is offline

Avatar




PM


Posts: 4
xx Encryption
« Thread started on: Mar 10th, 2018, 8:38pm »

Hello,

I am trying to use this code in LBB:

https://github.com/iversc/lb-cryptoapi-wrapper/blob/master/crypto.bas

from this thread:

http://libertybasic.conforums.com/index.cgi?board=general&action=display&num=1520645028&start=0#1520697218

I get Error, Duplicate structure with ambiguous member 'pDataLen'
at line 554 in Function CryptGetHashParam
at line 539 in Function CryptGetHashValue

Kind regards,

- Pablo
User IP Logged

RobM
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 91
xx Re: Encryption
« Reply #1 on: Mar 11th, 2018, 05:40am »

This is caused by have two structs with the same name but different data types. Change one of the names and it should work.

struct a, pDataLen as ulong
struct a, pDataLen as long
« Last Edit: Mar 11th, 2018, 05:42am by RobM » User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Encryption
« Reply #2 on: Mar 11th, 2018, 11:30am »

on Mar 11th, 2018, 05:40am, RobM wrote:
This is caused by have two structs with the same name but different data types. Change one of the names and it should work.

Indeed. Two such similar structures, with the same name and the same member name, but one being unsigned and the other signed, seems unlikely to be deliberate:

Code:
struct a, pDataLen as ulong
struct a, pDataLen as long 

The original author should probably be informed of the anomaly in case it is a mistake.

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls