From: paul on
I created a program, and also a User Control (ctl) in it. But when I compile it, and run it on my other PC, it gives the error "Failed to
load control 'EZFile' from . Your version of may be outdated.", EZFile being name of my control. And yeah it has missing words there.
Anyway, I was wondering what is causing that error? I thought compiling the program with the ctl would incorporate it into the exe itself,
so wouldnt need a seperate ocx files.

Runs fine in both IDE and compiled on my system, do I have to compile the ctl into an ocx before using it in the program? I've allready made
sure any other componants the program uses actually work on other PC, by taking out the ctl and any references to it in the code and running
it like that. Obviously the program doesnt work exactly without the control, but it does start up and rest of non-user controle/modules give
no errors. Thanks for any help. -paul
From: Steve Gerrard on
paul wrote:
> I created a program, and also a User Control (ctl) in it. But when I
> compile it, and run it on my other PC, it gives the error "Failed to
> load control 'EZFile' from . Your version of may be outdated.",
> EZFile being name of my control. And yeah it has missing words there.
> Anyway, I was wondering what is causing that error? I thought
> compiling the program with the ctl would incorporate it into the exe
> itself, so wouldnt need a seperate ocx files.
>
> Runs fine in both IDE and compiled on my system, do I have to compile
> the ctl into an ocx before using it in the program? I've allready
> made sure any other componants the program uses actually work on
> other PC, by taking out the ctl and any references to it in the code
> and running it like that. Obviously the program doesnt work exactly
> without the control, but it does start up and rest of non-user
> controle/modules give no errors. Thanks for any help. -paul

You don't have to make an OCX to use a user control in the same app.

The error might occur if the user control has some external control on it, and
the target machine does not have that control installed. Have you run a setup on
the other machine, or did you just copy the exe?


From: paul on
On Thu, 5 Jun 2008 18:08:52 -0700, "Steve Gerrard" <mynamehere(a)comcast.net> wrote:

>paul wrote:
>> I created a program, and also a User Control (ctl) in it. But when I
>> compile it, and run it on my other PC, it gives the error "Failed to
>> load control 'EZFile' from . Your version of may be outdated.",
>> EZFile being name of my control. And yeah it has missing words there.
>> Anyway, I was wondering what is causing that error? I thought
>> compiling the program with the ctl would incorporate it into the exe
>> itself, so wouldnt need a seperate ocx files.
>>
>> Runs fine in both IDE and compiled on my system, do I have to compile
>> the ctl into an ocx before using it in the program? I've allready
>> made sure any other componants the program uses actually work on
>> other PC, by taking out the ctl and any references to it in the code
>> and running it like that. Obviously the program doesnt work exactly
>> without the control, but it does start up and rest of non-user
>> controle/modules give no errors. Thanks for any help. -paul
>
>You don't have to make an OCX to use a user control in the same app.
>
>The error might occur if the user control has some external control on it, and
>the target machine does not have that control installed. Have you run a setup on
>the other machine, or did you just copy the exe?
>
Yup, that was it, Forgot I had loaded another control into it. Turns out other machine didn't have it. I did run a setup but other machine
still gave error after it, which is what also made me thought it might not be just a simple missing file error.
Works now. Thanks for the reply!