<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Flawless Back and Forth Communication Between VBA and .exe in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/flawless-back-and-forth-communication-between-vba-and-exe/m-p/1356961#M42735</link>
    <description>I do not know what the exact process the huge VBA or your VB exe is, but as&lt;BR /&gt;
Frank pointed out, and I also feel that you may put your first priority on&lt;BR /&gt;
ActiveX dll. Why you need move some process that works well in AcadVBA into&lt;BR /&gt;
an VB exe? The only reason I can think of is that the process has little to&lt;BR /&gt;
do with Acad functionally and you want it to be performed outside Acad in a&lt;BR /&gt;
DIFFERENT process, such as you automate MS Word/Excel from your Acad VBA&lt;BR /&gt;
code. But from your description, it seems that you are trying to streamline&lt;BR /&gt;
a huge VBA project that works well in ACAD and the process has to be&lt;BR /&gt;
sychronized. So, probably you really want to is reorganize to VBA ocde into&lt;BR /&gt;
one or more ActiveX dll projects, not an ActiveX exe. Again, not knowing&lt;BR /&gt;
what exactly the process is, here is only my feel on your post.&lt;BR /&gt;
&lt;BR /&gt;
&lt;MATT_1CA&gt; wrote in message news:4877722@discussion.autodesk.com...&lt;BR /&gt;
I was wondering if a flawless communication between a&lt;BR /&gt;
VB .exe and a VBA program exists innately. Or if not can I do something to&lt;BR /&gt;
make it work.&lt;BR /&gt;
&lt;BR /&gt;
I have inherited a huge VBA program which works perfect -- and I am tasked&lt;BR /&gt;
to expand it.&lt;BR /&gt;
&lt;BR /&gt;
 At first I tried to write the whole thing in VB but the size is just so&lt;BR /&gt;
huge just building the GUI (straight copy from original code) took a whole&lt;BR /&gt;
day.  Then I have to change variable names to be understandable and uniform&lt;BR /&gt;
plus changing all control names for the same reason -- then injecting&lt;BR /&gt;
control arrays and making sure that I am not breaking anything -- its just&lt;BR /&gt;
too much headache. And in the end I gave up the plan.&lt;BR /&gt;
&lt;BR /&gt;
Now here is my new plan ..&lt;BR /&gt;
I am planning to do all expansions of its capability (existing VBA program)&lt;BR /&gt;
as a separate development using VB,  but want to make sure that synchronized&lt;BR /&gt;
throwing data back and forth of control  between VBA and VB is possible with&lt;BR /&gt;
VBA as the program which will start this "basketball" thing.&lt;BR /&gt;
&lt;BR /&gt;
The keyword is "synchronized"  I have no problem generating data either from&lt;BR /&gt;
VB or VBA and passing it anywhere I want --between the two  but I want&lt;BR /&gt;
complete control -- of program flow.&lt;BR /&gt;
&lt;BR /&gt;
If I had three lines of code for example where the first line would hide the&lt;BR /&gt;
vba form then second line to call the exe then third line to show again the&lt;BR /&gt;
vba form -- I do not want to have the third line executed before the second&lt;BR /&gt;
line is done.&lt;BR /&gt;
&lt;BR /&gt;
I tried to do this in my attempt to do VB  exe  and Lisp back and forth&lt;BR /&gt;
communication and my observation for a similar kind of example above is that&lt;BR /&gt;
the "traffic light" does not seem to be working  i.e.  when I call  lisp&lt;BR /&gt;
from the exe the exe would not wait until the lisp routine is done instead,&lt;BR /&gt;
as soon as it does the call for Lisp to do something from say line 2 of&lt;BR /&gt;
code -- it does not care if lisp is already done with what it is doing or&lt;BR /&gt;
not -- instead, what it will do is right away call the third line even&lt;BR /&gt;
before lisp can complete.&lt;BR /&gt;
&lt;BR /&gt;
Thank you so much for all the kind help you can give.&lt;BR /&gt;
&lt;BR /&gt;
Matt&lt;/MATT_1CA&gt;</description>
    <pubDate>Fri, 17 Jun 2005 15:37:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-06-17T15:37:39Z</dc:date>
    <item>
      <title>Flawless Back and Forth Communication Between VBA and .exe</title>
      <link>https://forums.autodesk.com/t5/vba-forum/flawless-back-and-forth-communication-between-vba-and-exe/m-p/1356959#M42733</link>
      <description>I was wondering if a flawless communication between a &lt;BR /&gt;
VB .exe and a VBA program exists innately. Or if not can I do something to make it work.&lt;BR /&gt;
&lt;BR /&gt;
I have inherited a huge VBA program which works perfect -- and I am tasked to expand it.&lt;BR /&gt;
&lt;BR /&gt;
 At first I tried to write the whole thing in VB but the size is just so huge just building the GUI (straight copy from original code) took a whole day.  Then I have to change variable names to be understandable and uniform plus changing all control names for the same reason -- then injecting control arrays and making sure that I am not breaking anything -- its just too much headache. And in the end I gave up the plan.&lt;BR /&gt;
&lt;BR /&gt;
Now here is my new plan ..&lt;BR /&gt;
I am planning to do all expansions of its capability (existing VBA program) as a separate development using VB,  but want to make sure that synchronized throwing data back and forth of control  between VBA and VB is possible with VBA as the program which will start this "basketball" thing. &lt;BR /&gt;
&lt;BR /&gt;
The keyword is "synchronized"  I have no problem generating data either from VB or VBA and passing it anywhere I want --between the two  but I want complete control -- of program flow.  &lt;BR /&gt;
&lt;BR /&gt;
If I had three lines of code for example where the first line would hide the vba form then second line to call the exe then third line to show again the vba form -- I do not want to have the third line executed before the second line is done.&lt;BR /&gt;
&lt;BR /&gt;
I tried to do this in my attempt to do VB  exe  and Lisp back and forth communication and my observation for a similar kind of example above is that  the "traffic light" does not seem to be working  i.e.  when I call  lisp from the exe the exe would not wait until the lisp routine is done instead, as soon as it does the call for Lisp to do something from say line 2 of code -- it does not care if lisp is already done with what it is doing or not -- instead, what it will do is right away call the third line even before lisp can complete. &lt;BR /&gt;
&lt;BR /&gt;
Thank you so much for all the kind help you can give.&lt;BR /&gt;
&lt;BR /&gt;
Matt</description>
      <pubDate>Fri, 17 Jun 2005 04:00:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/flawless-back-and-forth-communication-between-vba-and-exe/m-p/1356959#M42733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-17T04:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Flawless Back and Forth Communication Between VBA and .exe</title>
      <link>https://forums.autodesk.com/t5/vba-forum/flawless-back-and-forth-communication-between-vba-and-exe/m-p/1356960#M42734</link>
      <description>matt_1ca wrote:&lt;BR /&gt;
&amp;gt; I was wondering if a flawless communication between a&lt;BR /&gt;
&amp;gt; VB .exe and a VBA program exists innately. Or if not can I do&lt;BR /&gt;
&amp;gt; something to make it work.&lt;BR /&gt;
&lt;BR /&gt;
All communication between your EXE and AutoCAD should take place in an &lt;BR /&gt;
ActiveX DLL. You might even check to see if the EXE isabsolutely &lt;BR /&gt;
necessary.</description>
      <pubDate>Fri, 17 Jun 2005 05:52:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/flawless-back-and-forth-communication-between-vba-and-exe/m-p/1356960#M42734</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-17T05:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Flawless Back and Forth Communication Between VBA and .exe</title>
      <link>https://forums.autodesk.com/t5/vba-forum/flawless-back-and-forth-communication-between-vba-and-exe/m-p/1356961#M42735</link>
      <description>I do not know what the exact process the huge VBA or your VB exe is, but as&lt;BR /&gt;
Frank pointed out, and I also feel that you may put your first priority on&lt;BR /&gt;
ActiveX dll. Why you need move some process that works well in AcadVBA into&lt;BR /&gt;
an VB exe? The only reason I can think of is that the process has little to&lt;BR /&gt;
do with Acad functionally and you want it to be performed outside Acad in a&lt;BR /&gt;
DIFFERENT process, such as you automate MS Word/Excel from your Acad VBA&lt;BR /&gt;
code. But from your description, it seems that you are trying to streamline&lt;BR /&gt;
a huge VBA project that works well in ACAD and the process has to be&lt;BR /&gt;
sychronized. So, probably you really want to is reorganize to VBA ocde into&lt;BR /&gt;
one or more ActiveX dll projects, not an ActiveX exe. Again, not knowing&lt;BR /&gt;
what exactly the process is, here is only my feel on your post.&lt;BR /&gt;
&lt;BR /&gt;
&lt;MATT_1CA&gt; wrote in message news:4877722@discussion.autodesk.com...&lt;BR /&gt;
I was wondering if a flawless communication between a&lt;BR /&gt;
VB .exe and a VBA program exists innately. Or if not can I do something to&lt;BR /&gt;
make it work.&lt;BR /&gt;
&lt;BR /&gt;
I have inherited a huge VBA program which works perfect -- and I am tasked&lt;BR /&gt;
to expand it.&lt;BR /&gt;
&lt;BR /&gt;
 At first I tried to write the whole thing in VB but the size is just so&lt;BR /&gt;
huge just building the GUI (straight copy from original code) took a whole&lt;BR /&gt;
day.  Then I have to change variable names to be understandable and uniform&lt;BR /&gt;
plus changing all control names for the same reason -- then injecting&lt;BR /&gt;
control arrays and making sure that I am not breaking anything -- its just&lt;BR /&gt;
too much headache. And in the end I gave up the plan.&lt;BR /&gt;
&lt;BR /&gt;
Now here is my new plan ..&lt;BR /&gt;
I am planning to do all expansions of its capability (existing VBA program)&lt;BR /&gt;
as a separate development using VB,  but want to make sure that synchronized&lt;BR /&gt;
throwing data back and forth of control  between VBA and VB is possible with&lt;BR /&gt;
VBA as the program which will start this "basketball" thing.&lt;BR /&gt;
&lt;BR /&gt;
The keyword is "synchronized"  I have no problem generating data either from&lt;BR /&gt;
VB or VBA and passing it anywhere I want --between the two  but I want&lt;BR /&gt;
complete control -- of program flow.&lt;BR /&gt;
&lt;BR /&gt;
If I had three lines of code for example where the first line would hide the&lt;BR /&gt;
vba form then second line to call the exe then third line to show again the&lt;BR /&gt;
vba form -- I do not want to have the third line executed before the second&lt;BR /&gt;
line is done.&lt;BR /&gt;
&lt;BR /&gt;
I tried to do this in my attempt to do VB  exe  and Lisp back and forth&lt;BR /&gt;
communication and my observation for a similar kind of example above is that&lt;BR /&gt;
the "traffic light" does not seem to be working  i.e.  when I call  lisp&lt;BR /&gt;
from the exe the exe would not wait until the lisp routine is done instead,&lt;BR /&gt;
as soon as it does the call for Lisp to do something from say line 2 of&lt;BR /&gt;
code -- it does not care if lisp is already done with what it is doing or&lt;BR /&gt;
not -- instead, what it will do is right away call the third line even&lt;BR /&gt;
before lisp can complete.&lt;BR /&gt;
&lt;BR /&gt;
Thank you so much for all the kind help you can give.&lt;BR /&gt;
&lt;BR /&gt;
Matt&lt;/MATT_1CA&gt;</description>
      <pubDate>Fri, 17 Jun 2005 15:37:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/flawless-back-and-forth-communication-between-vba-and-exe/m-p/1356961#M42735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-17T15:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Flawless Back and Forth Communication Between VBA and .exe</title>
      <link>https://forums.autodesk.com/t5/vba-forum/flawless-back-and-forth-communication-between-vba-and-exe/m-p/1356962#M42736</link>
      <description>Thanks Frank,&lt;BR /&gt;
&lt;BR /&gt;
For months now, I have been planning to move to ActiveX DLL  because I know my program would be running faster than an exe if it were as you are suggesting -- and to think that it would also solve my current grief is another good reason.&lt;BR /&gt;
&lt;BR /&gt;
I do not know so much about how it would react in a network environment but I realize now that  it is something I can only postpone to my own disadvantage.&lt;BR /&gt;
&lt;BR /&gt;
Matt</description>
      <pubDate>Sat, 18 Jun 2005 07:35:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/flawless-back-and-forth-communication-between-vba-and-exe/m-p/1356962#M42736</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-18T07:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Flawless Back and Forth Communication Between VBA and .exe</title>
      <link>https://forums.autodesk.com/t5/vba-forum/flawless-back-and-forth-communication-between-vba-and-exe/m-p/1356963#M42737</link>
      <description>Thanks Norman,&lt;BR /&gt;
&lt;BR /&gt;
I will try to proceed with this long overdue  migration ASAP.&lt;BR /&gt;
&lt;BR /&gt;
Matt</description>
      <pubDate>Sat, 18 Jun 2005 07:43:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/flawless-back-and-forth-communication-between-vba-and-exe/m-p/1356963#M42737</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-18T07:43:20Z</dc:date>
    </item>
  </channel>
</rss>

