Home > Software engineering >  C # call VB development of DLL can multi-thread calls
C # call VB development of DLL can multi-thread calls

Time:09-17

VB development of the DLL in c # can call, this is known to all,
I have an idea I don't know will work? For a great god,
Can use c # to do a multi-threaded shell, to invoke the VB development of DLL method, to implement multithreaded?

Background: there is a written in VB system before, now want to do some optimization (want to implement multithreaded), all don't want to develop,
So I want to can be combined with c # to achieve,

CodePudding user response:

Great god? Give some advice.

CodePudding user response:

VB itself is single-threaded, DLL you run in a multi-threaded,
The final results or want to call to the single-threaded applications,
So the meaning is not big, just can share some workload,
To the DLL program is only for very specific work,
By this time instead of using VB, the work is not as good as your c # all package to calculate,

CodePudding user response:

Thanks for great god above Suggestions!
First, you mean I the idea is feasible, right?
Second, can share some workload, does that mean can improve the running speed?
My starting point is to improve the execution speed, at present is to use VB to cycle run, often hundreds of times, circulation internal mainly are some of the database to add and delete,
So want to loop into more threads to run.

CodePudding user response:

I think it is not necessary,
All sorts of VB multithreading, is sacrifice efficiency or stability,
With such VB return not equal to don't use VB to calculate,
The benefits of using VB to do procedure is small, fast development,
Now that c # can do, I think it's simply a c # well, there's no need to two programs lead to guide,
The advantage of the VB is need not to think about the problem of the runtime, ran away directly, but there are c # runtime,
At this time using VB to insert another leg is very boring,

CodePudding user response:

Upstairs a lot are all don't know much about, who say vb6 can't use multithreading ah, not only said level needs to be improved

CodePudding user response:

VB6, can use unit thread, then can pass a pointer to invoke the unit thread functions and data,

CodePudding user response:

If direct multithreaded DLL call VB6 wrote, should not very stable, is likely to collapse, so...
Suggest using c # to write it again, so use multithreading should be no problem.
  • Related