The InitCVIRTE function is not listed in the NIDAQ function reference online help? Why? and where can I find a description of this function?

the InitCVIRTE function is not listed in the NIDAQ function reference online help? Why? and what does she do?and where can I find a description of this function? Can i use this function with visualc++ 6.0?

The InitCVIRTE function is in the CVI run time engine (cvirte.dll)..not part of NI-DAQ.
Applications written or using CVI may call this function..
How are you running into this ?
From the CVI help...
This function performs initialization of the CVI Run-Time Engine. It is needed only in executables or DLLs that are linked using an external compiler. Otherwise, it is harmless.
It should be called in your main, WinMain, or DllMain, function. The parameter values you should pass depend on which of these three functions you are calling InitCVIRTE from. The following examples show how to use InitCVIRTE in each case.
If you are using main, your code should be as follows.
int main (int argc, char *argv[])
if (InitCVIRTE (0, argv, 0) == 0)
return -1; /* out of memory */
/* your other code */
return 0;
If you are using WinMain, your code should be as follows.
int __stdcall WinMain (HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpszCmdLine,
int nCmdShow)
if (InitCVIRTE (hInstance, 0, 0) == 0)
return -1; /* out of memory */
/* your other code */
return 0;
If you are creating a DLL, you must call InitCVIRTE and CloseCVIRTE in your DllMain function, as in the following.
int __stdcall DllMain (void *hinstDLL, int fdwReason,
void *lpvReserved)
if (fdwReason == DLL_PROCESS_ATTACH)
if (InitCVIRTE (hinstDLL, 0, 0) == 0)
return 0; /* out of memory */
/* your other ATTACH code */
else if (fdwReason == DLL_PROCESS_DETACH)
/* your other DETACH code */
CloseCVIRTE ();
return 1;
NOTE: The prototype for InitCVIRTE is in cvirte.h, not
utility.h.
NOTE: In CVI 4.0.1, this function was expanded from one to
three parameters. Executables and DLLs that were
created using the one-parameter version of the function
will continue to work properly.
/*-------------------- Prototype ---------------------*/
int InitCVIRTE (void *HInstance, char *Argv[], void *Reserved);
Nandan Dharwadker
Staff Software Engineer
Measurement Studio Hardware Team

Similar Messages

Maybe you are looking for

  • How do I make a custom brush image in a gradient color scheme in Photoshop Elements 12?

    I want to make a custom brush image in a gradient color scheme.  I know how to change the hue jitter, but I want to "paint" the image with a gradient between two colors.  For example, I have an image of an octopus that I have used to create a custom

  • Link B/W table field and  Applications

    hi Is there any transaction for Link B/W table fields and  Applications. regards, pavan.

  • How to modify date format for Standard Purchase Order

    In the Standard Purchase Order I have been trying to modify the date format of the Need by and Promised Date. To display DD-MON-YYYY please could some advise. Thanks

  • A .sig in the Control Panel.

    Hi all, I would like the forums.oracle.com website to allow users to create a .sig (see my sample below) of a few lines (obviously not MB) so that OS and/or DB and/or application versions can be included automatically. It's a real pain to have to typ

  • Need a safe free file converter

    Adobe supprt has told me that my Adobe slideshow that was completed on a XP windows computer and saved as a dvd is not compatile with my new Window 7 computer. It is a .dat file. They told me to get a free file converter on the internet but did not m