|
k how we know that the mouse is over the button. can we check it using the button id?
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: k how we know that the mouse is over the button. can we check it using the button id?
sorry ? i don't get you question...
|
|
|
|
|
Would you mind reading these articles before querying ?
|
|
|
|
|
Use below API CBitmapButton::LoadBitmaps
CBitmapButton::LoadBitmaps <br />
<br />
BOOL LoadBitmaps( LPCTSTR lpszBitmapResource, LPCTSTR lpszBitmapResourceSel = NULL, LPCTSTR lpszBitmapResourceFocus = NULL, LPCTSTR lpszBitmapResourceDisabled = NULL );<br />
<br />
BOOL LoadBitmaps( UINT nIDBitmapResource, UINT nIDBitmapResourceSel = 0, UINT nIDBitmapResourceFocus = 0, UINT nIDBitmapResourceDisabled = 0 );
Regards,
Paresh.
|
|
|
|
|
deeps_cute wrote: i have to change the image when mouse moves over it.
You need to handle WM_MOUSEMOVE for this. At the same time you need to use TrackMouseEvent to caputre WM_MOUSELEAVE .
Refer this[^] article by Niek Albers.
|
|
|
|
|
thank you all its working well
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
You're welcome,again we could help a human ;P
|
|
|
|
|
What's an Object dump? what's it use? can someone say it simple words?
286? WOWW!
|
|
|
|
|
_8086 wrote: What's an Object dump
it's a raw "picture" of the memory occupied by the object...
|
|
|
|
|
To detect memory leaks right?? How do we find memory has been leaked?
286? WOWW!
|
|
|
|
|
_8086 wrote: To detect memory leaks right??
no, only to see how the memory is filled.
_8086 wrote: How do we find memory has been leaked?
with tools like Visual Leak Detector[^]
|
|
|
|
|
_8086 wrote: How do we find memory has been leaked
See here[^]
|
|
|
|
|
Using MFC "Object dump" usually refers to an object that inherits from CObject.
Dumping an object means calling CObject::Dump( CDumpContext& ) on that object. The dump function will write relevant information to the dumping context (usually a debug window) about the object's state, memory usage and whatever the developer that created the object thought could be useful.
The object dumping technique is not unique for MFC-CObject-derived objects. It's really about having a base class with a virtual function that can be called during debug sessions.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Please refer this[^]
Regards,
Paresh.
|
|
|
|
|
This is what I wanted.
286? WOWW!
|
|
|
|
|
I am planning to have installshield for VC++ 6.0 which comes along with VC++ 6.0 to install some of the binaries.
All these day, I had been using Installation batch file to create directories,and copying the respective file into the directories and manully making registry entries using .reg file.
I would like to know, is it OK to use Installshiled which comes with VC++ 6.0 or to use the latest Installshield product itself.
What way using the Latest Installshield product is beneficial compared to the version of the Installshield comes along with VC++ 6.0
Is it possible to make use custom action dll & coinstaller in Installshield with VC++ 6.0??
Thanks
|
|
|
|
|
you could also have a look at inno Setup[^] which is free, fast to start with and really good rated by most users...
|
|
|
|
|
We used the Installshield that came with VC++6 to do the (fairly simple) installation of our VC6 apps, and this worked well for many years. One issue that encouraged us to change was that the setup.exe file that comes with this installshield, and that the user runs do the installation, is a 16-bit app. This can lead to the embarrassing situation that if the user's computer is not configured correctly for 16-bit apps (and many XP boxes are not - particularly after installing service packs) then the user cannot install your 32-bit app as the 16-bit installation program won't run!
There many reports of this on the web, e.g.
http://unodocs.nmsu.edu/RoboDocs/WebHelp/jinitiator/ji_05.htm[^]
Peter.
|
|
|
|
|
TssPrasad wrote: Is it possible to make use custom action dll & coinstaller in Installshield with VC++ 6.0??
IMHO, I never like Installer created by Install Shield ...as it too big.. i always prefer.. what Tox has suggested !
|
|
|
|
|
InstallShield is a horrible product, and there are several free alternatives like NSIS and Inno Setup.
|
|
|
|
|
Hi all,
The other day I got a code snippet of MSDN, I know what it does and what it's used for.
But what I don't understand is, when I type my ip address in,
it states that I'm not connected and when I type in any ip the code states that I'm Connected.
struct in_addr BIN_IPV4_ADDR_LOOPBACK = {127, 0, 0, 1};
struct in6_addr BIN_IPV6_ADDR_LOOPBACK = { 0x0, 0x0,
0x0, 0x0,
0x0, 0x0,
0x0, 0x0,
0x0, 0x0,
0x0, 0x0,
0x0, 0x0,
0x0, 0x1 };
#define MAX_LOCAL_NAME_LEN 64
BOOL IsNetPresent();
void Print(TCHAR *pFormat, ...);
int _tmain (int argc, TCHAR* argv[])
{
WSADATA WSAData;
WSAStartup(MAKEWORD(2,2), &WSAData);
if (IsNetPresent())
Print(TEXT("Network Connection IS present"));
else
Print(TEXT("Network Connection is NOT present"));
WSACleanup();
getch();
return 0;
}
BOOL IsNetPresent()
{
BOOL bFoundLocalAddr = FALSE;
char szAddrASCII[MAX_LOCAL_NAME_LEN];
ADDRINFO AddrHints, *pAI, *pAddrInfo;
if(gethostname(szAddrASCII, MAX_LOCAL_NAME_LEN - 1))
{
Print(TEXT("Error getting local host name, error = %d"), WSAGetLastError());
return FALSE;
}
memset(&AddrHints, 0, sizeof(AddrHints));
AddrHints.ai_family = PF_UNSPEC;
AddrHints.ai_flags = AI_PASSIVE;
if(getaddrinfo(szAddrASCII, "10", &AddrHints, &pAddrInfo))
{
Print(TEXT("getaddrinfo(%hs) error %d"), szAddrASCII, WSAGetLastError());
return FALSE;
}
bFoundLocalAddr = TRUE;
for(pAI = pAddrInfo; pAI != NULL && bFoundLocalAddr; pAI = pAI->ai_next)
{
if(pAI->ai_family == PF_INET)
{
if(memcmp(&(((SOCKADDR_IN *)(pAI->ai_addr))->sin_addr), &BIN_IPV4_ADDR_LOOPBACK, sizeof(BIN_IPV4_ADDR_LOOPBACK)) == 0)
bFoundLocalAddr = FALSE;
}
else if(pAI->ai_family == PF_INET6)
{
if(memcmp(&(((SOCKADDR_IN6 *)(pAI->ai_addr))->sin6_addr), &BIN_IPV6_ADDR_LOOPBACK, sizeof(BIN_IPV6_ADDR_LOOPBACK)) == 0)
bFoundLocalAddr = FALSE;
}
}
freeaddrinfo(pAddrInfo);
return bFoundLocalAddr;
}
void
Print(
TCHAR *pFormat,
...)
{
va_list ArgList;
TCHAR Buffer[256];
va_start (ArgList, pFormat);
(void)StringCchPrintf(Buffer, 256, pFormat, ArgList);
#ifndef UNDER_CE
_putts(Buffer);
#else
OutputDebugString(Buffer);
#endif
va_end(ArgList);
}
Could anyone please give me some help, clearly I don't understand it correctly.
Many Thanks
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r My Blog: ^_^
|
|
|
|