?
Solved

C++/Statistica DLL problem

Posted on 1999-01-05
1
Medium Priority
?
250 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 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

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
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.
Suggested Courses

770 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