because the window of my vb6 application crashes when calling a function written in C
===

guys I'm newbie here on Stack Overflow, my problem is this I'm using 3.9.7 cURL library to download files from the internet, so I created a dynamic bibioteca of viculo. dll written in C using VC + + 6.0 the problem is that when either I call my function from within my vb6 application window locks and unlocks only after you have downloaded the file how do I solve this problem. Thank you all!