473,799 Members | 2,999 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DLL registration problem

Hi friends,

i making a COM DLL in vc++ , this DLL is using a 3rd party dll
function. i m calling a function of this DLL.

But i m getting error

error PRJ0050: Failed to register output. Please ensure you have the
appropriate permissions to modify the registry.
when i m commenting that function calling statement then no error
comes and it project compiles successfully.
I got tired of it...

PLz help me if anyone have some idea,,

Thanks in advance...

**Harish**

Mar 23 '07 #1
1 3104
Hi,

"Harish Kumar Dixit" <ha**********@g mail.comwrote in message
news:11******** **************@ n59g2000hsh.goo glegroups.com.. .
Hi friends,

i making a COM DLL in vc++ , this DLL is using a 3rd party dll
function. i m calling a function of this DLL.
So you have a dependency to that 3rd party dll and the loader needs to find
that dll when your dll is loaded
But i m getting error
error PRJ0050: Failed to register output. Please ensure you have the
appropriate permissions to modify the registry.
The registration step is the last step *after* your dll was successfully
built. Registration is done by loading your dll and calling the
DllRegisterServ er function. When your dll is loaded from the output
directory the 3rd party dll will be needed. If it is not found, i.e. not in
the same directory as your dll, not in the current directory, not in
%windir%, not in %windir%\system 32 not in the current directory, than your
dll cannot be loaded.

Try copying the 3rd party dll into the directory your dll is created in and
registration should work.
when i m commenting that function calling statement then no error
comes and it project compiles successfully.
It did compile (and link) successfully without commenting out that function.
Just look in the output directory and you will find the dll. By commenting
out all function calls to your 3rd party dll the linker is smart enough to
remove the dependency to the 3rd party dll, hence your can be loaded without
the other dll around.
>
I got tired of it...
HTH,
SvenC
Mar 23 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2680
by: JaNE | last post by:
Hello, I have made my cms... and is working, but have some, let me say "bugs"... And I don't know all reasons, please allow me slightly longer and most probably confusing post (that "confusing" is mainly becaose of my bad english, and that bad english is also reason why am I learning php that slow...). As first, what is problem: some users after succsesfull registration and login can not see "memeber_menu" and can not activly participate...
1
2178
by: Ashok K Kumar | last post by:
Hi, I have a ATL Attributed DLL which exposes a COM Component. My requirement is, whenever, the DLL is registered, I also would like to add some entries to the HKLM/Softwares/CompanyName..... along with the Component registration. By default, when we create an attributed COM Component, it adds, vi_progid, progid, coclass, uuid, etc.. This is enough to register the component. But, I need to add additional registration information like...
2
1307
by: blantz | last post by:
I am fairly new with ASP.NET and have been asked to make a Registration page in VB using an Access database which includes company info attendee info which sessions they are attending how many nights in the hotel, etc My problem is that multiple people from a company may be attending and i'm wondering what the best way to handle this is. My initial thought
2
7704
by: news | last post by:
I just upgraded to PHP 4.4.2 on my Slackware 10.2 system. And Apache/mySQL/PHP all work great through a browser. No errors. But when I try to run a PHP script through the command line, which I need to do, I get blocks of errors like: root@slackserve:/var/www/htdocs# php ./phptest.php PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php/extensions/mysql.so' - libmysqlclient.so.14: cannot open shared object file: No such...
0
2499
by: RHSFSS | last post by:
Hi, I have a Drag and Drop registration problem (See http://www.thescripts.com/forum/thread434707.html for similar problem post), can anyone out thereadvise on the best solution? I have a .NET 2.0 application (actually in C#) called from a third party piece of software via VBScript. The VB script passes an object as a parameter which my application applies changes to. My C# application dynamically creates a form, which includes controls...
0
1512
by: Marcel - IDUG Europe 2006 | last post by:
Hi DB2 user, Register by 14 September and Save 226 Euro! Register by Thursday, 14 September and save 226 Euro on your full conference registration! Don't wait - make sure you take advantage of the early registration savings! http://conferences.idug.org/eu/Registration/tabid/143/Default.aspx Book Your Hotel Room by 14 September
1
10196
by: delusion7 | last post by:
Trying to create a table and insert records from a webform and I keep getting this message: "Successfully created the registration table. Unable to execute the query. Error code 1050: Table 'registration' already exists" Then after the table is created I re-run the query/webform and I don't receive the error message, but it doesn't update my table? When I go to mySQL it shows the table 'registration' but has no updated...
3
6227
by: satishknight | last post by:
Hi, Can some one tell me how to change the validation sequence for the code pasted below, actually what I want it when any one enters the wrong login information (already registered users) then it has to tell then them its wrong information but currently it takes then to a next page and then tells them its incorrect information. This is tedious as every time they enter wrong they will be redirected to a different page and then they have to...
3
1231
daniel aristidou
by: daniel aristidou | last post by:
Well im posting this here because im attempting it in vb. it may belong in the systems development section. Any way... every body nowadays uses demos. Well i have created code (in vb) to create a demo with a time trial, and the user can enter a purchased registration code, My question is, how can i make the program so a registration will only work on one trial and not on all the others, (ie...unable to pirate copy) I assume it must...
2
2438
by: nirav11 | last post by:
# include <iostream> # include <fstream> # include <iomanip> # include <cstdlib> // needed for exit () using namespace std; int main() { ifstream inFile; ofstream outFile;
0
9688
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9546
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9079
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7571
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5593
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4146
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.