Problem loading non-default wab

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi<br/>
Im having trouble trying to load a non-default .wab file (I know its old hat but need to keep it going for my XP users). Im running it on Vista and although Im supplying a filename it keeps loading my Vista Contacts instead instead of the specific wab addresses.<br/>
It must be going wrong around here (mostly stock code from the msdn sample code - Jim.wab is definitely there and is a valid wab file):<br/>
<span style="font-size:small <span style="color:#0000ff; font-size:small
<pre class="prettyprint if(m_lpfnWABOpen)
{

HRESULT hr = E_FAIL;
WAB_PARAM wp = {0};
wp.cbSize = sizeof(WAB_PARAM);

wp.szFileName = (LPSTR)"C:\Jim.wab";

// if we choose not to pass in a WAB_PARAM object,
// the default WAB file will be opened up
//
hr = m_lpfnWABOpen(&m_lpAdrBook,&m_lpWABObject,&wp,0);

if(!hr)
m_bInitialized = TRUE;

}[/code]
As usual, any help much appreciated.<br/>
Greg

View the full article
 
Back
Top