Results 1 to 4 of 4

Thread: Passing an array as argument between 2 executables

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2014
    Posts
    52

    Passing an array as argument between 2 executables

    Hello,

    I have 2 vbp projects (Project1 and Project2)

    I need Project1 to load a form pertaining to Project2 while passing to it an array Arr as argument produced by Project1

    Project1 is latter compiled to Exe

    What will be the best way (if any) to do that?

    Thanks
    Avi

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Passing an array as argument between 2 executables

    Search the forum for keywords: interprocess communication and/or IPC. There are several solutions ranging from the simple, like using a temporary file, and more complex like subclassing and using WM_COPYDATA
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: Passing an array as argument between 2 executables

    I'd back up and ask myself why there are two Projects at all. Aside from that I can't decode statements like "I need Project1 to load a form pertaining to Project2..."

    "Array" doesn't tell us much either aside from whatever it is it can't be passed as command line parameters. For all we know you have an array of complex objects.

  4. #4

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width