--- mstools/samples/ddeml/ddemo/ddemo.c 2018/08/09 18:21:22 1.1.1.1 +++ mstools/samples/ddeml/ddemo/ddemo.c 2018/08/09 18:23:18 1.1.1.2 @@ -1,3 +1,14 @@ + +/******************************************************************************\ +* This is a part of the Microsoft Source Code Samples. +* Copyright (C) 1993 Microsoft Corporation. +* All rights reserved. +* This source code is only intended as a supplement to +* Microsoft Development Tools and/or WinHelp documentation. +* See these sources for detailed information regarding the +* Microsoft samples programs. +\******************************************************************************/ + /*****************************************************************************\ * * DDEMO.C @@ -53,8 +64,8 @@ int count = 0; int cyText, cxText, cyTitle; // sizes for painting int WINAPI WinMain( -HANDLE hInstance, -HANDLE hPrevInstance, +HINSTANCE hInstance, +HINSTANCE hPrevInstance, LPSTR lpCmdLine, INT nCmdShow) { @@ -183,7 +194,7 @@ UINT xtyp) * DDEML will only return active conversations. Inactive conversations * are automatically removed. */ - hConv = DdeQueryNextServer(hConvList, NULL); + hConv = DdeQueryNextServer(hConvList, 0); while (hConv) { /* * Count the active conversations while we're at it. @@ -372,7 +383,7 @@ HWND hwnd) OffsetRect(&rc, 0, cyText); SetTextColor(ps.hdc, 0); // draw black text cConvs = 0; - hConv = DdeQueryNextServer(hConvList, NULL); + hConv = DdeQueryNextServer(hConvList, 0); while (hConv) { cConvs++; /* @@ -443,7 +454,7 @@ DWORD lData2) /* * Only allow links to our Item in our format. */ - return(wFmt == OurFormat && hszItem == hszAppName); + return((UINT)wFmt == OurFormat && hszItem == hszAppName); case XTYP_ADVDATA: /*