CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 1999
    Posts
    6

    running VB script from a c/C++ program

    Please write me how to run VB Script from a C++ or C program.


  2. #2
    Join Date
    May 1999
    Location
    Southern California
    Posts
    12,266

    Re: running VB script from a c/C++ program

    Something like:


    HINSTANCE hi;
    CString Msg;
    hi = ShellExecute(m_hWnd, "open", lpszCmdLine, NULL, NULL, SW_SHOWNORMAL);
    if ((UINT) hi < 32)
    Msg.Format("ShellExecute failed; error code = %X", hi);
    else
    Msg.Format("Instance handle for %s is %X", lpszCmdLine, hi);
    MessageBox(Msg);





    "Signature":
    My web site is Simple Samples.
    C# Corner Editor

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

Featured