Solved

C++/Statistica DLL problem

Posted on 1999-01-05
1
244 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
faster earned 50 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
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.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

729 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