Download MetaTrader 5

memcpy on build 604

To add comments, please log in or register
raven.chrono
324
raven.chrono  

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.

qjol
3243
qjol  
show the relevent code
raven.chrono
324
raven.chrono  
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


qjol
3243
qjol  
according to MSDN - Microsoft memcpy's Compatibility is for ANSI vot for UNICODE
raven.chrono
324
raven.chrono  
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.
Alain Verleyen
Moderator
31186
Alain Verleyen  
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
To add comments, please log in or register