Thread Creation
You can call CVL functions in threads that you create using the CVL function cfCreateThreadCVL(), cfCreateThreadMFC(), or the Windows runtime library functions _beginthread() or AfxBeginThread(). All of these functions take as their arguments a pointer to a thread‑entry function. Thread‑entry functions take a single void pointer argument, which you can use to pass starting information to the thread.
Note: Do not call CVL functions in threads created by the Win32 function CreateThread(). This function does not initialize the Windows runtime library, and should not be used in CVL applications.
Threads you create using cfCreateThreadCVL() or cfCreateThreadMFC() will, on exit, automatically clean up any per‑thread resources that CVL allocates internally. Threads you create using other functions require an explicit, and precisely positioned, call to cfThreadCleanup().