I have a dll that uses pattern matching. At what point is that .png file opened and loaded? Does is occur when the dll is loaded, or when the function that uses it is called?
The png file would be opened and loaded when you supply its name to a function for loading the template. If you have pre-trained the template, make sure you use the load routine that includes the extra data. It couldn't load the png file when the dll is loaded because it doesn't know the name of the file yet, unless you included the load function as part of the dll initialization.
A VB application is loading and calling the DLL that I created in Labview. I have no control of the VB program. My DLL has the load pattern function within it and the filename is a constant. Does this mean that the pattern is loaded when the DLL is initialized in VB? Do I need to tell the person that is doing the VB program to do some special initialization routine?
I've never created a dll from LV, so I can't be sure. I would expect it to load the template each time you call the dll routine. When you write a dll in C, you have more control over the initialization routines and such.