Search:

Type: Posts; User: cloudy

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    17
    Views
    8,168

    A bit more info for you. After the...

    A bit more info for you.

    After the CreateProcess call but before SetWindowsHookEx I now do GetGUIThreadInfo and pass the threadId as the first parameter and a pointer to a memset GUITHREADINFO...
  2. Replies
    17
    Views
    8,168

    Thanks for the reply. Why does it work...

    Thanks for the reply.

    Why does it work injecting into visual studio then?

    I just tried the following from within the Dll:




    LRESULT CALLBACK HookProc (int nCode, WPARAM wParam, LPARAM...
  3. Replies
    17
    Views
    8,168

    Thanks everyone for their help. It is a 32bit...

    Thanks everyone for their help.

    It is a 32bit dll into a 32 bit process.

    I am calling setwindowshookex in my exe not dll.

    If i change the threadId to 0 (i assume you mean do a global system...
  4. Replies
    17
    Views
    8,168

    Thanks for the reply, it doesn't immediately...

    Thanks for the reply,

    it doesn't immediately return I can still see running.
  5. Replies
    17
    Views
    8,168

    Hi, Thanks for the reply. That is a typedef...

    Hi,

    Thanks for the reply.

    That is a typedef of the hook function signature that is being exported by my dll via a .def file. I.E.



    typedef LRESULT (CALLBACK *DllHookProc)(int nCode,...
  6. Replies
    17
    Views
    8,168

    setwindowshookex returns null

    Hi All,

    I want to use setwindowshookex for hooking a dll into one of my own applications. setwindowshookex returns null setting error code 87 (invalid parameter), which I believe is the threadid...
  7. Replies
    1
    Views
    4,295

    socket programming and thread safety

    I am looking at programming an application that uses sockets. My concern is with thread safety as I have never used threading before except with gui worker threads. I want the server application to...
  8. Replies
    10
    Views
    1,747

    Thanks for the reply :-) Can you explain...

    Thanks for the reply :-)



    Can you explain what you mean by that please?
  9. Replies
    10
    Views
    1,747

    Calling virtuals inside constructors

    Hi all,

    I know you shouldnt use virtual functions inside constructors because the vtable has yet to be constructed. However I have come across a problem which im convinced is a common problem so...
  10. Help in experience gaining for network programming

    Hi all,

    I believe a firm understanding of network programming is something every programmer should have in his armory. Although I know how to use the basics of socket programming to communicate...
  11. Thanks for the reply! I dont have the code...

    Thanks for the reply!

    I dont have the code with me at the moment to test. However I do know im using a static member functions (for querying values and checking if keys exist) in the object which...
  12. The procedure entry point could not be located in ADVAPI32.dll

    Hi all,

    I have wrote a registry object for opening, editing, querying and deleting registry values. When I run the program I get the following error (a message box appears):

    "The procedure...
  13. Replies
    14
    Views
    2,448

    Unfortunately I dont have access to the code at...

    Unfortunately I dont have access to the code at the moment (I can get it again tomorrow).

    The issue seems to be that the classes deriving from the Singleton pattern all have a virtual destructor...
  14. Replies
    14
    Views
    2,448

    Thanks all for the reply, I had a bit of a...

    Thanks all for the reply,

    I had a bit of a jiggle around with the code and I managed to get the exact same code spitting out another error which was "undefined reference to vtable".

    I...
  15. Replies
    14
    Views
    2,448

    Singleton template problem

    Hi all,

    I've implemented my own singleton pattern using templates for my classes to derive from. Here is a very cut down version of my code:




    // THIS FILE IS SINGLETON.H

    template...
  16. Replies
    1
    Views
    1,942

    All files in a directory

    Hi All,

    I want to be able to iterate through a directory finding files with a specific file extension, like searching /home/username for all .sh files.

    The language im using is C++.

    Thanks
  17. Replies
    5
    Views
    1,702

    Hi bubba, thanks for the reply. I've been...

    Hi bubba, thanks for the reply.

    I've been looking into this WSACreateEvent and WSAEventSelect and from what i've gathered these events are only used when an event happepns on the associated...
  18. Replies
    5
    Views
    1,702

    Communicating with threads

    Hi Guys

    I'm not very experienced with thread programming. I have studied the concepts of thread programming at university so i understand how they work and the importance of setting up mutex's etc...
  19. Replies
    2
    Views
    1,732

    Socket Send Help

    Hi All,

    I read that the return value of the send() function is the amount of bytes of the message that was sent. Reading a tutorial I found on the internet there was this comment on send()


    ...
  20. Replies
    6
    Views
    1,819

    thanks dwks i didnt know a structure could behave...

    thanks dwks i didnt know a structure could behave like that. It is compiling now :)

    Thanks to the rest of you aswell
  21. Replies
    6
    Views
    1,819

    Thanks for the reply mate, I get the following...

    Thanks for the reply mate,

    I get the following error when i try it:

    syntax error : missing ')' before '{'

    If it makes any difference the MyStruct object is actually in the form of
  22. Replies
    6
    Views
    1,819

    Base Class Constructor parameter has a struct

    Hi All,

    I want to know if the following is possible.




    struct MyStruct
    {
    int x;
  23. Replies
    1
    Views
    979

    Passing a set to a template function

    Hi all,

    I'm writing this template class and one of the template functions you pass a std::set to of a template type which then returns one of the elements in the set (which is of course a template...
  24. Replies
    4
    Views
    3,648

    Thanks for your help, i manged to get rid of the...

    Thanks for your help, i manged to get rid of the warning but it still isnt working.

    I belive the problem is either due to the DLL not exporting the variable correctly or the app not importing it,...
  25. Replies
    4
    Views
    3,648

    Thanks for the reply :) When i add the extern...

    Thanks for the reply :)

    When i add the extern inside the #pragma shared block it makes no difference.

    If i completely remove the #pragma shared stuff i get a link error saying:

    unresolved...
Results 1 to 25 of 101
Page 1 of 5 1 2 3 4