hello.. i have a problem with my program... i don't know how to call C function from C++ coding.. i already try use extern C, but it make my program illegal operation... how?? any one can help me!!?!?!? i hope someone can help me.. tq
aleyah
Posts
-
C in Visual C++ -
C and Visual C++i do as you write... but when i compile... it have this warning want.c(1957) : warning C4013: 'OpenLoginDlg' undefined; assuming extern returning int and i try to build exe... it appear Microsoft Visual C++ Debug Library... so what must i do now??
-
C and Visual C++anyone can help me!!!!
-
menu barthanks... can you help me to solve my above problem... (c and visual c++)
-
C and Visual C++never mind for login dialog... but i want you to solve this problem... because this i my main problem........ this is my C code case IDC_OK: database db; //this i call function from c++ file db.Open(CRecordset::dynaset,"password); while(!db.IsEOF()) { if(db.m_userID == IDC_USER_NAME) { if(db.m_password == IDC_PASSWORD) { ShellExecute (NULL, "open", "d:\\games\\Same.exe",NULL,NULL,SW_SHOWNA); exit(0); } else { AfxMessageBox("Incorrect password!"); m_word=""; UpdateData(false); return; } } loginConn.MoveNext(); } but this error appear error C2065: 'database' : undeclared identifier error C2146: syntax error : missing ';' before identifier 'db' error C2065: 'db' : undeclared identifier error C2224: left of '.Open' must have struct/union typeerror C2065: 'CRecordset' : undeclared identifier error C2143: syntax error : missing ')' before ':'
-
menu bari do this void CMainFrame::OnLogin() { login dlg; dlg.DoModal(); } but this error appear!! error C2065: 'login' : undeclared identifier error C2146: syntax error : missing ';' before identifier 'dlg' error C2065: 'dlg' : undeclared identifier error C2228: left of '.DoModal' must have class/struct/union type
-
C and Visual C++where to i post my code in this forum??
-
menu barthanks... it's work, but can you tell me how to appear the dialog box after we click the menu bar?????
-
C and Visual C++Hello.. I want to know something! In Visual C++ also can use C code, but can or not C code in same project call C++ function?? like this, my C code is in what.c and I want to call function in loginDlg.C++, the function name is CLoginDLg... i try do this in file what.c CLoginDlg dlg; dlg.DoModal(); but this error appear when i compile it error C2065: 'CLoginDlg' : undeclared identifier error C2146: syntax error : missing ';' before identifier 'dlg' error C2065: 'dlg' : undeclared identifier error C2224: left of '.DoModal' must have struct/union type anybody can help me.. or i do wrong!!??
-
menu barhi all; I am writting an MFC app using the Doc/View and MDI. My problem is my additional menu bar was grayed and can not click but i dont set it as grayed. And the original menu bar was appear and can click on it. So how to solve this problem.
-
error C2504hello.. anybody can help me? Please help me to solve this error problem : "error C2504: 'CRecordset' : base class undefined" tq..
-
user loginbut how to write in visual c++ code???
-
user loginhello; i new in Visual C++, so i need some help to how do compare user input (ID and password) with data in my database file. and now i use Ms Access as my database file... please help me... thanks