When trying to build my WinDriver application from MS Visual Studio, I get the following error:
int_io.obj : error LNK2001: unresolved external symbol __beginthreadex
How can I resolve this?
You should enable multi-threading from your project, by adding the relevant flag to the project settings. The Microsoft flag, when compiling with MS Visual Studio (Visual C++) is -MT. Therefore, be sure to add: /MT to the Project Settings. [Add this option in: 'Project' --> 'Settings...', under the 'C/C++' tab, 'Category: General', in the 'Project Options' box]. For other compilers, verify that the compiler-specific multi-threading flag is used. For example, the Borland C++ Builder flag is -tWM. NOTE that the -MT and -tWM flags are already part of the WinDriver samples and generated DriverWizard projects for MS Visual Studio and Borland C++ Builder (respectively). (For MS Visual Studio 4.0, this is true beginning with v6.0.2 of WinDriver.) In addition, beginning with v6.0.0 of WinDriver, in order to use WinDriver's thread functions (ThreadStart() and ThreadStop() — implemented in WinDriver/src/utils.c) from a C/C++ application, you should verify that your project includes a _MT precompiler definition. This definition is also an integrated part of the WinDriver samples and generated code. For MS Visual Studio 5.0—6.0, this definition is part of the samples/generated code beginning with v6.0.0 of WinDriver; for MS Visual Studio 4.0, beginning with v6.0.2 For Borland C++ Builder (4.0—6.0) this definition is part of the samples/generated code beginning with version 6.0.3 of WinDriver. When creating your own project or when using an earlier WinDriver version, you can add this definition to the project yourself: In MS Visual Studio, do either of the following:
In Borland C++ Builder do either of the following:
|
Technical Documents
(WinDriver related)
WinDriver: Support Center
WinDriver: Product Page
Can't find what you need?
(WinDriver related)
Documents Navigator:
WinDriver: Support Center
WinDriver: Product Page
Can't find what you need?