Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
App/Exe Build Problems when Com Interop Involved
Message
 
 
À
11/08/2009 11:26:17
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01417325
Message ID:
01417327
Vues:
92
This message has been marked as the solution to the initial question of the thread.
Hi Tracy,

VFP will not perform a check during the build if you remove OLEPUBLIC clause.


>Believe it or not this is working. However, when building the app or exe, it requires the .tlb file be located in the directory that it will reside in on the client's machine for the build to complete without errors. That would require that every developer who builds an exe from the source code have it installed.
>
>Is there anyway around that? If we ignore the error, it will build of course, but com interop doesn't work (of course). Not all customers will have this interface so I am wondering how to isolate it somehow?
>
>I think it is due to the events section:
>
>DEFINE CLASS TRAPIEvents AS SESSION OLEPUBLIC
>
>IMPLEMENTS ITRAPIEvents IN "C:\Program Files\Power\API\POWER.CACHSTANDARDAPI.TLB"
>
>etc...
>
>Without that specified though the com interop won't work. We had to put the class definition in our main.prg in order for it to work.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform