PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WinDev and .Net assemblies
WinDev and .Net assemblies
Iniciado por guest, 12,feb. 2015 07:55 - 1 respuesta
Publicado el 12,febrero 2015 - 07:55
Has someone experience? Why asseblies are incorporated in project but classes are not available?

Please could you please to explain me behavior. Before wrinting this post I have 2 assemblies are included into the project and Igot error that someone type is not found. Ok. I've removed links to .Net assemblies and now project is compiled w/o error! I.e. there are not items in ".Net assemblies" branch of project tree but project is compiled! How is it possible? Have WinDev problem with using .Net?
Publicado el 12,febrero 2015 - 12:53
hello

I've done some work on .Net with windev, I was not easy the first time,
because you have to understand as .net works and how to use since windev,
often not totally easy conversion.

To understand and be able to do the conversion had to install visual studio
debug and perform well go windev performing the conversion. (was not easy).

You step a fragment as I had to instantiate a tripedes encryption from the
net, for use of third party software.

1) You need to import your .Net project from WorkShop -> .Net -> Use a .Net
assembly in esta proyect (that you must generate the corresponding classes
according to the libraries you imported .Net)

2) To use the classes you need to instantiate these classes to be used.

Hope you serve my small contribution.

regards
Victor


********************************************************************************************************************

PROCEDURE TripleDes_Encryp(sMenhl7 is string)

//IV is Boolean
sMENSHL7 is string =sMenhl7


//arrKey is ARRAY DYNAMIC OF int
arrKey is array [24] of 'Boolean'


//arrMensajes is ARRAY DYNAMIC OF int
arrMensajes is array dynamic of 'Boolean'

arrKey = TripleDESUtil("1234567890123456ABCDEFGH")


arrMensajes = TripleDESUtil(sMENSHL7)

pclCryptoProvider is TO TripleDESCryptoServiceProvider dynamic = new
TripleDESCryptoServiceProvider()


pclCryptoProvider.KeySize = 192
pclCryptoProvider.Mode = CipherMode.ECB
pclCryptoProvider.Padding = PaddingMode.Zeros
arrIV is array [8] of 'Boolean' = pclCryptoProvider.IV

vCriptoTransform is Variant =
pclCryptoProvider.CreateEncryptor(arrKey,arrIV)

pclMemoryStream is MemoryStream dynamic= new MemoryStream()
pclCryptoStream is CryptoStream dynamic = new
CryptoStream(pclMemoryStream,vCriptoTransform, CryptoStreamMode.Write)
pclCryptoStream.Write(arrMensajes,0,ArrayCount(arrMensajes))


pclCryptoStream.FlushFinalBlock()
arrVector is array dynamic of 'Boolean' = pclMemoryStream.ToArray()

//sArrVector is string = pclMemoryStream.ToArray()
sCadena is string = Convert.ToBase64String(arrVector)


RESULT sCadena

********************************************************************************************************************


"Arekusei Timakobu" escribió en el mensaje de
noticias:2015156933e305f806e6cf2fe7dd1e5222e1@news.pcsoft.fr...

Has someone experience? Why asseblies are incorporated in project but
classes are not available?

Please could you please to explain me behavior. Before wrinting this post I
have 2 assemblies are included into the project and Igot error that someone
type is not found. Ok. I've removed links to .Net assemblies and now project
is compiled w/o error! I.e. there are not items in ".Net assemblies" branch
of project tree but project is compiled! How is it possible? Have WinDev
problem with using .Net?