Date: 10/04/00
- Next message: Teodor Cimpoesu: "Re: [phplib-dev] How can I make php dlls?"
- Previous message: Alexander Aulbach: "Re: [phplib-dev] cvs commit"
- Next in thread: Teodor Cimpoesu: "Re: [phplib-dev] How can I make php dlls?"
- Reply: Teodor Cimpoesu: "Re: [phplib-dev] How can I make php dlls?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello.
I wanna make a simple php DLL return string.
This is source.
--------------------------
#include <windows.h>
#include <php.h>
PHP_FUNCTION(php_test){
RETURN_STRING("test_string",1);
}
function_entry soft_functions[] = {
PHP_FE(php_test,NULL)
{NULL, NULL, NULL}
};
zend_module_entry soft_module_entry = {
"soft",
soft_functions,
NULL,
NULL,
NULL,
NULL,
NULL,
STANDARD_MODULE_PROPERTIES,
};
ZEND_GET_MODULE(soft)
---------------------------------
but, when I compile this source, compiler can't recognize estrdup().
error message is [[error LNK2001: unresolved external symbol __imp___estrndup]]
I think I miss out some librarys.
Can you tell me the way correct this error?
p.s when I return "RETURN_TRUE", this source work well.
And I'm sorry that I'm not good at english. :)
=====================================================
Solution Development 1 Kim, JuYang 3 SOFT Ltd.
PHONE : 02-3772-0303
FAX : 02-786-1454
Home Page : http://www.3soft.com
Email : sowon77 <email protected>
=====================================================
- Next message: Teodor Cimpoesu: "Re: [phplib-dev] How can I make php dlls?"
- Previous message: Alexander Aulbach: "Re: [phplib-dev] cvs commit"
- Next in thread: Teodor Cimpoesu: "Re: [phplib-dev] How can I make php dlls?"
- Reply: Teodor Cimpoesu: "Re: [phplib-dev] How can I make php dlls?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

