Click here to Skip to main content
15,918,889 members
Home / Discussions / Article Writing
   

Article Writing

 
GeneralGetIpNetTable Pin
Heidyon5-Aug-01 17:23
Heidyon5-Aug-01 17:23 
GeneralTelephony API Pin
razizade4-Aug-01 22:58
razizade4-Aug-01 22:58 
QuestionMSAA class? Pin
Kurotora4-Aug-01 6:37
Kurotora4-Aug-01 6:37 
GeneralAccess VSS files from Command prompt using bat files Pin
mohith2-Aug-01 23:30
mohith2-Aug-01 23:30 
GeneralRe: Access VSS files from Command prompt using bat files Pin
Albert van Peppen16-Aug-01 23:11
professionalAlbert van Peppen16-Aug-01 23:11 
GeneralSQL Server and images Pin
Not Active1-Aug-01 21:03
mentorNot Active1-Aug-01 21:03 
GeneralChange window name... Pin
Patrick Grijsen1-Aug-01 15:53
Patrick Grijsen1-Aug-01 15:53 
GeneralRe: Change window name... update Pin
Patrick Grijsen2-Aug-01 11:06
Patrick Grijsen2-Aug-01 11:06 
Here's what I did step by step:

1: Created a new MFC AppWizard.EXE project (dialog based)
2: Compiled the program and closed it again
3: Selected the dialog from the register
4: Added a code to OnInitDialog trough the ClassWizard
5: Compiled again and it didn't worked!


I have used this code:

// WINRename
// Source code by: TCS

BOOL CTCSDlg::OnInitDialog()
{
CDialog::OnInitDialog();
{

WinExec("gamerun.exe", SW_SHOW);

if(hwnd)
{
CWnd* wnd = CWnd::FromHandle(hwnd);
wnd->SetWindowText("Nemo Games");
MessageBox("Window name changing succeed");
}
else
MessageBox("Couldn't find Acknex window");

OnOK();

return TRUE;
}

This is the error message from Visual C++:

--------------------Configuration: TCS - Win32 Debug--------------------
Compiling...
TCSDlg.cpp
C:\Development\TCS\TCSDlg.cpp(98) : error C2065: 'hwnd' : undeclared identifier
Error executing cl.exe.

TCSDlg.obj - 1 error(s), 0 warning(s)

=================

I don't know what I did wrong maybe someone can help me out a little?
Thanks in advance,

PEMG

Windows ME
Visual C++ 6.0 PRO
GeneralRe: Change window name... update Pin
Carlos Antollini2-Aug-01 11:55
Carlos Antollini2-Aug-01 11:55 
GeneralRe: Change window name... update Pin
Patrick Grijsen2-Aug-01 23:39
Patrick Grijsen2-Aug-01 23:39 
GeneralRe: Change window name... WAIT Pin
Patrick Grijsen3-Aug-01 1:38
Patrick Grijsen3-Aug-01 1:38 
GeneralRe: Change window name... WAIT Pin
Carlos Antollini3-Aug-01 4:38
Carlos Antollini3-Aug-01 4:38 
GeneralRe: Change window name... WAIT Pin
Patrick Grijsen3-Aug-01 5:41
Patrick Grijsen3-Aug-01 5:41 
GeneralRe: Change window name... Final Pin
Patrick Grijsen3-Aug-01 20:15
Patrick Grijsen3-Aug-01 20:15 
GeneralRe: Change window name... Final Pin
Carlos Antollini6-Aug-01 4:30
Carlos Antollini6-Aug-01 4:30 
GeneralRe: Change window name... Final Pin
6-Aug-01 4:51
suss6-Aug-01 4:51 
GeneralQuit the Process Pin
13-Aug-01 7:19
suss13-Aug-01 7:19 
GeneralServerXMLHTTP Pin
David Max1-Aug-01 11:54
David Max1-Aug-01 11:54 
GeneralRe: ServerXMLHTTP Pin
Wictor Wilén1-Aug-01 12:25
Wictor Wilén1-Aug-01 12:25 
QuestionHow can I make a Fast ascii and hex View of file Pin
1-Aug-01 10:50
suss1-Aug-01 10:50 
AnswerRe: How can I make a Fast ascii and hex View of file Pin
Cem Kalyoncu7-Aug-01 12:31
Cem Kalyoncu7-Aug-01 12:31 
GeneralGet the MAC address (LAN card: physical address) Pin
Heidyon1-Aug-01 0:20
Heidyon1-Aug-01 0:20 
GeneralRe: Get the MAC address (LAN card: physical address) Pin
1-Aug-01 1:27
suss1-Aug-01 1:27 
Question^!^ help-- how to synchronize session between multi server.?? Pin
aff31-Jul-01 19:08
aff31-Jul-01 19:08 
Generalconverting rtf to html Pin
31-Jul-01 13:53
suss31-Jul-01 13:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.