Click here to Skip to main content
15,891,253 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSharing precompiled header in VC+ 2005 Pin
topus22-May-06 7:39
topus22-May-06 7:39 
AnswerRe: Sharing precompiled header in VC+ 2005 Pin
David Crow22-May-06 7:44
David Crow22-May-06 7:44 
GeneralRe: Sharing precompiled header in VC+ 2005 Pin
topus23-May-06 0:12
topus23-May-06 0:12 
QuestionResizing child frame with nested csplitterwnd Pin
Tarek Jabri22-May-06 7:37
Tarek Jabri22-May-06 7:37 
AnswerRe: Resizing child frame with nested csplitterwnd Pin
led mike22-May-06 7:54
led mike22-May-06 7:54 
GeneralRe: Resizing child frame with nested csplitterwnd Pin
Tarek Jabri22-May-06 8:01
Tarek Jabri22-May-06 8:01 
GeneralRe: Resizing child frame with nested csplitterwnd Pin
led mike22-May-06 8:10
led mike22-May-06 8:10 
QuestionSQL Server tables are readonly, why? Pin
e-DJ22-May-06 6:40
e-DJ22-May-06 6:40 
Hi,

I have developed a small application, using ODBC with Access.
I then ported my tables to SQL Server 2000.

When I Open() a Recordset, all my tables are opened in read/write-mode, except two tables, that I use all the time.

These two tables differ from the other tables only, that they contain a CTime field.
Here is my code
Favorit.m_strFilter="Username='"+myUser+"' AND Dokument='"+Number+"'";
Favorit.Open();
if(!Favorit.IsBOF())
{
    Favorit.MoveFirst();
    Favorit.Edit();
}
else
{
    Favorit.AddNew();
    Favorit.m_User=myUser;
    Favorit.m_Dokument=Number;
    Favorit.SetFieldNull(&(Favorit.m_Gelesen));
}
Favorit.m_Favorit=bChecked;
Favorit.Update();
Favorit.Close();

When AddNew() I get the message, that this record is readonly. It works well in Access, but AddNew() throws an exception, that this record is readonly. Why? And how can I repair it?

Juergen
QuestionRe: SQL Server tables are readonly, why? Pin
David Crow22-May-06 6:49
David Crow22-May-06 6:49 
AnswerRe: SQL Server tables are readonly, why? Pin
e-DJ23-May-06 5:45
e-DJ23-May-06 5:45 
QuestionRe: SQL Server tables are readonly, why? Pin
David Crow24-May-06 2:32
David Crow24-May-06 2:32 
AnswerRe: SQL Server tables are readonly, why? Pin
e-DJ24-May-06 4:13
e-DJ24-May-06 4:13 
QuestionRe: SQL Server tables are readonly, why? Pin
David Crow25-May-06 2:43
David Crow25-May-06 2:43 
AnswerRe: SQL Server tables are readonly, why? Pin
e-DJ25-May-06 21:14
e-DJ25-May-06 21:14 
GeneralRe: SQL Server tables are readonly, why? Pin
David Crow26-May-06 2:25
David Crow26-May-06 2:25 
GeneralRe: SQL Server tables are readonly, why? Pin
e-DJ26-May-06 3:06
e-DJ26-May-06 3:06 
GeneralRe: SQL Server tables are readonly, why? Pin
e-DJ28-May-06 22:19
e-DJ28-May-06 22:19 
GeneralRe: SQL Server tables are readonly, why? Pin
e-DJ29-May-06 4:16
e-DJ29-May-06 4:16 
QuestionWhat's the difference between GetLastError and WSAGetLastError? Pin
followait22-May-06 6:40
followait22-May-06 6:40 
GeneralRe: What's the difference between GetLastError and WSAGetLastError? Pin
Maxwell Chen22-May-06 6:42
Maxwell Chen22-May-06 6:42 
AnswerRe: What's the difference between GetLastError and WSAGetLastError? Pin
Zac Howland22-May-06 9:25
Zac Howland22-May-06 9:25 
GeneralRe: What's the difference between GetLastError and WSAGetLastError? Pin
followait22-May-06 15:53
followait22-May-06 15:53 
GeneralRe: What's the difference between GetLastError and WSAGetLastError? Pin
Zac Howland23-May-06 3:09
Zac Howland23-May-06 3:09 
GeneralRe: What's the difference between GetLastError and WSAGetLastError? Pin
followait22-May-06 16:14
followait22-May-06 16:14 
QuestionError while using list class Pin
Cyber Friend22-May-06 5:55
Cyber Friend22-May-06 5:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.