Solved

Register Dll created with wizard

Posted on 2000-03-30
2
369 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 10 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

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

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

623 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