Ö¸ÕëÓëÊý×é0xc0000005 Access ViolationÎÊÌâ
ÕâÊÇÌ·ºÆÇ¿ÊéÖеĴúÂ룬Çë´ó¼Ò°ïæÕÒÏÂÔÒò£º
==============ÕâÊÇʹÓÃÊý×é±íʾ·¨Õý³£ÔËÐеİ汾===================
#include<stdio.h>
copy_string(char from[],char to[]){
int i=0;
while(from[i]!='\0'){
to[i] = from[i];
i++;
}
to[i] = '\0';
}
main(){
char a[] = "I am a teacher.";
char b[] = "you are a student.";
printf("string a is:%s\nstring b is:%s\n",a,b);
copy_string(a,b);
printf("string a is:%s\nstring b is:%s\n",a,b);
}
=================================================================
==================ÕâÊÇʹÓÃÖ¸Õë±íʾ·¨±¨´íµÄ°æ±¾===================
#include<stdio.h>
copy_string(char from[],char to[]){
int i=0;
while(from[i]!='\0'){
to[i] = from[i];
i++;
}
to[i] = '\0';
}
main(){
//char a[] = "I am a teacher.";
//char b[] = "you are a student.";
char *a = "I am a teacher.";
char *b = "you are a student.";
printf("string a is:%s\nstring b is:%s\n",a,b);
copy_string(a,b);
printf("string a is:%s\nstring b is:%s\n",a,b);
}
=============================================================
¿ÒÇë¸÷λÅóÓѰïæ½âÊÍÏÂΪºÎ±¨ÈçÏ´íÎó£º
0xc0000005 Access Violation
лл´ó¼Ò£¡
1.ch
Ïà¹ØÎÊ´ð£º
Çë´óÏÀÖ¸µã£¬¹òлÁË£¬×îºÃÓдúÂë
ÒªÓõ½ADOX¶ÔÏ󣬲éϰïÖúÎĵµ£¬
http://hyadliujing.blog.163.com/blog/static/4484507420091020969233/?mode=edit
ûÓÐÕÒµ½°¡ ¿´ÁËÄãµÄ²©¿ÍÁË£¬ÎÒÊÇÏ뽫accessÀïÃæµÄ¸½¼þ±£´æ ......
accessÖеÄtextÐ͵ÄÊý×Ö£¬Ôõô±È½Ï´óС°¡£¿
´ó¼ÒÖªµÀÂð?
ÒòΪÎÒÏë¸ù¾ÝÕâÒ»ÁÐÊý¾ÝµÄ´óС²éѯһЩ¶«Î÷
¾Ù¸öÀý×Ó£º
¾ÍÊÇ£¬ÎÒÓÐÒ»ÁÐÊý¾ÝΪ±àÂ룺
ÊÇtextÐ͵ÄÊý×Ö£ºÈç
1101
1102
1103
µÈ£¬
ÎÒÏÖÔÚҪȡ³ö±àÂë±È ......
¸÷λ¸ßÊֺã¬Âé·³°ïÎÒ¿´ÏÂÕâ¸öÊý¾Ý¿âÁ¬½ÓÎÊÌ⣺
×öÁËÒ»¸öBBSµ«ÊÇÊý¾Ý¿â¾ÍÊÇÁ¬½Ó²»ÉÏ¡£´íÎó´úÂëÈçÏÂ
HTTP Status 500 -
------------------------------------------------------------------------------- ......
ÎÒÊÖ¶¯Ìí¼Ó»ùÓÚCRecordSetÀàµÄÅÉÉúÀàCODBCDemoSetÀà,ÊÇÀûÓÃclass wizardÌí¼ÓµÄ¡£²¢ÇÒ¶¨ÒåÁËÒ»¸öÈ«¾Ö±äÁ¿CODBSDemoSet*m_pCommon.µ«ÊÇÎÒ³ÌÐò²»ÄÜÔËÐС£ÎÒ¸ú×ÙÁËһϣ¬µ½ÁËm_pCommon->Isopen£¨£©´¦·¢Éú´íÎ󣬣 ......
±í½á¹¹:
table1
Ö¤¼þºÅ ʱ¼ä
X31 2010-01-11
3BC 2010-02-03
3AD 2010-02-03
F23 2010-02-09
......
ÏÖÔÚҪͳ¼ÆÒ»¸öʱ¼ä¶ÎÈç 2010-01-09 µ½ 2010-02-09¼äµÄÊý¾Ý,
ÆÚ´ý½ ......