I tried CfgConduit. Nothing happened when I chose my conduit name and
clicked Change in Cutom menu. A change action dialog box suppose to show up.
I think CfgConduit didn't get called for some reason.
Here is the code stub if someone would help me figure out what's wrong.
Thanks.
_declspec(dllexport) long CfgConduit(CSyncPreference& pref) {
AFX_MANAGE_STATE(AfxGetStaticModuleState());
long nRtn = -1;
// defined in ActDlg.h
CHotSyncActionDlg actDlg;
pref.m_SyncPref = eNoPreference;
actDlg.m_csGroupText = kConduitName;
switch (pref.m_SyncType) {
case eFast:
case eSlow:
actDlg.m_nActionIndex = 0;
break;
case ePCtoHH:
actDlg.m_nActionIndex = 1;
break;
case eHHtoPC:
actDlg.m_nActionIndex = 2;
break;
case eDoNothing:
default:
actDlg.m_nActionIndex = 3;
break;
}
if (actDlg.DoModal() == IDOK) {
switch (actDlg.m_nActionIndex) {
case 0:
pref.m_SyncType = eFast;
break;
case 1:
pref.m_SyncType = ePCtoHH;
break;
case 2:
pref.m_SyncType = eHHtoPC;
break;
case 3:
default:
pref.m_SyncType = eDoNothing;
break;
}
pref.m_SyncPref = (actDlg.m_bMakeDefault) ?
ePermanentPreference : eTemporaryPreference;
nRtn = 0;
}
return nRtn;
}
> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, April 18, 2000 10:04 AM
> To: Palm Developer Forum
> Subject: Re: ConfigureConduit crash
>
>
>
> > Following is the code stub. Does someone know the reason? Thanks.
> >
> > __declspec(dllexport) long ConfigureConduit(CSyncPreference& pref) {
>
> As was mentioned in a previous post, you should be implementing
> CfgConduit, not
> ConfigureConduit. The ConfigureConduit call is somewhat obsolete and is
> called
> by HotSync 2.x. So, for HotSync 3.x support, you should implement
> CfgConduit. If
> you want to also support HotSync 2.x, then also implement
> ConfigureConduit. I
> didn't take a close look at your code, assuming the problem is with the
> function
> that gets called.
>
> -Geoff Richmond
> Palm, Inc.
> Developer Support
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html