Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WINMM.DLL and Saving File Names
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00552081
Message ID:
00552514
Views:
11
>George:
>
>You are probably 100% correct, but it doesn't matter one iota. The solution that you gave me to save the long file name through WINMM.DLL worked splendidly. I can now save long file names with spaces. This is a much better solution then the one that I was striving for. Much much better. Thank you a whole bunch.
>
>Could I impose on you a little more. I noticed that you wrote:
>
>mciSendString(@SendString,"0",0,0)
>
>and my code was:
>
>mciSendString(&SendString,"0",0,0)
>
>Could you explain why you used the @ symbol and what the difference is between the @ symbol usage and the & symbol usage?
>
>Thanks, a very excited and happy camper.
>
>DJ :o)

First, glad to hear that it works.

Now the @ symbol passes a variable by reference. Anytime you see a C declaration where one of the parameter names begins with "lp" it indicates that the value needs to be passed by reference. This also applies, however, to passing parameters to VFP UDFs (provided, of course, that SET UDFPARMS is equal to VALUE, which is the default).

The & symbol indicates macro substitution.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform