Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Urgent:How to find other computer names in local domain
Message
De
20/10/1998 08:53:11
 
 
À
20/10/1998 02:32:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00147487
Message ID:
00148443
Vues:
27
>>But as per the msdn library documentation you cannot use that function on the Windows 95 . Alternatively you can use "mpr.dll" with functions WNetEnumResource() and wnetopenenum()
>
>You're right. Sorry...
>
>>, but it has some complications. like sending a NETRESOURCE structure by reference. Is it possible in VFP sending structures like that ?
>
>Yes. You can simulate almost any structure using a string. To send it by reference, just send the corresponding string by reference. The problem is that this structure contains pointers and, in order to get the strings pointed by those pointers, you'll need something like my Pointers class.
>
>> How can I use C code directly from Foxpro . If you have any example pl. send it. and also tell the additional files that I should have to do that.
>
>You cannot use C code directly. But you can build a DLL wrapper in C/C++. It is must easier to deal with these functions form C/C++ than from VFP.
>
>I played with these functions about 6 months ago. I will dig on my computer at work and if I still have that test program, I will send it to you. It's in C++.

He's definitely going to need either your pointers class or a wrapper - there are several embedded pointers used in a NETRESOURCE structure.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform