|
-
Feb 11th, 2020, 06:06 PM
#4
Re: Aliasing in VB6
 Originally Posted by Elroy
Hi xiaoyao,
Thanks for the read, but I'm not really interested in any multi-threading, and/or all the marshaling that comes with "sharing" data. Also, this is a portable (single EXE, no installation) project.
What I want is more a matter of "code convenience" than anything else. Once one of my option buttons is selected, there are several changes that might be made to a specific array within my UDT. I just want a "quick" way to make the changes to the specific array (the one specified by the selected option button).
There are several ways to skin this cat ... but I just like the way I've got my code organized. My UDT is 17 well-named dynamic arrays, and I'd like to keep it that way. I'd just like to take any one of those though, and alias it into a "common" variable for purposes of editing.
(One might suggest copying the specified array, making changes, and then put it back once the changes are done. However, there's lots of DirectX going on in this project, and I'd like all the changes to be dynamic on the DirectX viewport. I can re-render whenever changes are made. That's the easy part.)
create 17 multi-threading for single EXE, I think this is the best approach.
Each array has a dedicated thread management, plus 17 signals, the data automatically stops after processing
Process synchronization --- semaphore mechanism A very effective process synchronization mechanism. 1. Integer semaphore Integer ... How to make the program not work in VB? Forum Questions about WaitForSingleObject semaphore ...
chinese:进程同步---信号量机制 一种非常有效的进程同步机制。1.整型信号量 整型信... 在VB中怎么让程序不工作空等待。 论坛 关于WaitForSingleObject信号量的问题...
Last edited by xiaoyao; Feb 11th, 2020 at 06:10 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|