Главная страница | назад





Article #16734: Visual dBase crashes when passing string to DLL

 Question and Answer Database
QNA :Visual dBase crashes when passing string to DLL
Category :Linking
Platform :Windows95
Product :BC++ 5.x
Question:
Why does Visual dBase crash while passing a string to a C/C++ DLL?
Answer:
Strings in Visual dBase don't have a null terminator (\0) at
the end of them. The null terminator needs to be added to the
string before its passed to a C\C++ function which assumes
null termination.
Also, the Visual dBase data type for const char * is CSTRING.
7/2/1998 10:32:32 AM

Last Modified: 01-SEP-99