| |

VerySource

 Forgot password?
 Register
Search
Author: giggs3344

A dll call problem, please come to discuss it, it can be used in vb6.0, how to call it in vb.net! Let's take a look!

[Copy link]

0

Threads

9

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-12-1 18:45:01
| Show all posts
ByRef target As Byte

It may be changed to ByVal target as Integer, because the pointer must be passed
Reply

Use magic Report

3

Threads

8

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-12-1 19:00:01
| Show all posts
dim cinfo as keystruc
   with keystruc
       .cardtype=1
       .sdate(0)=&H18
    ...............

The With keystruc here should be With cinfo, right?
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-12-1 19:15:01
| Show all posts
If you use parameter passing, you can use byte type arrays. Vb.net is very strange. If you want to return data, you can only use byte type arrays. When you use the long type under vb, it should be an integer type under vb.net. this is okay
Reply

Use magic Report

1

Threads

7

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-12-1 19:30:01
| Show all posts
Upstairs, my code is wrong, haha ​​with csinf! I'm still a little dizzy now! The declaration in vb6.0 is not easy to use in vb.net, and it involves a lot of changes, especially how to declare the array members of structure members as parameters is a big headache!
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list