PDA

Click to See Complete Forum and Search --> : What's wrong with this


Dec 25th, 2000, 06:30 AM
Hi,

I created an ActiveX control called PCBeeper using Visual C++ version 6.0 using MFC.I have added the .ocx file and the .dep file for the control to package, but I am unable to register the control.

I get the Error LoadLibrary("PCBeeper.ocx) failed GetLastError returns 0x00000485

I am not sure what this means ???. Can any one tell me please....

I would also like to know what files (related to the ActiveX control ), I should include in the package. Please let me know if anything is wrong with the project options in Visual C++ (version 6.0) or with the dependency file

Here is a copy of the .dep file created by MFC for my control for your reference.



# Microsoft Developer Studio Generated Dependency File, included by PCBeeper.mak

.\PCBeeper.cpp : \
".\PCBeeper.h"\


!IF "$(CFG)" == "PCBeeper - Win32 Debug"

!ELSEIF "$(CFG)" == "PCBeeper - Win32 Unicode Debug"

!ELSEIF "$(CFG)" == "PCBeeper - Win32 Unicode Release"

!ENDIF

!IF "$(CFG)" == "PCBeeper - Win32 Debug"

.\PCBeeper.rc : \
".\Debug\PCBeeper.tlb"\
".\PCBeeperCtl.bmp"\
".\Volume01.ico"\


!ELSEIF "$(CFG)" == "PCBeeper - Win32 Unicode Debug"

.\PCBeeper.rc : \
".\PCBeeperCtl.bmp"\
".\Volume01.ico"\


!ELSEIF "$(CFG)" == "PCBeeper - Win32 Unicode Release"

.\PCBeeper.rc : \
".\PCBeeperCtl.bmp"\
".\ReleaseU\PCBeeper.tlb"\
".\Volume01.ico"\


!ENDIF

.\PCBeeperCtl.cpp : \
".\PCBeeper.h"\
".\PCBeeperCtl.h"\
".\PCBeeperPpg.h"\


.\PCBeeperPpg.cpp : \
".\PCBeeper.h"\
".\PCBeeperPpg.h"\


!IF "$(CFG)" == "PCBeeper - Win32 Debug"

.\StdAfx.cpp : \
"..\..\vc98\include\basetsd.h"\
".\StdAfx.h"\


!ELSEIF "$(CFG)" == "PCBeeper - Win32 Unicode Debug"

.\StdAfx.cpp : \
".\StdAfx.h"\


!ELSEIF "$(CFG)" == "PCBeeper - Win32 Unicode Release"

.\StdAfx.cpp : \
"..\..\vc98\include\basetsd.h"\
".\StdAfx.h"\


!ENDIF

!IF "$(CFG)" == "PCBeeper - Win32 Debug"

!ELSEIF "$(CFG)" == "PCBeeper - Win32 Unicode Debug"

!ELSEIF "$(CFG)" == "PCBeeper - Win32 Unicode Release"

!ENDIF


NOTE: Let me know if you need any other info.


with best regards

Barnabas