salam be agaian va khanom haie barname nevis.
man ye moshkeli daram onam inke code zire ke baraton gozashtamo vagti ba borland compile mikonam moshkeli nadare! ama vagti hamin code miam ro VC++‎ compile mikonam error link mide. lotfan age midonid jaraian chie be ma ham begid. darzemn errore marbote be MCIWndCreate() ke on zire ostad shode. ba tashakor
--------------------------------------------------------------------------------------------------------
#include <windows.h>
#include <vfw.h>

LRESULT CALLBACK EPProc(HWND, UINT, WPARAM, LPARAM);

char achWndClass[] = "EP:Main";
char achAppName[] = "Easy Player 1.0";

HINSTANCE hInst;

int PASCAL
WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpszCmdLine,
int cmdShow)
{
HWND hwnd;
MSG msg;
WNDCLASS wndclass;

hInst = hInstance;

if(!hPrevInstance)
{
wndclass.lpszClassName = achWndClass;
wndclass.hInstance = hInstance;
wndclass.lpfnWndProc = EPProc;
wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
wndclass.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(1));
wndclass.lpszMenuName = NULL;
wndclass.hbrBackground = (HBRUSH)COLOR_WINDOW;
wndclass.style = NULL;
wndclass.cbClsExtra = 0;
wndclass.cbWndExtra = 0;

RegisterClass(&wndclass);
}

hwnd = CreateWindowEx(0l, achWndClass, achAppName, WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL,
NULL, hInstance, NULL);
ShowWindow(hwnd, cmdShow);

while(GetMessage(&msg, 0, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return 0;
}

LRESULT CALLBACK
EPProc(HWND hwnd, UINT mMsg, WPARAM wParam, LPARAM lParam)
{
switch(mMsg)
{
case WM_DESTROY:
PostQuitMessage(0);
break;

case WM_LBUTTONDOWN:
MCIWndCreate(hwnd, hInst, MCIWNDF_SHOWALL, "e:\\mp3\\m\\08.mp3");
break;

default:
return(DefWindowProc(hwnd, mMsg, wParam, lParam));
}
return 0l;
}