Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FindMimeFromData
Message
From
29/05/2001 10:00:32
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00512103
Message ID:
00512185
Views:
10
And once again hi,

I had a look at your pointers.vcx and the struct.vcx from christoff.
But I'm not able to put things up, and have the FindMimeFromData return a comprehensive result.

Meaning that I don't get it quiet right how to address the pointers to the API call.
Neither do I really understand what to create with the classes (a struct or a string), to pass on to the API call.
Also don't I know if I need the value, passed on to the pointers/struct class,
to foresee with the null terminating character (chr(0)).

If somebody could help me out on this with some real hands on examples.
for example how to create the pointer from within VFP.
How to pass it on to the declared API FindMimeFromData DLL.
And how to retrtieve the result from the FindMimeFromData function.

Regards,

Yves.


>Hi!
>
>Hmm, I do not remember any case I required to verify if some file extension is really matchesto its content. I just used the extension to determine file type. If file does not contain what it must contain, the routine that uses that file usually throws the error to user to let user know that file is invalid. Why you need that feature?
>
>As I suggested, ppwzMimeOut is double-pointer (pointer to the pointer). Just a string reference gets a garbage from the memory because it is a single pointer pointer. You require to use some tools or API functions to allocate memory for that buffer, pass a pointer to it to the API function, then get a result from that memory by API function calls. There is a tool in the Files section or somewhere in teh UT messages that allows to handle pointers in the VFP.
>
>HTH.
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform