|
-
November 14th, 2010, 11:30 AM
#1
How to derive const void pointer from CString?
Hi, I'd appreciate some help here.
I'm experimenting with the Bass24 audio library. One of its fundamental commands is BASS_StreamCreateFile, which takes several arguments including a file name to open. Now, I used MFC's CFileDialog to fetch the filename, which is a CString object. StreamCreateFile, however, needs the filename presented as a const void pointer, something I'm completely unfamiliar with. I'm pretty new to this and I can't work out how to derive a const void pointer from a CString. I probably need to use CString.GetBuffer() somehow. Can anybody help?
I'm using VC++2010 and Unicode.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|