בעיה מוזרה

SeeNet

New member
בעיה מוזרה

בניסיון לשמור רשומה המכיל שדה תאריך למסד נתונים של אקסס דרך MFC נתקלתי בבעיה מוזרה ברשומה הראשונה הנשמרת בגרסת הדיבאג אני מקבל הודעת שגיאה" בגרסת הרליס אין בעיה לשמור את הרשומה. התופעה מתרחשת רק ברשומה המכילה תאריך. כמו כן בצעתי את ההמלצות המופיעות ב MSDN לגבי רשומות עם תאריך יש באג ידוע שם. מענין מתי מיקרוסופט יחליטו לתקן?
 

כאגאי

New member
אל תלכלך, אני מרשה לך

לכתוב ל MYSQL בלינוקס אם האינטרפייס של MFC לא מספק את צרכיך. אתה יכול לשים את הלינק ב MSDN איפה ש"יש באג ידוע"? בהתאם ללינק אני אדע אם תצטרך להראות גם את הקוד שלך. בכל אופן זה יהיה זמן מעולה להתקין את SP5.
 

SeeNet

New member
אוף

SP5 מותקן, מה לעשות הלקוח מתעקש על אקסס. לא מצאתי את הקישור ברשת אלא רק ב MSDN המקומי שלי מוזר תבצע חיפוש על הפונק הבאה RFX_Date2. בכל מקרה תודה
 

כאגאי

New member
אהמ,

Steps to Replace the RFX_Date Function The following steps detail one method of making the needed changes in RFX_Date: Copy the implementation of RFX_Date() (DEVSTUDIO\VC\MFC\SRC\DBRFX.CPP) into a new .cpp file, and rename the function to something such as RFX_Date2(). Create a header file for the .cpp file and include that in your recordset .cpp file. Be sure to type: #include "stdafx.h" at the top of your new .cpp file, and include the .cpp file in your project. Change all RFX_Date() calls for date parameters in your recordset's DoFieldExchange() to calls to RFX_Date2(). In your new RFX_Date2() implementation, comment out the following lines, which appear under the CFieldExchange::BindParam case: if (pFX->m_prs->IsParamStatusNull(nField - 1)) { pts = NULL; *plLength = SQL_NULL_DATA; } else To reduce the amount of code, you may want to remove all of the cases from the select statement except the case for CFieldExchange::BindParam, and add the following lines to the top of your replacement function: if( CFieldExchange::BindParam != pFX->m_nOperation ) { RFX_Date(pFX, szName, value); return; }​
עשית את כל הדברים האלה? בטוח?
 

SeeNet

New member
למשהוא יש פתרון

הבעיה נמשכת כרגיל למרות ביצוע מדויק של כל הוראת מיקרוסופט. כמו כן לא הצלחתי למצוא פתרונות באתרים אחרים. אם משהוא נתקל בבעיה בעבר אשמח לקבל כל סיוע. (כרגע אני שוקל לשמור את התאריך כ - STRING ולהפוך אותו לתאריך מעט מסורבל אך לפחות עובד) בתודה מראש
 
למעלה