Вообщем, нужно установить библиотеку libcurl на Builder C++ либо на Visual Studio? Пробывал чёт не выходит.
Ничего не надо в линковщике делать. PHP: HINSTANCE libcurl = LoadLibrary( "libcurl.dll" ); CURL*(__stdcall *curl_easy_init)(); curl_easy_init =(CURL*(__stdcall*)())GetProcAddress(libcurl, "curl_easy_init" ); p.s.: BCB
ТАкс, сделал как написали выше, и получил вот такие ошибки =( C++ Builder 2009 Code: [ILINK32 Error] Error: Unresolved external '_RAND_status' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_RAND_screen' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_RAND_file_name' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_RAND_load_file' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_CTX_set_default_passwd_cb_userdata' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_CTX_set_default_passwd_cb' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_CTX_use_certificate_chain_file' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_CTX_use_certificate_file' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_CTX_use_PrivateKey_file' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_get_certificate' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_X509_get_pubkey' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_get_privatekey' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_EVP_PKEY_copy_parameters' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_EVP_PKEY_free' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_CTX_check_private_key' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_X509_STORE_CTX_get_current_cert' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_ERR_error_string_n' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_load_error_strings' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_library_init' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_ERR_free_strings' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_EVP_cleanup' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_peek' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_shutdown' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_SESSION_free' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_ERR_remove_state' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_X509_get_ext_d2i' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_sk_num' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_sk_value' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_GENERAL_NAMES_free' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_X509_NAME_get_index_by_NID' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_X509_NAME_get_entry' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_X509_NAME_ENTRY_get_data' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_ASN1_STRING_type' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_ASN1_STRING_length' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_CRYPTO_malloc' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_ASN1_STRING_data' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_ASN1_STRING_to_UTF8' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_DES_set_odd_parity' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|http_ntlm [ILINK32 Error] Error: Unresolved external '_DES_set_key' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|http_ntlm [ILINK32 Error] Error: Unresolved external '_DES_ecb_encrypt' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|http_ntlm [ILINK32 Error] Error: Unresolved external '_MD4_Init' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|http_ntlm [ILINK32 Error] Error: Unresolved external '_MD4_Update' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|http_ntlm [ILINK32 Error] Error: Unresolved external '_MD4_Final' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|http_ntlm [ILINK32 Error] Error: Unresolved external '_RAND_bytes' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|http_ntlm [ILINK32 Error] Error: Unresolved external '_MD5_Init' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|http_ntlm [ILINK32 Error] Error: Unresolved external '_MD5_Update' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|http_ntlm [ILINK32 Error] Error: Unresolved external '_MD5_Final' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|http_ntlm [ILINK32 Error] Error: Unresolved external '_inflate' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|content_encoding [ILINK32 Error] Error: Unresolved external '_inflateEnd' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|content_encoding [ILINK32 Error] Error: Unresolved external '_inflateInit_' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|content_encoding [ILINK32 Error] Error: Unresolved external '_zlibVersion' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|content_encoding [ILINK32 Error] Error: Unresolved external '_inflateInit2_' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|content_encoding [ILINK32 Error] Error: Unresolved external '_ldap_init' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ldap [ILINK32 Error] Error: Unresolved external '_ldap_set_option' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ldap [ILINK32 Error] Error: Unresolved external '_ldap_simple_bind_s' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ldap [ILINK32 Error] Error: Unresolved external '_ldap_search_s' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ldap [ILINK32 Error] Error: Unresolved external '_ldap_err2string' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ldap [ILINK32 Error] Error: Unresolved external '_ldap_first_entry' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ldap [ILINK32 Error] Error: Unresolved external '_ldap_get_dn' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ldap [ILINK32 Error] Error: Unresolved external '_ldap_first_attribute' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ldap [ILINK32 Error] Error: Unresolved external '_ldap_get_values_len' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ldap [ILINK32 Error] Error: Unresolved external '_ldap_value_free_len' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ldap [ILINK32 Error] Error: Unresolved external '_ldap_next_attribute' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ldap [ILINK32 Error] Error: Unresolved external '_ldap_memfree' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ldap [ILINK32 Error] Error: Unresolved external '_ber_free' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ldap [ILINK32 Error] Error: Unresolved external '_ldap_next_entry' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ldap [ILINK32 Error] Error: Unresolved external '_ldap_msgfree' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ldap [ILINK32 Error] Error: Unresolved external '_ldap_unbind_s' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ldap [ILINK32 Error] Error: Unresolved external '_SSLv23_client_method' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_TLSv1_client_method' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSLv2_client_method' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSLv3_client_method' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_CTX_free' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_CTX_new' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_CTX_callback_ctrl' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_CTX_ctrl' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_CTX_set_cipher_list' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_CTX_load_verify_locations' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_CTX_set_verify' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_free' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_new' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_set_connect_state' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_set_session' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_set_fd' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_connect' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_get_current_cipher' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_CIPHER_get_name' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_get1_session' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_get_peer_certificate' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_X509_get_subject_name' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_X509_get_issuer_name' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_X509_NAME_oneline' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_CRYPTO_free' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_get_verify_result' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_X509_verify_cert_error_string' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_X509_free' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_write' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_read' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_get_error' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_ERR_get_error' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_ERR_error_string' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSLeay' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|ssluse [ILINK32 Error] Error: Unresolved external '_SSL_pending' referenced from D:\PROGRAM FILES\CODEGEAR\RAD STUDIO\6.0\LIB\LIBCURL.LIB|sslgen
Я только пример использования привел - то, чего нет в инструкции к либкурлу. Сама инструкция в архиве с библиотекой.
и ещё вопрос, как избавиться от глюка, когда я жму кнопку, оно зависает на пару сек, а потом выводит инфу?
почему только msvc или builder? а в dev-cpp проект не компилится? для dev-cpp способ статической библиотеки есть
Такс... смог запустить в Borland c++ Buider 2009 Слил либы по линку что был в статье (правда не по тому, но по похожему) Обработал их coff2omf.exe (в комплекте к билдеру есть) Добавил в проект Слил libsasl.dll В итоге всё заработало =)) Осталось найти хорошее решение для регулярок и можно переходить с bcb 6.0 на 2009 =)