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

Search:

Type: Posts; User: flavour404

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. javascript scrollIntoView() not working in IE 8

    Hi,

    Can someone suggest an alternative method to replace scrollIntoView() which no longer works in IE 8 - why does ms do that...??? Here is the code:



    if (fPub.length > 0) {
    for...
  2. SCAR to C# - Any scar programmers out there?

    Hi,

    Any SCAR programmers out there? First time that I have ever seen SCAR and want to convert a mouse macro... I starting having a go at it but got a little confused. Anybody want to give it a...
  3. Re: .Net 2.0 c# textbox control formatting input

    Thanks, i'll check out the suggestions. Thanks.
  4. .Net 2.0 c# textbox control formatting input

    Hi,

    I have an input box, on an app I am developing, that should take an IP Address. How do you set the formatting on a text box so that they can only type in a valid ip address?

    I would have...
  5. Replies
    2
    Views
    1,639

    Getting LPCWSTR string into struct

    Hi,

    I have a LPCWSTR value being passed to a function and I would like to take the associated value (as LPCWSTR is a pointer to a wide string) and feed it into a struct, which I am going to pass...
  6. Replies
    1
    Views
    664

    DLL variable issues

    Hi,

    I have a c++ dll, from which I am installing a cbt hook so I know when they have been moved.

    My question is, I have a global (bad programmer) var in my DLL: HWND xWindow = NULL; which I am...
  7. Replies
    1
    Views
    1,749

    COPYDATASTRUCT IPC reading data out

    Hi,

    In a c++ dll I am setting up a copydatastruct as follows:




    enum MessageType
    {
    HCBT
  8. Replies
    1
    Views
    800

    correct process id hooking

    Hi,

    I'm trying to set up a process specific hook.



    unsigned long procID;
    HWND targetWnd;

    targetWnd = ::FindWindow(NULL, L"Untitled - Notepad");
  9. Replies
    5
    Views
    812

    Re: Hooking windows

    Well its for work. We follow stocks and shares on various sites and compile the figures. Very legit and very real. I would like to set up an app that reads these figures and collates them in an...
  10. Replies
    5
    Views
    812

    Re: Hooking windows

    Its just an experiment, I can do it by subclassing the notepad window, but I was wondering if I could achieve the same thing by using the CBT hook, but so far I seem unable to get it to work.

    'why...
  11. Replies
    5
    Views
    812

    Hooking windows

    Hi,

    From a c# app, can I hook another window, such as an intance of notepad. I'm interested in installing a WH_CBT hook and wonder if I can do it from my app?

    I want to know when it is moved,...
  12. Replies
    2
    Views
    8,970

    GetCurrentThreadID()

    Hi,

    Trying to use GetCurrentThreadID() in a project and I keep getting the message CXX0017: Error: symbol "GetCurrentThreadId" not found.

    What would cause this, common function?!

    Any ideas....
  13. Replies
    0
    Views
    1,917

    Hooking a local window SetWindowsHookEx

    Hi,

    I am experimenting with hooking and have read teh ms docs on installing a WH_CBT hook.

    My question is, I am in the address space of a program and want to set a CBT hook on a local window. ...
  14. Replies
    15
    Views
    7,230

    Re: converting the WPARAM value to a LPCWSTR

    Well, I put the line: LPCWSTR strDataToSend = x; in in an attempt to show what I was trying to do because I had failed in my earlier communication attempts.

    I am a java/web programmer and just...
  15. Replies
    15
    Views
    7,230

    Re: converting the WPARAM value to a LPCWSTR

    Hi,

    I'm sorry if I am not explaining myself. WPARAM will be a single character. What I have done is inject a dll into a running notepad process and then subclassed the edit window. What I am...
  16. Replies
    15
    Views
    7,230

    Re: converting the WPARAM value to a LPCWSTR

    Ok,

    So looking at the docs for wsprintf c is a single character:

    c Single character. This value is interpreted as type WCHAR if the calling application defines Unicode and as type __wchar_t...
  17. Replies
    15
    Views
    7,230

    Re: converting the WPARAM value to a LPCWSTR

    I tried this (below), I get the correct character, but followed by a lot of what I can only assume to be null characters... Sorry to be hacking at this but I am trying to learn the intricacies of...
  18. Replies
    15
    Views
    7,230

    Re: converting the WPARAM value to a LPCWSTR

    Vlad: LPCWSTR strDataToSend = (LPCWSTR)x; causes the program to crash.

    005: wchar_t strDataToSend[32];
    wsprintf(strDataToSend, L"%u", x); results in a numerical value being sent to the...
  19. Replies
    15
    Views
    7,230

    Re: converting the WPARAM value to a LPCWSTR

    You are correct. My receiving code works, for example if I just set my message to send = _T("this message"); it is displayed correctly on the receiving end.

    My question really is, how to I take...
  20. Replies
    15
    Views
    7,230

    Re: converting the WPARAM value to a LPCWSTR

    This is my actual function, i'm trying to facilitate IPC, which works its just that I can't send the param value!



    void DespatchMessage(WPARAM x){
    if (hWnd)
    {
    ...
  21. Replies
    15
    Views
    7,230

    converting the WPARAM value to a LPCWSTR

    Hi,

    As stated in my title, I am trying to take the value in the WPARAM var and convert it to a LPCWSTR. How can I do this?

    I have looked for an example but nothing seems to work. I have tried...
  22. IPC getting the data out of a COPYDATASTRUCT

    Hi,

    I have written a c++ dll which sends my c# app a message - this is the dll:

    COPYDATASTRUCT cds; //The structure used to send data.
    char message[50];
    ...
  23. Replies
    3
    Views
    2,313

    Re: Copydatastruct

    Skizmo;



    Forgive my c ignorance, but how do I take the value rather than the pointer itself?

    Thanks.
  24. Replies
    3
    Views
    2,313

    Copydatastruct

    Hi,

    I am trying to populate a COPYDATASTRUCT struct with a string message and then send it to another form. The dll I am using is written in c++. I am not a c++ programmer so forgive me poor...
  25. Thread: has maps

    by flavour404
    Replies
    1
    Views
    544

    has maps

    Hi,

    I am interested in using a hash map in order to speed up my search on a load of information. My question is, and I am new to c++ is can I store 2x entried in each map 'slot?' I want an...
Results 1 to 25 of 48
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured