Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding ocx file 2

Status
Not open for further replies.

mrmovie

Technical User
Oct 2, 2002
3,094
GB
getting funny "system error &H8007007E(-2147024770) is a specific drive isnt mapped to source exe!

was thinkin it was something to do with an ocx file needed due to my use of a listview control.
I have copied the ocx to the c:\win\system32 folder but doesnt seem to matter.

how do i add the file to my project??? i have tried the project menu then add file but seems to only include vb files and forms.

i have created a resource file in the project explorer. this allows me to add a custom file type. it lets me add an ocx file....is this where i should be adding an ocx file????

no where in my code do i reference a drive letter....

thanks
mrmovie
 
To add an .ocx file go to the project-components menu and select the ocx from the list of components. It will then be available in your tool box. Thanks and Good Luck!

zemp
 
The list will be on the controls tab and you will need to browse for the control.

You can also access this by using <Ctrl-T> key combination. Thanks and Good Luck!

zemp
 
You can't jsut put the OCX in the directory, you need to register it as well...

I think that you can do this with regsrv32 ocxname.ocx, but I may be wrong. Craig, mailto:sander@cogeco.ca

Si hoc legere scis, nimis eruditionis habes
 
regsrv32 is the correct command. Select run in the windows start menu and enter regsvr32 &quot;<path to ocx>\ocxname.ocx&quot;. Then click run.

Thanks and Good Luck!

zemp
 
zemp, CraigSander, Thanks for the adivice. I will test this and see if it works.
However, I am not sure i want to register an ocx on 7000 machines. Is there no way i can complile the ocx as part of project when i go to build the exe???
Sorry for my ignorance in this matter.
Cheers
MrMovie
 
You only need to register it on your development machine. For the others build an installation package (Package and deployment wizard) and the ocx will be automatically registered when you install you app. An installation package will also make sure that you include all necessary files. Thanks and Good Luck!

zemp
 
thanks again &quot;people&quot;. did the regsvr32 thing and all working ok. bit baffled as to why the exe runs fine on the target machines but after a reboot and a change to a envirnoment variable it stops working...hmm. not to worry. I shall take the time to create the &quot;package&quot; properly and dist it.
regards
richard
 
I did regsvr too pal..but having same probs..

actually created a program in Win 2000 environment..and hoping everything will run fine on Win XP..but problem , just like yours, persisted..

Any new ideas???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top