|
How to create this control I guess this "IDC_message" isnt edit control.
whitesky
|
|
|
|
|
Sir this is a Edit Control.
i have just use resource file.
make a dialog box and within it a Edit Control From Toolbox.
plz help me sir
|
|
|
|
|
HWND hWndMessage = ::GetDlgItem( m_hWnd, IDC_Message );
if( ::IsWindow( hWndMessage ) )
{
} Get It?
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
when i use this code then if condition does not satisfy and it passes the if condition.
what to do?
|
|
|
|
|
If the call to ::IsWindow(...) fails, then you are trying to refer to an incorrect window/control. You could be in the wrong dialog (or parent window), or have the wrong control ID, or just be calling the code at a point before the controls are created or after they are destroyed.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
hello sir
i'm getting somthing.
i'm using a function EventCallbackProc() which is viop function.
in this for calling my own funciton i have made a object of the dialog class.
like this ---------- sipxmngr dlg;
and in this (calling function) i'm trying to set the text in as text box.
if i don't make a object of the class then. it give me a error
"not static member calling function"
what to do tell me
|
|
|
|
|
hello!
I am trying to devolop win32 static library. In this library there is a String table and a function 'getString' which retrieves the string.
I am calling LoadString function for which i need instance of the calling application. But whenever i define getString prototype as follow:
GetString(HINSTANCE hinst)
Compiler gives error as HINSTANCE is undecleared identifier.
I am devoloping this project without MFC control. Where i am doin wrong?
Do i need to include any header files??
plz help
Thx in advance!
|
|
|
|
|
#include <windows.h>
John
-- modified at 9:35 Tuesday 27th June, 2006
|
|
|
|
|
thx john!
I bulild the library. But the problem is that its giving me error 1814 i.e The specified resource can not be found........
I had been told that when we build .lib static library...we can not have resource file in that. IF its there we need to add .rc file along with the .lib file whenever needed.
Is it true??
|
|
|
|
|
sach!! wrote: The specified resource can not be found........
Which resouce is it talking about?
sach!! wrote: I had been told that when we build .lib static library...we can not have resource file in that.
Resources can be attached to executables (i.e.; DLL or EXE files). I've never seen this done on a static library, and I don't think you can.
Jeremy Falcon
|
|
|
|
|
Jeremy Falcon wrote: I've never seen this done on a static library, and I don't think you can.
That's correct; you really can't. .libs are basically just a .tar of .objs, meaning that there are no sections as there are in .dll or .exe-files. Resources needs to be in a special section(s) within a valid container such as a .dll, or .exe.
--
100% natural. No superstitious additives.
|
|
|
|
|
Jörgen Sigvardsson wrote: .libs are basically just a .tar of .objs
You letting some Unix-lingo slip into there, eh?
Jeremy Falcon
|
|
|
|
|
Well, I did type "zipped" first, but I figured it wouldn't be as accurate as .tar. Besides, I know you know Unix, so why not use the best means of communication?
But then again, I could've used the term "stuffed". You're a Mac user too, aren't you?
|
|
|
|
|
Jörgen Sigvardsson wrote: But then again, I could've used the term "stuffed". You're a Mac user too, aren't you?
Yeah, but then people would start looking at you funny as they do me (ok, maybe that's not the reason).
Jeremy Falcon
|
|
|
|
|
I do
this->AnimateWindow(5000, AW_BLEND);
and I got error message above, I tried to add user32.lib in linker and include winuser.h but no luck, what I've done wrong?
|
|
|
|
|
HMODULE hMod= GetModuleHandle(_T("USER32.DLL"));<br />
if (hMod!=NULL)<br />
fptr= (ANIMWINDOW)GetProcAddress(hMod, _T("AnimateWindow"));<br />
else<br />
fptr= NULL;
//In the header file declare a function as in the global section.
<br />
typedef BOOL (WINAPI* ANIMWINDOW)(HWND,DWORD,DWORD);
//And in the variables declaration of the class in the public/protected section.
<br />
ANIMWINDOW fptr;<br />
I hope this will help you.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
(pretty complicated code for me)
Compiled without any error
but how do I use it?
|
|
|
|
|
Its not part of CWnd try this out :-
::AnimateWindow(HWND hwnd,DWORD dwTime,DWORD dwFlags);
Check the Req:-
Requirements <br />
Windows NT/2000: Requires Windows 2000.<br />
Windows 95/98: Requires Windows 98.<br />
Windows CE: Unsupported.<br />
Header: Declared in winuser.h; include windows.h.<br />
Library: Use user32.lib.
Regards,
FarPointer
Blog:FARPOINTER
|
|
|
|
|
same error, with a new error talking about something does not declear in global scope
|
|
|
|
|
You will need an updated copy of the Platform SDK installed to use pretty much any functions that were added after the first release of Windows 95. You may also have to tweak the _WIN32_WINDOWS and _WIN32_WINNT values to get the right code included.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
try calling like this
AnimateWindow( m_hWnd, 5000, AW_BLEND);
nave
|
|
|
|
|
|
whats the error now?
nave
|
|
|
|
|
|
try including Windows.h
nave
|
|
|
|