Click here to Skip to main content
15,890,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: what is zed doing here? Pin
CPallini5-Aug-14 10:02
mveCPallini5-Aug-14 10:02 
GeneralRe: what is zed doing here? Pin
Alex Sturza5-Aug-14 10:46
Alex Sturza5-Aug-14 10:46 
GeneralRe: what is zed doing here? Pin
CPallini5-Aug-14 20:48
mveCPallini5-Aug-14 20:48 
AnswerRe: what is zed doing here? Pin
jeron15-Aug-14 11:17
jeron15-Aug-14 11:17 
GeneralRe: what is zed doing here? Pin
Alex Sturza5-Aug-14 11:28
Alex Sturza5-Aug-14 11:28 
GeneralRe: what is zed doing here? Pin
jeron15-Aug-14 11:41
jeron15-Aug-14 11:41 
GeneralRe: what is zed doing here? Pin
Alex Sturza5-Aug-14 11:46
Alex Sturza5-Aug-14 11:46 
AnswerRe: what is zed doing here? Pin
Pete O'Hanlon5-Aug-14 12:27
mvePete O'Hanlon5-Aug-14 12:27 
This ties into the code you posted below. Specifically, it's related to this method:
C
void Database_set(struct Connection *conn, int id, const char *name, const char *email)
{
  struct Address *addr = &conn->db->rows[id];
  if(addr->set) die("Already set, delete it first");
 
  addr->set = 1;
Basically, it looks like it's controlling whether or not you've already set the value in this row - so, to set a value here, you would call Database_delete first, which changes the value in id from 1 to 0, which means that the rest of Database_set can continue.
GeneralRe: what is zed doing here? Pin
Alex Sturza6-Aug-14 4:12
Alex Sturza6-Aug-14 4:12 
GeneralRe: what is zed doing here? Pin
Pete O'Hanlon6-Aug-14 5:31
mvePete O'Hanlon6-Aug-14 5:31 
Questionin this code,where is called database_close?pls help Pin
Alex Sturza5-Aug-14 6:19
Alex Sturza5-Aug-14 6:19 
QuestionRe: in this code,where is called database_close?pls help Pin
Richard MacCutchan5-Aug-14 6:55
mveRichard MacCutchan5-Aug-14 6:55 
AnswerRe: in this code,where is called database_close?pls help Pin
Alex Sturza5-Aug-14 7:08
Alex Sturza5-Aug-14 7:08 
SuggestionRe: in this code,where is called database_close?pls help Pin
Richard MacCutchan5-Aug-14 7:41
mveRichard MacCutchan5-Aug-14 7:41 
AnswerRe: in this code,where is called database_close?pls help Pin
David Crow5-Aug-14 6:58
David Crow5-Aug-14 6:58 
GeneralRe: in this code,where is called database_close?pls help Pin
Alex Sturza5-Aug-14 7:08
Alex Sturza5-Aug-14 7:08 
QuestionConvert WMI Win32_OperatingSystem InstallDate to mm/dd/yyyy format. Pin
mbatra315-Aug-14 1:56
mbatra315-Aug-14 1:56 
AnswerRe: Convert WMI Win32_OperatingSystem InstallDate to mm/dd/yyyy format. Pin
«_Superman_»5-Aug-14 2:09
professional«_Superman_»5-Aug-14 2:09 
Question'sprintf': cannot convert parameter 1 from 'TCHAR *[1024]' to 'char *' Pin
Swap95-Aug-14 1:33
Swap95-Aug-14 1:33 
AnswerRe: 'sprintf': cannot convert parameter 1 from 'TCHAR *[1024]' to 'char *' Pin
«_Superman_»5-Aug-14 2:04
professional«_Superman_»5-Aug-14 2:04 
GeneralRe: 'sprintf': cannot convert parameter 1 from 'TCHAR *[1024]' to 'char *' Pin
Swap95-Aug-14 3:43
Swap95-Aug-14 3:43 
GeneralRe: 'sprintf': cannot convert parameter 1 from 'TCHAR *[1024]' to 'char *' Pin
Swap96-Aug-14 1:31
Swap96-Aug-14 1:31 
GeneralRe: 'sprintf': cannot convert parameter 1 from 'TCHAR *[1024]' to 'char *' Pin
«_Superman_»6-Aug-14 20:22
professional«_Superman_»6-Aug-14 20:22 
AnswerRe: 'sprintf': cannot convert parameter 1 from 'TCHAR *[1024]' to 'char *' Pin
CPallini5-Aug-14 2:36
mveCPallini5-Aug-14 2:36 
GeneralRe: 'sprintf': cannot convert parameter 1 from 'TCHAR *[1024]' to 'char *' Pin
Swap95-Aug-14 3:50
Swap95-Aug-14 3:50 

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.