type changes to stop warnings

This commit is contained in:
ehouse 2006-01-31 14:40:49 +00:00
parent 502cddcf1f
commit 96a45af102
4 changed files with 5 additions and 5 deletions

View file

@ -42,7 +42,7 @@ ceControlsToAddrRec( HWND hDlg, CeConnDlgState* cState )
static void
ceControlsFromAddrRec( HWND hDlg, const CeConnDlgState* cState )
{
XP_UCHAR* str;
wchar_t* str;
switch( cState->addrRec.conType ) {
case COMMS_CONN_RELAY:
@ -54,7 +54,7 @@ ceControlsFromAddrRec( HWND hDlg, const CeConnDlgState* cState )
str = L"bad conType";
break;
}
SendDlgItemMessage( hDlg, IDC_CONNECTCOMBO, CB_ADDSTRING, 0, str );
SendDlgItemMessage( hDlg, IDC_CONNECTCOMBO, CB_ADDSTRING, 0, (LPARAM)str );
SendDlgItemMessage( hDlg, IDC_CONNECTCOMBO, CB_SETCURSEL, 0, 0L );
ceSetDlgItemText( hDlg, RELAYNAME_EDIT, cState->addrRec.u.ip_relay.hostName );

View file

@ -145,7 +145,7 @@ void ce_drawctxt_update( DrawCtx* dctx, CEAppGlobals* globals );
#ifdef DEBUG
void logLastError(XP_UCHAR* comment );
void logLastError( const char* comment );
#else
# define logLastError(c)
#endif

View file

@ -22,7 +22,7 @@
#define BUF_SIZE 128
void
ceSetDlgItemText( HWND hDlg, XP_U16 id, XP_UCHAR* buf )
ceSetDlgItemText( HWND hDlg, XP_U16 id, const XP_UCHAR* buf )
{
wchar_t widebuf[BUF_SIZE];
XP_U16 len;

View file

@ -23,7 +23,7 @@
#include "stdafx.h"
#include "cemain.h"
void ceSetDlgItemText( HWND hDlg, XP_U16 id, XP_UCHAR* buf );
void ceSetDlgItemText( HWND hDlg, XP_U16 id, const XP_UCHAR* buf );
void ceGetDlgItemText( HWND hDlg, XP_U16 id, XP_UCHAR* buf, XP_U16* bLen );
void ceSetDlgItemNum( HWND hDlg, XP_U16 id, XP_S32 num );