I am not a C++ programmer, I do my thing with VFP. However, I want to create an EXE in C++ that would run a VBscript ('install.vbs'). That script is meant to modify a registry before I run my program (in VFP). My program EXE is called from the script. I don't wish to have my user starting the program from a script that can easily be modified by a user. Hence, I would love to have the VBscript embedded in the C++ EXE, and not to exist as a file.
Also I need the EXE to associate itself with an icon.
I hve generated a blank Project in C++ with the AppWizard and have included my icon and VBscript files in the resource folder in the Project (C++). All I need is the code that would run the Script and associate the EXE with my icon.
Here is the WinMain module.
I don't know where the association with my icon file is being made
Also I need the EXE to associate itself with an icon.
I hve generated a blank Project in C++ with the AppWizard and have included my icon and VBscript files in the resource folder in the Project (C++). All I need is the code that would run the Script and associate the EXE with my icon.
Here is the WinMain module.
Code:
// Install.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// The code to run the Vbscript to appear below.
return 0;
}
I don't know where the association with my icon file is being made