Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


A resource DLL

Posted on 1997-04-06
Medium Priority
Last Modified: 2010-08-05
I use Visual C++ 5.0 (moved from 4.2)
I have created a new "project" which is a regular DLL
(not MFC) and I want it to be a "resource" bank for my
application. which means- ALL resourced will be in it and
nowhere else, so i can create a multi-language app that
uses a different DLL for any langauge.

I have added resources to this DLL, all's ok. but when I
compile it, it stops with a link error and says something
about a "DllInit" something function which is missing...
what function am i suppose to add, and most important-
WHERE, WHAT FILE should I add to my Resources DLL....

Question by:magid
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 23

Accepted Solution

chensu earned 150 total points
ID: 1162612
In addition to all the resources, you should also add a .C or .CPP file which includes the following function,

#include <windows.h>

                        DWORD ul_reason_for_call,
                        LPVOID lpReserved )
    /*switch( ul_reason_for_call ) {
    return TRUE;


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

670 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