轉載一個程序。
This zip file contains a example of using C++ language COM in a Visual C++ program (named example.zip), and a COM component built by comtool of Matlab and used in a Visual C++ program(named mycom.zip). Both projects contain fire_event in COM. But it only works well in the former example. The interface of two COM components looks very similar, and the client program of two projects are almost the same.
f your application uses MFC in a shared DLL, and your application is
in a language other than the operating system s current language, you
will need to copy the corresponding localized resources MFC42XXX.DLL
from the Microsoft Visual C++ CD-ROM onto the system or system32 directory,
and rename it to be MFCLOC.DLL. ("XXX" stands for the language abbreviation.
For example, MFC42DEU.DLL contains resources translated to German.) If you
don t do this, some of the UI elements of your application will remain in the
language of the operating system.
TFIND
searches for one or more strings (boolean AND) in a text file.
TFIND reports all lines where the string(s) were found (or NOT found
by option).
The search can be limited to a field in a fixed field (i.e. column
oriented) list.
An extended search mode is available, where only letters and digits
are relevant.
Other options:
case sensitive search,
alternative errorlevel with number of hits,
header line with file name, LFN, custom prefix