VB: Private Declare Function FirstMethod Lib "C:\Premalatha\C++\17_01_06-ACDB_CON_DLL\Debug\ACDB_CON.dll" (ByVal ArgCount As Integer, ByVal Args0 As String, ByVal Args1 As String, ByVal Args2 As String, ByVal Args3 As String) As Boolean C++: #include #include "acdbcon.hpp" #include using namespace std; bool __stdcall FirstMethod(int argc,char argv0[],char argv1[],char argv2[],char argv3[]) { char *argv[4]; argv[0]=argv0; argv[1]=argv1; argv[2]=argv2; argv[3]=argv3; MessageBox(NULL,argv[0],"Filename",NULL); MessageBox(NULL,argv[1],"Input",NULL); MessageBox(NULL,argv[2],"Output",NULL); MessageBox(NULL,argv[3],"Choice",NULL); CAcdbCon Con; Con.ACDBmain(argc,argv); return true; } ----------------------------------------------------------------------------- void CAcdbCon::ACDBmain(int argc, char * argv[]) //JLF 10/30/02 { MessageBox(NULL,"Con:ACDBMain","Func",NULL); //***************** NOTICE NOTICE NOTICE ***************************** // Always update Software version and the date the changes were made // for ANY changes made to the tool. For minor changes and fixes, // update the decimal value, whereas major revisions update the // first number const char * Version="2.01"; const char * Date="November 29, 2002"; //Error is true if the the MainEventProcessor method returns with an error, // otherwise it is false. int Error; //MainDriver object which is the user interface driver. CDriver MainDriver(Version,Date); //Start the main processing loop. Error = MainDriver.MainEventProcessor(argc, argv); //Display that the main processing loop is completed (with errors) if(Error) { cout << endl << "Application terminated with errors." << endl; //Pause the screen so the user can see the results int ch = 0; cout << "Type ESC to Exit"; do ch = _getch(); while(ch != 27); //search for ESC character } }; --------------------------------------------------------------------------- int CDriver::MainEventProcessor(int argc, char * argv[]) //(JLF 10/30/02) { MessageBox(NULL,"Driver:MainEvent","Func",NULL); //Flag is set to TRUE as long as processing is necessary. When the user // selects EXIT program then Running is set to FALSE. int Running = 1; //Operating mode. BATCHMODE reads a script file to control the program. // INTERACTIVEMODE allows the user to interactively control the program. // COMMANDMODE the user has entered