Originally posted by: Jason Teagle
I think the crash caused by the ShellExecute() may be because the working directory in the line is specified as NULL, rather than an empty string (""). The help on ShellExecute() makes it clear that the command-line parameter string pointer CAN be NULL, but it does not say this for the working directory. Try changing this.
Reply
Originally posted by: Chris A
I added your files to an existing OCX, added some statics to the about box with url's and set them to chyperlink control in classwizard.
All I get is static text.
I compiled the demo, it worked (only one warning) then I added a control as above and it worked.
Does it not work in about boxes, I can't see whats different, any ideas?
Chris
BTW. All in VC6!
ReplyOriginally posted by: Koay Kah Hoe
When clicking a hyper link in the program, it caused an access violation like below:
First-chance exception in HypLnkEx.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
It is displayed in the VC output window. Any solution?
Originally posted by: Jonny B. Rattom
It would be nice if there was a simple way to put the hyperlink
/Jonny
Nice control!
in the Frame window's client window. Like the hyperlink in the
InstallShield program.
Originally posted by: Eberhard Beilharz
To prevent the memory leak, just destroy the cursor in the destructor:
CHyperLink::~CHyperLink()
if (g_hLinkCursor != NULL)
The provided code leaks a cursor: the function CHyperLink::SetDefaultCursor() retrieves a copy from the hand
cursor from WinHelp32. This copy is never destroyed.
{
m_Font.DeleteObject();
{
::DestroyCursor(g_hLinkCursor);
g_hLinkCursor = NULL;
}
}