Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another VFP DLL Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00538616
Message ID:
00538738
Vues:
7
Hi!

Because this is the DLL, it could run in another memory space. In such case passing objects is not possible from COM object to calling application and back. It is possible only when DLL runs in the same memory space, in other words, if COM object is a single-threaded In-Process COM object. Just check COM object settings in the project manager, project info, third tab. It might be also possible that SCATTER NAME objects are not passed through COM at all, because they're quite unusual kind of objects. Find another way to pass data. For example, you can make a wrapper around your COM object that will convert object into array, pass it to COM object, or get array from COM object and convert it into the FP object for comfortable work.

HTH.

>Whats wrong here?
>
>
>** Create an instance of the DLL
>oScProcs = CREATEOBJECT("ScProcs.Procedures")
>WITH oScProcs
>
>  ** Add a new user
>  oRecord = .AddUser()
>
>  ** Fill in the user properties
>  oRecord.RecordId = "00000001"
>  oRecord.FullName = "Joe Person"
>  oRecord.Age = 26
>  oRecord.MarritalStat = 1
>
>  ** Save changes
>  .SaveChanges(oRecord)
>
>ENDWITH
>

>
>The 4 lines with the oRecord are the problem. No matther which of the 4 lines I list first, it's the only
>property that seems to exist on the oRecord object.
>
>In the AddUser method, I have
>SELECT Users
>SCATTER NAME oRecord
>RETURN oRecord
>

>
>So who do I only see one field in the table as a property on the record???
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform