Results 1 to 3 of 3

Thread: OCX Nightmare

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2001
    Posts
    51

    OCX Nightmare

    I am having all sorts of problems compiling a large project which has about 40 dlls and 8 ocxs. The ocx's all compile and run fine, bar one.

    The offending ocx compiles fine and runs in the project group fine. All dlls that use the OCX also compile fine from the project group. But when I try to compile a single dll standalone, it says it couldn't load the ocx. If I try to paste the ocx onto a new project form, I get an error saying that such and such a GUID has not been registered.

    The GUID used to add the ocx to the project is different to the GUID in the error message. A search of the registry reveals that both GUIDs exist. The one in the error message seems to be the correct one and the one used in the projects vbp file is listed as a typelib GUID. Simply replacing teh GUID in the project file leads to a can't load OCX error.

    The OCX has been compiled with binary compatibility, but I guess some months ago, maybe I compiled it more than once without binary compatibilty?

    Anyway I am in a real pickle. How do I clean up my machine or my project settings to fix this up.
    (NB I have tried unregistering everything and and recompiling all from scratch. No cigar.)

    Help

    Justin

  2. #2
    swb76
    Guest
    well, i am a lil naive about this...but i think you mentioned a solution in your question right..you could compile it in a project group..so the OCX does get registered..so where's the hassle..
    As far as a suggestion goes, you can try and use "depends" to see whether it has any dependencies that may not have been registered correctly or are missing..i had some problems like these..not exactly but of a similar nature..
    good luck!

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2001
    Posts
    51

    Well

    thanks for your reply.

    I could compile everything within the project group, except the exe, I neglected to mention that.

    For some reason I have to compile all the dlls and then open up the exe project on its own and compile it. This can't be done unless all the dlls and ocxs are compiled and registered correctly.
    Actually why I can't compile the exe in the project group I don't know. I should be able to shouldn't I?

    Anyway I think that my registry was just a mess, so I rebuilt my machine and compiled it all from scratch. This time there was no problem with the ocx. Though I still have to compile the exe standalone. Why?

    Thanks again

    Justin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width