Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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


Ïà¹ØÎÊ´ð£º

VS2008²Ù×÷AccessÎÊÌâ - .NET¼¼Êõ / C#

VS2008ÖÐC#²Ù×÷AccessÊý¾Ý¿â£¬ÍøÉÏÏÂÔØÁËÒ»¸öÀ࣬¿ÉÒÔÕý³£Á¬½Ó£¬¶ÁÈ¡Êý¾Ý£¬µ«ÊDzåÈëɾ³ý²Ù×÷ËƺõÓÐÎÊÌ⣬ÒÔÏÂÊDz¿·Ö´úÂ룺
Êý¾Ý¿âÀࣺ
namespace AccessDb
{
  public class AccessDbClass
  { ......

AccessÖд´½¨ÊÓͼ - MS-SQL Server / »ù´¡Àà

create view ±íÃû 
as
select a.a1,b.b1 from a inner join b on a.id=b.id
Õâ¸öÓï·¨ÔõôдÉÏÈ¥ÊÇ´íµÄÔÚAccessÀï
ACCESSºÃÏñ²»Ö§³Öcreate view
Äã¿ÉÒÔÔÚACCESSÖе¥»÷¡°ÊÓͼ¡±²Ëµ¥£¬Ñ¡Ôñ¡°SQLÊÓͼ¡±ÃüÁ ......

vc++ Access insert into - C/C++ / C++ ÓïÑÔ

ÎÒÓÃVC++×ö¸öС³ÌÐò£¬ÐèÒªÁ¬½ÓAccessÊý¾Ý¿â¡£Êý¾Ý¿âÁ¬½ÓÊdzɹ¦µÄ¡£ÔÚÏòÊý¾Ý¿â²åÈëÊý¾Ýʱ£¬×ÜÊÇÌáʾ"INSERT INTOÓï¾äµÄÓï·¨´íÎó"¡£µ«ÎÒ¸ú×ÙÎÒµÄVC++³ÌÐò½«insertÓï¾ä¿½³öÀ´·Åµ½ Access ÖÐÖ±½ÓÖ´ÐÐÊÇ¿ÉÒԵġ ......

C# ²Ù×÷accessÊý¾Ý¿â - .NET¼¼Êõ / C#

public class OleConn
  {
  private static OleDbConnection conn;
  private OleConn()
  { 
  }
  public static OleDbConnec ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ