[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

C++/Statistica DLL problem

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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 will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
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 clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

656 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