Click here to Skip to main content
15,895,799 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Alternative to MFC for GUI Design? Pin
Nitron10-Nov-03 8:36
Nitron10-Nov-03 8:36 
GeneralRe: Alternative to MFC for GUI Design? Pin
Anonymous10-Nov-03 9:39
Anonymous10-Nov-03 9:39 
GeneralVC++ 6.0(MFC)-installation package Pin
Manasranajn9-Nov-03 8:53
Manasranajn9-Nov-03 8:53 
GeneralRe: VC++ 6.0(MFC)-installation package Pin
Toni789-Nov-03 12:29
Toni789-Nov-03 12:29 
GeneralRe: VC++ 6.0(MFC)-installation package Pin
BaldwinMartin9-Nov-03 22:14
BaldwinMartin9-Nov-03 22:14 
GeneralCRichEditView Pin
LOSTTWARE.com9-Nov-03 8:18
LOSTTWARE.com9-Nov-03 8:18 
Questionwab format ? Pin
kendao9-Nov-03 8:06
kendao9-Nov-03 8:06 
AnswerRe: wab format ? Pin
BaldwinMartin9-Nov-03 22:07
BaldwinMartin9-Nov-03 22:07 
Easy check this console app out, It will explain all.
// main.h

#include <<windows.h>> //sorry for the double but I could not get singles to take.
#include <<crtdbg.h>>
#include <<iostream.h>>

#include <wab.h>

typedef HRESULT (WINAPI *fWABOpen)(LPADRBOOK*,LPWABOBJECT*,LPWAB_PARAM,DWORD);

int main()
{
HRESULT hRes;
LPADRBOOK lpAdrBook;
LPWABOBJECT lpWABObject;
LPWAB_PARAM lpWABParam = NULL;
DWORD Reserved2 = NULL;

HINSTANCE hinstLib;
hinstLib = LoadLibrary("C:\\Program Files\\Common Files\\System\\wab32");
fWABOpen procWABOpen;

if (hinstLib != NULL)
{
procWABOpen = (fWABOpen) GetProcAddress(hinstLib, "WABOpen");

if (procWABOpen != NULL)
{
hRes = (procWABOpen)(&lpAdrBook,&lpWABObject,NULL,Reserved2);
_ASSERTE(hRes == S_OK);
if (hRes != S_OK) exit(1);

//lpWABObject->Find(lpAdrBook,NULL);
ULONG lpcbEntryID;
ENTRYID *lpEntryID;
hRes = lpAdrBook->GetPAB(
&lpcbEntryID,
&lpEntryID
);
_ASSERTE(hRes == S_OK);
if (hRes != S_OK) exit(2);

ULONG ulFlags = MAPI_BEST_ACCESS;
ULONG ulObjType = NULL;
LPUNKNOWN lpUnk = NULL;
hRes = lpAdrBook->OpenEntry(
lpcbEntryID,
lpEntryID,
NULL,
ulFlags,
&ulObjType,
&lpUnk
);

ulFlags = NULL;
//IABTable *lpTable;

if (ulObjType == MAPI_ABCONT)
{
IABContainer *lpContainer = static_cast <iabcontainer *="">(lpUnk);
LPMAPITABLE lpTable = NULL;
hRes = lpContainer->GetContentsTable(
ulFlags,
&lpTable
);
_ASSERT(lpTable);
ULONG ulRows;
hRes = lpTable->GetRowCount(0,&ulRows);
_ASSERTE(hRes == S_OK);
cout << "Rows " << ulRows << endl;
SRowSet *lpRows;

hRes = lpTable->QueryRows(
ulRows, // Get all Rows
0,
&lpRows
);
for(ULONG i=0;i<lprows->cRows;i++)
{
SRow *lpRow = &lpRows->aRow[i];
cout << i << " : " << lpRow->cValues << endl;
for(ULONG j=0;j<lprow->cValues;j++)
{
SPropValue *lpProp = &lpRow->lpProps[j];
cout << "\t" << j << " : " << (void*)lpProp->ulPropTag << " : ";

if (lpProp->ulPropTag == PR_DISPLAY_NAME_A)
cout << "Display Name: " << lpProp->Value.lpszA;
if (lpProp->ulPropTag == PR_EMAIL_ADDRESS_A)
cout << "Email Address: " << lpProp->Value.lpszA;
if (lpProp->ulPropTag == PR_NICKNAME_A)
cout << "Nickname: " << lpProp->Value.lpszA;
if (lpProp->ulPropTag == PR_ADDRTYPE_A)
cout << "Addrtype: " << lpProp->Value.lpszA;
cout << endl;
}
lpWABObject->FreeBuffer(lpRow);
}
lpWABObject->FreeBuffer(lpRows);
}
}
FreeLibrary(hinstLib);
}
return 0;
}


Best Wishes,
ez_way
AnswerRe: wab format ? Pin
Roger Allen10-Nov-03 1:06
Roger Allen10-Nov-03 1:06 
QuestionHow to use Windows Media Player control to play avi file Pin
Mohsen Saad9-Nov-03 5:37
Mohsen Saad9-Nov-03 5:37 
GeneralSolution for object identity Pin
vmaltsev9-Nov-03 3:29
vmaltsev9-Nov-03 3:29 
GeneralRe: Solution for object identity Pin
Johnny ²9-Nov-03 3:45
Johnny ²9-Nov-03 3:45 
GeneralMountPoints Pin
Thomas Weidenmueller9-Nov-03 2:57
Thomas Weidenmueller9-Nov-03 2:57 
GeneralCreating Ico file Pin
Chernobog19-Nov-03 0:40
Chernobog19-Nov-03 0:40 
GeneralRe: Creating Ico file Pin
Ted Ferenc9-Nov-03 3:19
Ted Ferenc9-Nov-03 3:19 
GeneralRe: Creating Ico file Pin
Chernobog19-Nov-03 3:30
Chernobog19-Nov-03 3:30 
GeneralRe: Creating Ico file Pin
Ted Ferenc9-Nov-03 3:49
Ted Ferenc9-Nov-03 3:49 
GeneralRe: Creating Ico file Pin
Chernobog19-Nov-03 4:19
Chernobog19-Nov-03 4:19 
GeneralWhy EnumDisplaySettingsEx doesn't work Pin
w_yufeng9-Nov-03 0:13
w_yufeng9-Nov-03 0:13 
GeneralRe: Why EnumDisplaySettingsEx doesn't work Pin
vmaltsev9-Nov-03 3:52
vmaltsev9-Nov-03 3:52 
GeneralRe: Why EnumDisplaySettingsEx doesn't work Pin
w_yufeng9-Nov-03 14:19
w_yufeng9-Nov-03 14:19 
GeneralRe: Why EnumDisplaySettingsEx doesn't work Pin
Tim Smith9-Nov-03 14:41
Tim Smith9-Nov-03 14:41 
GeneralProblem with checkboxes in CListCtrl Pin
Dominik Reichl8-Nov-03 23:39
Dominik Reichl8-Nov-03 23:39 
GeneralRe: Problem with checkboxes in CListCtrl Pin
Michael Dunn9-Nov-03 6:00
sitebuilderMichael Dunn9-Nov-03 6:00 
GeneralRe: Problem with checkboxes in CListCtrl Pin
Dominik Reichl9-Nov-03 6:13
Dominik Reichl9-Nov-03 6:13 

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.