Thanks for replies...
Seeing as the resulting document is notepad I doubt it's possible to send a value to a script in the referral page.
Fair enough, javascript is protected from attackers, but how can you attack a computer with a few functions to query whether protocols exist?
Hi,
I've made my own protocol named "test1:"
I've made it so that if you type "test1:" in Internet explorer's address bar notepad opens.
On my web page I have the following code:
<script language="javascript">
<!--
function OpenNotepad()
{...
Even if it was the same process, SendMessage won't return until the message as been totaly handled, therefor calling delete after calling SendMessage won't matter.
Hi, I want to be able to send a pointer pointing to the following struct:
struct MyStruct
{
int Number1;
int Number2;
};
to another applications window.
I've tried the following:
MyStruct * info=new MyStruct;
info->Number1=100;
info->Number2=200...
I am using CAsyncSocket now, the while loop was to demonstrate my problem, I'm really callling Send within a timer. All works fine now, thanks for reply all the same Laopang.
By the way, there don't seem to be much diffrence between CAsyncSocket and CSocket except the older class works better.
Thank you for reply...
I looked into non-blocking sockets and found due to bad design from microsoft CSocket is unable to do non-blocking sockets. However I changed CSocket to CAsyncSocket which CSocket derived from and now my application works perfectly with non-blocking sockets...
Thanks...
Hi.
I have a client socket connected to server socket.
If server keeps using the CSocket::Send function to send client data, for example using the following code:
while (true)
{
Client->Send("a");
}
After a while (not straight away), if the client socket isn't calling...
Hi...
I added a CHtmlView control to my project without using AppWizard. When my application closes CHtmlView crashes.
I stopped this problem by overriding CHtmlView::PostNcDestroy and leaving the function blank. But now when my application closes it no longer crashes, but instead reports...
Thanks for reply...
I can't find ON_COMMAND_UPDATE_UI anywhere within MSDN Library Visual Studio 6.0.
I'm guessing that message gets called after a user clicks a submenu or something...
If thats the case I think you've misunderstood my problem...
I'm trying to enable a menu item thats always...
Hi...
I call EnableMenuItem to disable or enable a popup menu item...
Here is my code:
Menu.EnableMenuItem(1,MF_BYPOSITION | MF_BYCOMMAND | MF_ENABLED);
Only after calling this function the menu don't redraw itself, so the item still looks disabled...
If you hover the mouse over the menu item...
I tried the following:
mesbox->MoveWindow(0,0,rect.right-130,rect.bottom-25);
mesbox->ScrollWindow(0,-mesbox->GetScrollLimit(SB_VERT));
mesbox->Invalidate();
After resizing the window, I attempted to scroll the text to the very top, but this code never effected the text scrolling position at all...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.