Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

access violationÎÊÌâ - VC/MFC / »ù´¡Àà

´ó¼ÒºÃ°¢£¬ÎÒÓÐÒ»¸öÀà
class CItem
{
public:
char itemName[20][100];
CItem();
};

CItem::CItem()
{
memset(itemName,0x00,sizeof(itemName));
}

CItem* items[20]={NULL};


items[0]=new CItem();
ÓÐÒ»¸öCstring¶ÔÏóitemInLine£¬È»ºóÎÒ³¢ÊÔÏòitems[0]ËùÖ¸Ïòµ½ÄǸö¶ÔÏóµÄitemNameÀ�±´×Ö·û´®
CItem* ptrToItem;
ptrToItem=items[0];
strcpy((ptrToItem->itemName[index]),itemInLine.GetBuffer(0));


strcpyÄǾäÌáʾaccess violationÁË£¬Çó¸ßÈËÖ¸µã£¬Ð»Ð»
itemInLine.GetBuffer(0))-->itemInLine.GetBuffer(itemInLine.GetLength()+1)

indexÊǶàÉÙ°¡£¿

ÒýÓÃ

indexÊǶàÉÙ°¡£¿

±§Ç¸£¬Íü¼ÇдÁË£¬indexÊÇ0

index ¿ÉÄÜʹÊý×éÔ½½çÁË, indexµÄÖµÊǶàÉÙ?.

ÒýÓÃ

index ¿ÉÄÜʹÊý×éÔ½½çÁË, indexµÄÖµÊǶàÉÙ?.

indexÊÇ0¡«¡«¡«


¶î¡£¡£¡£ÄǾÍÂé·³´ó¼ÒµÄÑÛ¾¦ÁË

class CItem
{
public:
char* type;
int left;
int top;
char* style;

int lineIndex;
int columnIndex;
int totalItem;
int len[20];
int count[20];
char itemName[20][100];
char item[20][100];
char toPrint[50][46];
CItem();
};
CItem::CItem()
{
type=NULL;
left=8;
top=0;
style=NULL;
lineIndex=0;
columnIndex=0;
totalItem=0;
memset(toPrint,0x20


Ïà¹ØÎÊ´ð£º

springÁ¬½Óaccess³öÏÖ´íÎó

´íÎóÌáʾ£º
Error creating bean with name 'DAOProxy' defined in class path resource [appcontext.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionMana ......

ACCESS Êý¾Ý²éѯÎÊÌâ ÔÚÏßµÈ - Web ¿ª·¢ / ASP

ÏÂÃæÊÇÊý¾Ý
ID Money PID
1 50  
2 40 1
3 30 1
4 ......

accessÊý¾Ý¿âÁ¬½Ó - Web ¿ª·¢ / ASP

ÎÒÁ¬½ÓaccessÊý¾Ý¿â£¬ÒÔǰһֱºÜºÃ£¬×î½üÈ´×ÜÊdzö´í£¨Êý¾Ý¿âÁ¬½Ó³ö´í!£¡£©£¬´úÂëÈçÏ£º
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(""&db&" ......

VB Accessµ¼³öÊý¾Ýµ½DB2 - VB / »ù´¡Àà

ÎÒÏë´ÓAccess µ¼³öÊý¾Ýµ½DB2£¬ ±ÈÈç˵Access±íÖÐÓÐ3ÌõÊý¾Ý£¬ÎÒÒªµ¼ÈëDB2£¬²¢ÇÒҪɾ³ý¡£ µ«ÊDzåÈë3ÐпÉÒԳɹ¦£¬É¾³ýÖ»ÄÜɾ³ý1ÐУ¬²¢ÇÒµÚÒ»ÐÐɾ³ý3±é£¨ÒòΪÓÐ3ÌõÊý¾Ý£©¡£ ´úÂëÈçÏ£º¿ÒÇë¸÷λ¸ßÊÖÖ¸µãÒ»¶þ£¬Ð¡µÜ¸Ð¼¤²»¾ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ