Click here to Skip to main content
16,012,468 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to get the cut point of the line and the rect Pin
Christian Graus31-Mar-02 18:48
protectorChristian Graus31-Mar-02 18:48 
GeneralRe: How to get the cut point of the line and the rect Pin
Feng Qin31-Mar-02 20:33
Feng Qin31-Mar-02 20:33 
AnswerRe: How to get the cut point of the line and the rect Pin
Michael A. Barnhart31-Mar-02 15:42
Michael A. Barnhart31-Mar-02 15:42 
GeneralRe: How to get the cut point of the line and the rect Pin
PJ Arends1-Apr-02 5:37
professionalPJ Arends1-Apr-02 5:37 
GeneralRe: How to get the cut point of the line and the rect Pin
Michael A. Barnhart1-Apr-02 12:04
Michael A. Barnhart1-Apr-02 12:04 
QuestionLoadBitmap from resource using VS.NET? Pin
31-Mar-02 1:14
suss31-Mar-02 1:14 
GeneralListBox on CEditView Pin
31-Mar-02 1:15
suss31-Mar-02 1:15 
Generalheh ... progress but... Pin
l a u r e n31-Mar-02 1:05
l a u r e n31-Mar-02 1:05 
i got the wabapi.h thing sorted out (i think) but now am hitting other problems

what i'm trying to do is use the windows address book in my app and apparently i have to jump thru several hoops wearing a pink tutu to do it (sheesh cant they make this stuff easier!) ... anyways i got this code compiling and working up to the indicated line ... at which point i get an access violation ... *sigh*

any clues would help a lot Smile | :)

---------------------------------------

HRESULT CL4m3Dlg::InitWAB (LPWABOBJECT *lppWABObject,LPADRBOOK *lppAdrBook)
{
HRESULT hr = E_FAIL;
CString csKey;
CString csDllPath;
CString csDefault;
WAB_PARAM wbp;

wbp.cbSize = sizeof(WAB_PARAM);
wbp.hwnd = NULL;
wbp.szFileName = NULL;
wbp.ulFlags = 0;

CRegistry cr;
cr.SetRootKey(HKEY_LOCAL_MACHINE);
cr.SetKey(WAB_DLL_PATH_KEY,false);
csDllPath = cr.ReadString(csDllPath,csDefault);

// hinstWAB = LoadLibrary_WABDll(); <--- dunno what this is
hinstWAB = LoadLibrary(csDllPath);

if (hinstWAB){
lpfnWABOpen = (LPWABOPEN) GetProcAddress(hinstWAB, "WABOpen");
if (lpfnWABOpen)

----------> access violation happens on this line
hr = lpfnWABOpen (lppAdrBook,lppWABObject,&wbp, 0);
}

return hr;
}


-------------------------------------------------


---
"all's fair in love and war but in love there is no geneva convention"
GeneralRe: heh ... progress but... Pin
SeNs31-Mar-02 7:28
SeNs31-Mar-02 7:28 
GeneralRe: heh ... progress but... Pin
l a u r e n31-Mar-02 9:35
l a u r e n31-Mar-02 9:35 
GeneralRe: heh ... progress but... Pin
1-Apr-02 9:42
suss1-Apr-02 9:42 
GeneralA bitmap Question Pin
31-Mar-02 0:56
suss31-Mar-02 0:56 
GeneralRe: A bitmap Question Pin
PJ Arends31-Mar-02 9:06
professionalPJ Arends31-Mar-02 9:06 
GeneralVC++ 6 for other OS Pin
Jon Newman31-Mar-02 0:51
Jon Newman31-Mar-02 0:51 
GeneralRe: VC++ 6 for other OS Pin
Michael P Butler31-Mar-02 1:21
Michael P Butler31-Mar-02 1:21 
GeneralRe: VC++ 6 for other OS Pin
Jon Newman31-Mar-02 1:19
Jon Newman31-Mar-02 1:19 
GeneralRe: VC++ 6 for other OS Pin
Michael P Butler31-Mar-02 1:27
Michael P Butler31-Mar-02 1:27 
GeneralRe: VC++ 6 for other OS Pin
Jon Newman31-Mar-02 1:29
Jon Newman31-Mar-02 1:29 
GeneralRe: VC++ 6 for other OS Pin
Christopher Duncan1-Apr-02 2:27
Christopher Duncan1-Apr-02 2:27 
GeneralWindows styles Pin
31-Mar-02 0:51
suss31-Mar-02 0:51 
GeneralRe: Windows styles Pin
Tim Smith31-Mar-02 2:24
Tim Smith31-Mar-02 2:24 
QuestionAny api to encrypt the text?? Pin
30-Mar-02 23:17
suss30-Mar-02 23:17 
AnswerRe: Any api to encrypt the text?? Pin
SeNs31-Mar-02 4:32
SeNs31-Mar-02 4:32 
AnswerRe: Any api to encrypt the text?? Pin
Neville Franks31-Mar-02 10:03
Neville Franks31-Mar-02 10:03 
GeneralRe: Any api to encrypt the text?? Pin
alex.barylski31-Mar-02 21:54
alex.barylski31-Mar-02 21:54 

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.