Cannot register my .ocx with error code 0x80040200 - ocx

When i try to register my .ocx file I get error code 0x80040200.
I know that this error usually occurs when I got no administrator privileges, but for me that's not the case.
I found some code snippet with which I could test my .ocx wether regsvr32 can find the entry point and it looks like it could.
Is there any other known reason why this error could occur?
Thanks

In my case, I tried to register dll and got the same error. The reason was absence of a tlb file near the dll.

Related

How can I solve "The procedure entry point #testbpl_common#initialization$qqrv could not be located in the dynamic library test.bpl"

I'm facing a trouble when executing delphi project.(on Delphi7)
It succeeded compiling but fails executing at LoadPackage(loaderpath) and the message looks like below.
"The procedure entry point #testbpl_common#initialization$qqrv could not be located in the dynamic library test.bpl"
The message which really isn't the one I got on my computer but I found it on the link having same trouble below.
I tried the solution on the page, but still can't solve mine.
Procedure Entry Point
Please let me know other solution or the way of debug this kind of issue.
I solved this problem.
The problem was %PATH% on my computer.
Since there is duplicated executable files on my computer, delphi loaded unexpected dll while executing.
So I fixed %PATH% to solve this problem.
The way I find out this problem is below.
Use Process Explorer to check list of dll to find which one of them is loaded.(I found some of them is on the wrong place(wrong version).)
Use 'where xxx.dll' command on cmd.exe to check %PATH% of that dll.
Renamed that path and try to execute that project on delphi to check it fails because some of dll couldn't loaded.
I changed %PATH% to proper place and solved this problem.

error in starting the program and adding component

I am new to delphi,
when opening one unit I get this error message,
Error reading cp_port.BaudRate: Property BaudRate does not exist. Ignore the error and continue?
and when I try to run the program, some components that added is gone, I mean, I need to install it again, but no luck, still my program can't start?
how can i solve this?
I tried to Google it but I can't find the answer. help me. thanks
There is a mismatch between the .dfm file and the component code for the object named cp_port. The version of the component used to create the .dfm file includes a property named BaudRate. That property does not exist in the version of the component that is trying to read the .dfm file when you encounter the error.
The solution to such an error is to make sure that you use the same version of the component as was used to make the .dfm file.

missing NinjectDependancyResolver.cs

i'm working on a project that uses mvc in dotnet. i have to develop the remaining code given to me.I made a copy of the Maincode and tried to run it ;i'm getting this error when i tried to run with breakpoints.
This is the error i'm getting.
i googled and i got a answer saying to refresh the reference i did that too, but its not helping. what can be the problem.
this is the error i'm getting, a screen shot from web.
http://www.google.co.in/imgres?um=1&sa=N&hl=en&biw=1024&bih=621&tbm=isch&tbnid=MuZffsIBSR3nhM:&imgrefurl=https://stackoverflow.com/questions/8506618/no-source-available-error-with-ninject-when-debugging-code&docid=yGGstg8JC99hAM&imgurl=http://i.stack.imgur.com/nlWbT.png&w=1107&h=480&ei=GotmUf2yNYWKrgeam4DYBw&zoom=1&ved=1t:3588,r:3,s:0,i:91&iact=rc&dur=1437&page=1&tbnh=148&tbnw=341&start=0&ndsp=12&tx=91&ty=96
Are you sure your reference to Niniject in web project references is OK? Because it seems like author of the code used sources of ninject (placed in c:\projects\ninject\...) instead of library or nuget package (i dont know why). Try remove that reference and add Ninject as nuget package and see what happens.

TClientSocket in a console app causes linker errors

I have a console application that i got to make and i would like to use TClientSocket/TServerSocket in it.
The problem is that when i am trying to compile it, i am getting a linker error regarding the constructors and the destructors of the TBaseSocket and TCustomSocket classes (TClientSocket inherits from those two i think).
The linker error is something like this
[Linker error] undefined reference to ~TCustomSocket
The thing is that in a VCL Form project it compiles just fine, so i guess i am not including some libs paths that the form projects includes by default.
So if anyone could help me i would be grateful.
Thanks in advance and sorry for my english.
I had the same problem with Builder XE. Add 'inet.bpi' to your Requires list and it should link.

missing "htmlview.dcu"

While compling Delphi application there is an error
"file not found "htmlview.dcu".
The errror is not on my system ,but someone else's.
I checked it my system and its there in " C:\Program Files\PBear\Thtml\package".
Whats the remedy if there is an error
"file not found "htmlview.dcu".
Generally, if it tells you it can't find a DCU file, what it really means is that it can't find the unit at all, i.e. neither the source nor the DCU. Make sure the other person has htmlview.pas, and that they have it either included in the DPR or in a folder that's either on the Library Path for their Delphi installation or the Search Path for the project that needs it.
If you found the error on someone else's system, but not yours, and found the missing .DCU on your own system, you need to give them the .DCU from your system.
If you think about the error message before posting here, it would be pretty clear I'd think. "File not found " very clearly tells you it can't find the file , so you need to give it to them. Doesn't it?

Resources