hstangqk 发表于 2022-9-29 16:34:50

求教dll文件返回字节集的方法

本帖最后由 hstangqk 于 2022-9-29 16:37 编辑

想用火山写一个dll文件,里面封装一个加解密的功能,供易语言和火山调用,苦于找不到方法,用交换变量不行,想用申请内存的方式返回也不行,提供的那个内存填充,数据类型既然是字节,写指针值吧数据既然不能是字节集类,有点不知所措啊.请问下那里有这方面的教程或列子啊,如果用局部变量返回数据地址又怕返回后内部释放了,用共用变量又不支持多线程同时调用
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkMAAAGxCAYAAABhi7IUAAAgAElEQVR4nO3dW6xlx13n8f+xO5dOGudi7ACjEeNMtCdC2qKdRpGAmASkOEbEohURgRR8EDAtcVODBN1keIjNwCClz/CQFgxGPSPICXYiCJnONM7FQSTGSSAX223Ow5gjB6OIjINjxzYkQBJ3n3mwV7tO7X9V/WutWrdd34/U6r3XXpc6a1/Wb/+r1l4bi8ViTwAAACp12dgNAAAAGBNhCAAAVI0wBAAAqkYYAgAAVSMMAQCAqhGGAABA1QhDAACgaoQhAABQNcIQAACoGmEIAABUjTAEAACqRhgCAABVIwwBAICqEYYAAEDVCEMAAKBqB8ZugGa5XI7dBAAAUNDOzs7YTQiaZBgSEdnd3R27CdVZLBaj7/cptGFuprDPptCG2rDPp6d5TnhuVi0Wi7GbELV23WT333v/2E0AAAAzslZh6BPv+4Tc/9v3y90fuHvspgAAgJlYmzD0ifd9Qj73p5+Tb37FN8tDtz0kn/zAJ83LHj93vNU8luVy5pu6M2fORO8PKbXtM2fOqP9y1rEOuvzNJfZP6HnIfV4sbanh+bQYYp/X+F4qqe3+Yj/3Z7JjhnLc/e675XN/+jn59ld/uxx64pvk+QcPyoO3PSifOPdJ+d4bvye5/OkbT8vxc8fl9I2nO82Dp1nesMeOHWu1Xm250HR/Wk0fJO7f2txu9od/v2+p7dT0vAxlqH2uvc6sbahVs5+058DdZ9rn2rFjx4Kfd+hmdmHo03e/Tf7uCxvyfx+6TP7uCyK//J9/WP5m62/ky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AA5qeKMAQAABBS9an1AAAAhCEAAFA1whAAAKgaYQgAAFSNMAQAAKpGGAIAAFUjDAEAgKoRhgAAQNUIQwAAoGr/H0Qc2MWe8AJ5AAAAAElFTkSuQmCC

kamikaze 发表于 2022-9-29 21:04:13

截个图

Xelloss0618 发表于 2022-9-29 21:11:37



按照系统API的思路写吧,由调用方申请和释放内存
参考如上

hstangqk 发表于 2022-9-30 10:49:02

Xelloss0618 发表于 2022-9-29 21:11
按照系统API的思路写吧,由调用方申请和释放内存
参考如上

谢谢你,我要是看懂的话,这是调用两次吗?第一次取回长度,第二次才能取回数据

Xelloss0618 发表于 2022-9-30 13:33:57

hstangqk 发表于 2022-9-30 10:49
谢谢你,我要是看懂的话,这是调用两次吗?第一次取回长度,第二次才能取回数据 ...
是的,很多系统API都是这样的调用方式

server 发表于 2022-9-30 14:51:16

我有不同见解。
1/调用APIxxoo(buf,len)
2/直接返回 新的解密数据指针
3/返回的指针 前4个字节是数据长度,实际数据从第5个字节开始。
4/实际返回的内存长度=返回数据长度+4
5/再导出一个释放内存的方法。用于释放上面返回的指针。。

server 发表于 2022-9-30 14:53:30

预分配分内存 长度 可以奢侈点,是传入尺寸*2 ,这也比多一次加密过程,节约算力。或者保底多长。。

呵呵仙8 发表于 2022-10-3 17:26:14

dll如是想任何语言通用的话,只能申请内存,向里面写数据,如是EXE,DLL只需要火山自身一家调用的话,变量地址就可以还原取数据了.读指针处对象()就可以还原相关的类.
页: [1]
查看完整版本: 求教dll文件返回字节集的方法