I am creating a program with Visual Basic Script files with C++.
-
I am creating a program where if an action occurs then a message box through visual basic script (.vbs). I plan to do I through a fstream file.
if (statement)
{
open fstream file // I know that's not how you do it
}And what is your question?
-
And what is your question?
-
Probably, yes. What program/app should execute this VB script?
-
I am creating a program where if an action occurs then a message box through visual basic script (.vbs). I plan to do I through a fstream file.
if (statement)
{
open fstream file // I know that's not how you do it
}Why on earth would you want to use a VBScript from C++ to show a messagebox?
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak -
Probably, yes. What program/app should execute this VB script?
-
VS is not to "execute", it's just to design! Please, explain more carefully what you are going to do with your VB script. And what for?
-
Have a look at [ShellExecute](https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellexecutea) or/and [ShellExecuteEx function (shellapi.h) - Win32 apps | Microsoft Docs](https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellexecuteexa)