Run a Visual C++ program from VB Script and get a return value ??
-
Hi all, Im currently developing a MFC-program in Visual C++ 6.0 that will identifiy a user through his/hers fingerprint. The C++ program needs to be launched from another program with VBA support (so Im currently testing it in MS Excel) The C++ program also needs to return a textstring with the username (or ID or some kind of text like "George Lucas") With my very basic skills in VBScript I have manged to run the C++ program. But is it possible to get something back from the program ?? Im guessing that the C++ program might need some kind of method to communicate back to the VB Script ... ? Im would be very thankful for any kind of help ! / daniel
-
Hi all, Im currently developing a MFC-program in Visual C++ 6.0 that will identifiy a user through his/hers fingerprint. The C++ program needs to be launched from another program with VBA support (so Im currently testing it in MS Excel) The C++ program also needs to return a textstring with the username (or ID or some kind of text like "George Lucas") With my very basic skills in VBScript I have manged to run the C++ program. But is it possible to get something back from the program ?? Im guessing that the C++ program might need some kind of method to communicate back to the VB Script ... ? Im would be very thankful for any kind of help ! / daniel
I'd be tempted to write the app as a COM DLL, so that it can be launched as an in-proc, supporting automation. You could expose a method HRESULT Scan([out] BSTR* userid) that did the scan, any lookup, and returned an appropriate username (or a null string on failure). That would make the communication with the program much simpler. Steve S
-
I'd be tempted to write the app as a COM DLL, so that it can be launched as an in-proc, supporting automation. You could expose a method HRESULT Scan([out] BSTR* userid) that did the scan, any lookup, and returned an appropriate username (or a null string on failure). That would make the communication with the program much simpler. Steve S
Thanks for your reply ! The app is like 99% complete though and it's pretty complex with a lot of dialogs functions. Could it be converted to a COM DLL in any easy way ?? (I have very limited experience with COM-programming and creating DLL's) And if not .. could there be any other way ? :~ :)