Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: cpfc
  • Order by date
  1. cpfc

    Can you crack this code? (Part 2)

    XAY881X8 loads a page not found...
  2. cpfc

    Detecting url-protocols

    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?
  3. cpfc

    Can you crack this code? (Part 2)

    328040
  4. cpfc

    Detecting url-protocols

    Hi, I've made my own protocol named &quot;test1:&quot; I've made it so that if you type &quot;test1:&quot; in Internet explorer's address bar notepad opens. On my web page I have the following code: <script language=&quot;javascript&quot;> <!-- function OpenNotepad() {...
  5. cpfc

    SendMessage

    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.
  6. cpfc

    SendMessage

    hmmm thanks I'll look into it...
  7. cpfc

    SendMessage

    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...
  8. cpfc

    CSocket::Send

    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.
  9. cpfc

    CSocket::Send

    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...
  10. cpfc

    CSocket::Send

    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(&quot;a&quot;); } After a while (not straight away), if the client socket isn't calling...
  11. cpfc

    CHtmlView Mem Leak

    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...
  12. cpfc

    EnableMenuItem

    Thanks I got it working now...
  13. cpfc

    EnableMenuItem

    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...
  14. cpfc

    EnableMenuItem

    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...
  15. cpfc

    RichEdit scrolling problem

    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...
  16. cpfc

    RichEdit scrolling problem

    Sure... mesbox is a pointer to CRichEditCtrl... mesbox->SetScrollPos(SB_VERT,mesbox->GetScrollLimit(SB_VERT)); That code sets the scrollbar to the bottom, however does not effect the text scrolling position in anyway, not even when I set the scroll bar to the very top...
  17. cpfc

    RichEdit scrolling problem

    Yeah I've tried that, no luck...
  18. cpfc

    RichEdit scrolling problem

    Hi... When you scroll down to the very bottom of a rich edit control, then keep pressing the small down arrow on the scroll bar, it keeps scrolling until the bottom line of text is at the top of control... I managed to stop this problem... However... When resizing the rich edit control, the...
  19. cpfc

    Outlook Express

    Cool thank you...
  20. cpfc

    Outlook Express

    hmmm... Only having troubles sending emails... Everything else is complete...

Part and Inventory Search

Back
Top