Function jiqi ( X , Y : integer;code:PChar ) : integer ; stdcall ;
假设其中参数值为:x:=10;
y:=20;
code:= #$03#$D0#$8B#$C2#$C3#$F7#$EA#$C3;如何写vb赋值及调用代码呢?
谢谢!
假设其中参数值为:x:=10;
y:=20;
code:= #$03#$D0#$8B#$C2#$C3#$F7#$EA#$C3;如何写vb赋值及调用代码呢?
谢谢!
declare function jiqi lib "dll file name" (byval x as long, byval y as long, byval code as string) as longsub test()
dim s as string
s=#$03#$D0#$8B#$C2#$C3#$F7#$EA#$C3
debug.pring jiqi(10, 20, s)
end sub
这句语法错误,如何处理?
debug.pring jiqi(10, 20, s)
code:= #$03#$D0#$8B#$C2#$C3#$F7#$EA#$C3;
而不是
code:= '#$03#$D0#$8B#$C2#$C3#$F7#$EA#$C3';这两个语句完全是两个概念。
第一个语句在vb中如何实现呢?