Click here to Skip to main content

C / C++ / MFC

 
AnswerRe: [SOLVED] how to unsigned int64 to two unsigned int32 values Pinmember«_Superman_»10-Jan-13 19:39 
GeneralRe: [SOLVED] how to unsigned int64 to two unsigned int32 values Pinmembervishalgpt14-Jan-13 16:25 
GeneralRe: [SOLVED] how to unsigned int64 to two unsigned int32 values Pinmember«_Superman_»14-Jan-13 18:55 
GeneralRe: [SOLVED] how to unsigned int64 to two unsigned int32 values Pinmembervishalgpt14-Jan-13 20:01 
QuestionHTTP server in C. How to implement Keep-Alive? Pinmemberjohanm_29-Jan-13 21:02 
SuggestionRe: HTTP server in C. How to implement Keep-Alive? PinmvpRichard MacCutchan9-Jan-13 23:24 
GeneralRe: HTTP server in C. How to implement Keep-Alive? Pinmemberjohanm_210-Jan-13 2:17 
QuestionProblem loading non-default wab PinmemberMember 8689269-Jan-13 3:31 
Hi
I'm having trouble trying to load a non-default .wab file (I know it's old hat but need to keep it going for my XP users). I'm running it on Vista and although I'm supplying a filename it keeps loading my Vista Contacts instead instead of the specific wab addresses.
It must be going wrong around here (mostly stock code from the msdn sample code):
 
// (pszFileName is const char *)
 
if(m_hinstWAB)
{
// if we loaded the dll, get the entry point
//
m_lpfnWABOpen = (LPWABOPEN) GetProcAddress(m_hinstWAB, "WABOpen");
 
if(m_lpfnWABOpen)
{
HRESULT hr = E_FAIL;
WAB_PARAM wp = {0};
wp.cbSize = sizeof(WAB_PARAM);
wp.szFileName = (LPTSTR) (LPCTSTR) pszFileName;
 
// if we choose not to pass in a WAB_PARAM object,
// the default WAB file will be opened up
//
 
if(m_lpfnWABOpen(&m_lpAdrBook,&m_lpWABObject,&wp,0)==S_OK)
m_bInitialized = TRUE;

}
As usual, any help much appreciated.
Greg
AnswerRe: Problem loading non-default wab PinmemberCode-o-mat10-Jan-13 3:06 
GeneralRe: Problem loading non-default wab PinmemberMember 86892611-Jan-13 7:05 
GeneralRe: Problem loading non-default wab PinmemberCode-o-mat11-Jan-13 8:49 
GeneralRe: Problem loading non-default wab PinmemberMember 86892611-Jan-13 10:56 
GeneralRe: Problem loading non-default wab PinmemberCode-o-mat11-Jan-13 11:07 
GeneralRe: Problem loading non-default wab PinmemberCode-o-mat11-Jan-13 11:12 
GeneralRe: Problem loading non-default wab PinmemberMember 86892612-Jan-13 5:17 
GeneralRe: Problem loading non-default wab PinmemberCode-o-mat12-Jan-13 9:09 
QuestionRe: Problem loading non-default wab PinmvpRichard MacCutchan11-Jan-13 7:41 
AnswerRe: Problem loading non-default wab PinmemberMember 86892611-Jan-13 10:53 
GeneralRe: Problem loading non-default wab PinmvpRichard MacCutchan12-Jan-13 0:17 
GeneralRe: Problem loading non-default wab PinmemberMember 86892612-Jan-13 5:06 
GeneralRe: Problem loading non-default wab PinmvpRichard MacCutchan12-Jan-13 5:20 
QuestionHow do you get the file size for an open file? PinmemberMember 41945938-Jan-13 4:29 
AnswerRe: How do you get the file size for an open file? PinmemberJochen Arndt8-Jan-13 5:14 
GeneralRe: How do you get the file size for an open file? PinmemberMember 41945938-Jan-13 11:27 
GeneralRe: How do you get the file size for an open file? PinmemberMember 41945938-Jan-13 13:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.150123.1 | Last Updated 23 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid