Click here to Skip to main content
16,005,048 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Error C2248: cannot access protected struct declared in class Pin
toxcct9-Oct-06 4:26
toxcct9-Oct-06 4:26 
GeneralRe: Error C2248: cannot access protected struct declared in class Pin
Checker20039-Oct-06 4:30
Checker20039-Oct-06 4:30 
GeneralRe: Error C2248: cannot access protected struct declared in class Pin
toxcct9-Oct-06 4:38
toxcct9-Oct-06 4:38 
GeneralRe: Error C2248: cannot access protected struct declared in class Pin
Zac Howland9-Oct-06 4:42
Zac Howland9-Oct-06 4:42 
AnswerRe: Error C2248: cannot access protected struct declared in class Pin
Galatei9-Oct-06 3:55
Galatei9-Oct-06 3:55 
GeneralRe: Error C2248: cannot access protected struct declared in class Pin
Checker20039-Oct-06 4:24
Checker20039-Oct-06 4:24 
GeneralRe: Error C2248: cannot access protected struct declared in class Pin
Galatei9-Oct-06 4:32
Galatei9-Oct-06 4:32 
QuestionWhy is there an error when program CBT hook processes with DAO Pin
redkey_pavel9-Oct-06 3:31
redkey_pavel9-Oct-06 3:31 
Confused | :confused:
LRESULT CALLBACK CBTProc(

int code, // hook code
WPARAM wParam, // removal flag
LPARAM lParam // address of structure with message
)
{
if (code < 0) return CallNextHookEx(CBTSysHook, code, wParam, lParam);

if(code == HCBT_ACTIVATE)
{
HWND hWnd = (HWND) wParam;
TCHAR cWind[512], cClass[512];
GetWindowText( hWnd, cWind, 512);
GetClassName( hWnd, cClass, 512);

/*if ( (GetParent(GetParent(hWnd))==NULL) && ( IsWindow(GetParent(hWnd))==TRUE ) )
{

CStringW strWind, strClass;

AfxDaoInit(); // preparing for DAO
CDaoDatabase database;
CDaoRecordset recordset(& database);
// Open database and recordset
database.Open(_T("d:\\╠юш фюъєьхэЄ√\\┴рч√ фрээ√ї\\hookBase.mdb"));

recordset.Open(AFX_DAO_USE_DEFAULT_TYPE,
_T("SELECT * FROM hookspy"), 0);

// getting know Window Title and Class Name of hwnd
strWind.AppendFormat(_T("%s"), cWind);
strClass.AppendFormat(_T("%s"), cClass);

// adding new record
recordset.AddNew();
recordset.SetFieldValue(_T("lpszName"), strWind.GetString());
recordset.SetFieldValue(_T("lpszClass"), strClass.GetString());
recordset.SetFieldValue(_T("lpszAction"), _T("CBT activated"));
recordset.Update();

recordset.Close();
database.Close();
AfxDaoTerm();
} */
//AfxBeginThread(threadActiv, NULL);

/*if(_tcscmp(buff,_T("Effects")) == 0)
{
ShowWindow(hWnd,SW_HIDE);
g_hWndEffects = hWnd;

}
if(_tcscmp(buff,_T("Display Properties")) == 0)
{
ShowWindow(hWnd,SW_HIDE);
}*/
}
AnswerRe: Why is there an error when program CBT hook processes with DAO Pin
Galatei9-Oct-06 4:01
Galatei9-Oct-06 4:01 
GeneralRe: Why is there an error when program CBT hook processes with DAO Pin
redkey_pavel9-Oct-06 17:37
redkey_pavel9-Oct-06 17:37 
GeneralRe2: Why is there an error when program CBT hook processes with DAO Pin
redkey_pavel9-Oct-06 17:39
redkey_pavel9-Oct-06 17:39 
GeneralRe3: Why is there an error when program CBT hook processes with DAO Pin
redkey_pavel9-Oct-06 17:41
redkey_pavel9-Oct-06 17:41 
GeneralRe5: Why is there an error when program CBT hook processes with DAO Pin
redkey_pavel9-Oct-06 17:42
redkey_pavel9-Oct-06 17:42 
GeneralRe: Re5: Why is there an error when program CBT hook processes with DAO Pin
Hamid_RT9-Oct-06 18:41
Hamid_RT9-Oct-06 18:41 
GeneralRe: Further question Pin
redkey_pavel9-Oct-06 23:43
redkey_pavel9-Oct-06 23:43 
GeneralRe: Why is there an error when program CBT hook processes with DAO Pin
redkey_pavel9-Oct-06 17:55
redkey_pavel9-Oct-06 17:55 
QuestionWindow Borders Pin
Waldermort9-Oct-06 3:06
Waldermort9-Oct-06 3:06 
AnswerRe: Window Borders Pin
Galatei9-Oct-06 4:11
Galatei9-Oct-06 4:11 
QuestionHow to transparence the client area in SDI/MDI? Pin
fp20019-Oct-06 3:05
fp20019-Oct-06 3:05 
AnswerRe: How to transparence the client area in SDI/MDI? Pin
fp20019-Oct-06 4:31
fp20019-Oct-06 4:31 
AnswerRe: How to transparence the client area in SDI/MDI? Pin
Mark Salsbery9-Oct-06 7:33
Mark Salsbery9-Oct-06 7:33 
Questioncoloring splitter bar,box etc Pin
radhika289-Oct-06 2:12
radhika289-Oct-06 2:12 
QuestionMultithreading and multiple cores Pin
User 5826199-Oct-06 2:09
User 5826199-Oct-06 2:09 
AnswerRe: Multithreading and multiple cores Pin
Galatei9-Oct-06 2:25
Galatei9-Oct-06 2:25 
GeneralRe: Multithreading and multiple cores Pin
User 5826199-Oct-06 2:49
User 5826199-Oct-06 2:49 

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.