memcpy on build 604

 

I am using one of mysql wrapper that i have found here in the forum but found out that most of the time it returns an error "Access violation read to 0x0000000 in 'msvcrt.dll'" . Do you have any idea on what are the work around to eliminate this error.


Thanks.

 
show the relevent code
 
qjol:
show the relevent code


#import "msvcrt.dll"
  int memcpy(char &Destination[], int Source, int Length);
  int memcpy(char &Destination[], long Source, int Length);
  int memcpy(int &dst,  int src, int cnt);
  int memcpy(long &dst,  long src, int cnt);  
#import


 
according to MSDN - Microsoft memcpy's Compatibility is for ANSI vot for UNICODE
 
qjol:
according to MSDN - Microsoft memcpy's Compatibility is for ANSI vot for UNICODE

That code is embedded on the include file and on my EA i am using another header file using UNICODE2ANSI.
 
raven.chrono:

That code is embedded on the include file and on my EA i am using another header file using UNICODE2ANSI.
Maybe this article can help you : https://www.mql5.com/en/articles/364
Reason: