Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'Invalid Subscript Reference' when compile MTDLL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01529261
Message ID:
01529857
Vues:
57
J'aime (1)
>Rick you have once again taken that which is beyond the comprehension of most mortal men and placed it within such easy reach that even I grasp it. I am once again in your debt.

LOL! Thanks Eric, not really sure if this qualifies as a 'beyond the comprehension of most mortal men' scenario, but Ok :-)

Your plight along with another problem I ran into with a customer this week prompted me to write up an entry in my blog about this:

ClassIDs in Visual FoxPro COM Projects

+++ Rick ---


>
>Eric
>
>>I've seen this from time to time and usually is caused when the ClassIds in your project get hosed or the record that holds those ids gets fried. Internally I think the problem comes from an invalid class id or a duplicated classid and some sort of lookup internally into the registry fails in VFP.
>>
>>Creating a new project will create new ClassIds and that should always fix the problem. If you're building EXE's though you'll want to be careful - creating a new project will create new ClassIds for the same ProgId which will result in duplicate DCOM entries which is a real pain. Samething happens with DLLs as well, but the dupes end up just dead unreferenced entries in the registry.
>>
>>+++ Rick ---
>>
>>>Suddenly I'm getting an "Invalid subscript reference." when I attempt to compile a project to a DLL. It rebuilds without errors, and I can create an EXE/APP fine, but as soon as I switch to either type of DLL I get this error during compilation. It compiled fine this morning!
>>>
>>>Steps I've taken already to fix:
>>>
>>>1. Created a new project.
>>>2. Restarted FoxPro
>>>3. Restarted Windows
>>>
>>>There's really only one PRG in the project, and that creates the OLE class.
>>>
>>>I'm about to restore from this morning's version, but I'd love to know what might be going on here!
>>>
>>>Thanks,
>>>
>>>Eric
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform