General information
Category:
Windows API functions
>Vlad,
>
>>If it uses CStrings, than it's C++...
>
>Yes CString is the MFC string class.
>
>>I don't believe that a function that returns a CString can be exported as C standard.
>
>I've never written a C++ DLL routine that returns a string. Most of the time I pass a string reference to the DLL, so I can let VFP preallocate the buffer, but I'd guess that it isn't really a problem if you just assign a CString return value into the VPF memvar, I might just have to test this later.
>
>But I know that my VFP Ole server returns a VFP string and the C++ code recieves it as a CString. VC++ seems pretty good at casting CStrings in and out.
I found your "Spy-In" VFP/C++ app useful as a learning tool for incorporating C++ DLL's in my own projects. Although I am not very proficient in C at this point, I would like to learn more about it to provide compiled modules in future apps.
How do you come to a decision to develop a DLL as opposed to a pure VFP solution? If I am looking at developing C++ classes to handle math intensive routines, could I actually be making things more complicated than I have to? The type of routines would handle premium and claims processing in the area of medical/dental insurance...
Any advice would be greatyly appreciated...
Thanks,
Jack Mendenhall
Reinsurance Management, Inc.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only