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

x
?
Solved

Register Dll created with wizard

Posted on 2000-03-30
2
Medium Priority
?
374 Views
Last Modified: 2008-03-04
I create a Dll using Wizard (A dll that export same symbols). I succeed to call a function of that Dll from a C++ console application. I didnt register the Dll. I want to call a function of the Dll from VBP. for that i should register it. I tried to run RegServ32 with MyDll.dll but i get an error:
"MyDll.dll" was loaded, but the DllRegisterServer entry point was not found. DllRegisterServer may be exported, or a corrupt version of MyDll.dll may be in memory. Consider using PView to detect and remove it."
0
Comment
Question by:oshra
[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
2 Comments
 
LVL 2

Accepted Solution

by:
arikka earned 30 total points
ID: 2668696
Don't use in Wizard WIN32 DLL as Project Type, instead use ATL COM Wizard
type. Next use Server Type as DLL.
Build process automaticly will create
DllRegisterServer exportable entry and register your Dll.

If you do not want to have your Dll as COM server, you do not need to register
regualr Dll at all. Just make sure that
function you want call are exportable
(or in DEF file, or something like that
 __declspec( dllexport ) int func())).

In order to call them from VB just use :

Declare Function func _
Lib "mydll.dll" ( _
    ByVal a As Integer, _
    ByRef b As Integer _
) As Integer




0
 

Author Comment

by:oshra
ID: 2668934
I chose to use Dll and not ATL Dll in purpose. it was a mistake to think that i should register that. i solved my problem by creating a DEF file.
Thanks anyway.
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
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 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 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.

715 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