Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert from VB
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00719715
Message ID:
00720304
Views:
16
Hi Jose

Here is the code I have tried
DECLARE Long Logger_FileUpload IN c:\windows\system\taglogger.dll String @FileNameStruct , String @Data

Local lcFileStruc && file name structure as defined for TAGLOGGERFILE
	Local lcData  && buffer to hold file contents
	Local lnStatus && return status
	Local lnSize


lcFileName = "TEST.TXT"

	lcFileStruc = Alltrim(lcFileName)+Chr(0) && "name.ext"+null char
	lcFileStruc = Padr(lcFileStruc,13,Chr(0)) && padded to 13 bytes long
	lcFileStruc = lcFileStruc + Replicate(Chr(0),4) && to get returned file size
	lcData = "This is just a text"
	
	
	lnStatus = Logger_FileUpload( @lcFileStruc, @lcData)
	MESSAGEBOX(lnStatus )
Using the above code I receive and error saying Declare DLL call caused an exception.

John



>>Hi Jose
>>
>>Thanks for the code.
>>
>>I am also having trouble using the Logger_File_Upload and was wondering if you have any ideas why it won't work.
>>
>>
>>Here's the VB code
>> ...
>
>Try converting it to VFP (use the code I posted as a sample) and if it doesn't work, post your comments in this thread...
>
>Regards,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform