Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

link rc and DialogBoxParam

1 view
Skip to first unread message

Alessandro

unread,
Feb 22, 2005, 1:29:58 PM2/22/05
to
Hello:
first sorry for my poor english

I've the free command line borland C++ compiler v5.5 for do application whit
PSDK WIN32
I tried to use the resource file in my littel application. the resource is a
DIALOG but i don't know if a have to use particular option
of the linker.
the problem is: when i execute my application, it do nothing


CODE OF MAIN
#define STRICT
#define Win32_LEAN_AND_MEAN
#include <windows.h>
int WINAPI

WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int
nCmdShow)
{
DialogBoxParam(0,"MyDialog",0,0,0);
return 0;
}

I compile with bcc32 -tW(Application for win) and no problem it do the exe
file


CODE OF RC
#include <windows.h>
MyDialog DIALOG DISCARDABLE 0, 0, 186, 92
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "nothing"
FONT 8, "MS Sans Serif"
BEGIN
END

I compile with brcc32 -i (path of the include) and it do the res file


LINK
When i do brc32 MyDialog.res MyApp.exe, I call the link and finish well
but if now execute MyApp.exe it do notthing.

Why??
brc32 need a option for link application for win?
I have to use ilink32?? the reference manual tell: use the brc32

Thomas Maeder [TeamB]

unread,
Feb 22, 2005, 2:25:39 PM2/22/05
to

Please direct your browser at http://info.borland.com/newsgroups/ and
read the newsgroup guidelines. One of them asks us not to post the
same question to different newsgroups, but to pick the most
appropriate one and just post there. Thanks!
0 new messages