?
Solved

C++/Statistica DLL problem

Posted on 1999-01-05
1
Medium Priority
?
258 Views
Last Modified: 2006-11-17
When a program loads, and it is dependant on a DLL, does it load the dll in memory at startup and then refer to it as nescessary, or does the dll only get loaded when it is required and then disposed of when finished. I would be tempted to think the first option, but I need some confirmation. My problem is that I have to write a DLL in C++ to be used by STATISTICA that returns a different set of data each time it is called, and want to use a static variable to keep track of which set I am up to. I had also considered using a temporary file, but that seems like a fair bit of hassle to go to for a test rig.
0
Comment
Question by:tgemini
1 Comment
 
LVL 7

Accepted Solution

by:
faster earned 100 total points
ID: 1181604
It depends on how the dll is called by the exe, if the exe use LoadLibrary() and FreeLibrary() explicitely, you will have the 2nd case, otherwise 1st case.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question