CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: kolkoo

Page 1 of 11 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    8
    Views
    1,433

    Re: Help with a blocking function accept

    You are using blocking sockets (the default ones) which means operations like accept and recv will block until they get something. If you don't that you can set the sockets to non-blocking. Anyway...
  2. Re: GetAsyncKeyState alternative for a process hotkey.

    Well let me clarify this. My injected DLL has a console ( AllocConsole-ed), now the original application has its own window. I want my hotkey to be active whether the console has focus or the main...
  3. GetAsyncKeyState alternative for a process hotkey.

    Well here's the situation I have injected a dll into a process, I want for example when I press F5 something to happen. I could use GetAsyncKeyState without a problem for that but that is system-wide...
  4. Replies
    2
    Views
    720

    Re: show alle the pairs of a hash

    map<string, string>::iterator iter;
    for(iter = map.begin();iter!=map.end();++iter)
    print(iter->first,iter->second);


    where print is your own printing function.
  5. Replies
    1
    Views
    4,098

    Udp so_reuseaddr

    I have this problem. Have an application ( Warcraft III ) that uses udp broadcasts for lan management , usually when you run the application two times and join the LAN with one you can't join with...
  6. Replies
    3
    Views
    884

    Re: Any way to get account back?

    Haha! Seriously I am so grateful! Thank you, sir! :)
  7. Replies
    8
    Views
    1,761

    Re: LoadLibrary and string issue

    then you should call it this way:


    funct1_addr("String parameter here!");
  8. Replies
    4
    Views
    1,074

    Re: What's wrong with this code?

    What you are doing in the bold line is assigning a pointer which as you mentioned may be invalid after some point, what you need to do is copy the dialogstring into the ofn.lpstrTitle( e.g. strcpy).
  9. Replies
    7
    Views
    1,031

    Re: Newb needs help with structs

    GCDEF is right suit should be just a string not an array :) Also you have some other errors that have not been mentioned so far in your code:
    in getcards() your for loop condition is wrong should be...
  10. Replies
    8
    Views
    1,761

    Re: LoadLibrary and string issue

    Why are you enclosing the parameters in quotes? That is not needed! The function calls should look as follows:



    funct1_addr (arg1, arg2);
    funct2_addr ("string1","string2");
  11. Re: Sending keystrokes to other *non-focus* application

    Because that is not the correct way to send keystrokes :) There can be many situations in which it won't work, also you cannot send keys like SHIFT,CTRL, etc :)
  12. Re: Sending keystrokes to other *non-focus* application

    You need to call SetFocus right after you connect the threads in order for the SendInput to take place in the Notepad app:


    if(AttachThreadInput( GetCurrentThreadId(), threadID,true))
    {
    ...
  13. Replies
    23
    Views
    19,591

    Re: allocating bidimensional matrix

    There we go fixed in previous post for your viewing pleasure :)
    I just fixed it because he wanted to see how it would look while using realloc and his original snippet didnt bother with freeing...
  14. Replies
    6
    Views
    1,270

    Re: Hook a program? Possible?

    That is not entirely true. There are several types of hooking and API Hooking is one of them but not the only one. You can successfully hook other applications' functions but this would require dll...
  15. Replies
    23
    Views
    19,591

    Re: allocating bidimensional matrix

    Well just for fun I decided to fix your reallocating issue and give you a few pointers ( hopefully valid :) ) First of all you have no need of the static variable and no need to save the length of...
  16. Replies
    6
    Views
    1,703

    Re: How to modify the width of a context menu ?

    The only way I can think of is if the menu's owner-draw flag is set and you handle drawing and measuring manually. Altho maybe a menu HWND can be obtained through ::FindWindow("#32768",NULL) for MFC...
  17. Replies
    2
    Views
    1,039

    Re: Hook window and modify controlbox?

    Well there is not much you can do if it is a standard win32 console - you cant remove the sysmenu ( not 100% sure on this but almost :P ). The best thing you can do is disable the buttons this way:
    ...
  18. Re: Redraw problem with CRichEditCtrl and CListCtrl edges

    I would ask that you post the project, or some similar one to reproduce it here so we can test on our own PCs and see whats cooking :)
  19. Replies
    9
    Views
    1,118

    Re: Converting BYTE[] to ULING

    a simple union would also do ;)

    union ul
    {
    BYTE b[4];
    ULONG result;
    } ;

    setting the correct bytes in b in the correct order ( according to the endianess of the machine ofc)
    you can the...
  20. Replies
    5
    Views
    3,347

    Re: CButton Tooltips dont popup intermittently

    This was exactly my problem, when u click the left button hold it move the mouse away from the button the tooltip wont receive the WM_MOUSEMOVE message. The way i worked around it was in the...
  21. Replies
    2
    Views
    910

    Re: How to jump directly to the MFT of a file

    I am not sure if there is such an API however if you want to change the file's creating time you can always use GetFileInformationByHandle combined with
    SetFileInformationByHandle
  22. Replies
    5
    Views
    3,347

    Re: CButton Tooltips dont popup intermittently

    If you can post a sample project I can help you, I had similar problems with my custom irregular shaped rollover button tooltips, sometimes after clicking the buttons CToolTipCtrl doesnt receive the...
  23. Replies
    8
    Views
    1,098

    Re: newbster question Name.size

    if you have a pointer to a std:string

    e.g. string * Name

    you can either use (*Name).size() or Name->size() to call the function, provided you have already initialized that pointer with a new...
  24. Replies
    21
    Views
    1,845

    Re: Newbie learning sorting algorithms and arrays

    Your sorting algorithm is wrong. Take a look at these:
    http://mathbits.com/MathBits/CompSci/Arrays/Arrays1.htm
    Mainly the topics from Bubble sort to Selection sort since they are the simplest.
  25. Replies
    6
    Views
    1,640

    Re: gethostbyname returns more than one IP

    You can check the IP, if you need a local address you can check whether your ip is:
    Class A: 10.*.*.*

    Class B: 172.*.*.*
    or
    Class C: 192.*.*.*

    All of these Classes are LAN IP address types,...
Results 1 to 25 of 270
Page 1 of 11 1 2 3 4





Click Here to Expand Forum to Full Width

Featured