>Hi everybody.
>
>Any one of you have used the WNetAddConnection2 API Function with VFP, i´m having some problems figuring out how to build a NETRESOURCE string in VFP.
>
Download my NETRESOURCE and CLSHEAP classes from the Files section - NETRESOURCE uses ClsHeap to construct the necessary data structure and manipulate it in static memory relying on ClsHeap to allocate static blocks and resolve indirected strings and structures; there's a working example of WNetAddConnection3 accompanying the class.
>NETRESOURCE can be build in VB or VC but VFP doesn´t support that C structures, so we have to make a string having the contents of that structure.
>
>Which is the best practice : Write all my code on VFP ? or Write a sepparate DLL or EXE in C with that Functions ?
>
>Thanks.