Click here to Skip to main content
16,005,124 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionATL Web Server return values question? Pin
Ollie21-May-02 7:09
Ollie21-May-02 7:09 
AnswerRe: ATL Web Server return values question? Pin
Philip Patrick21-May-02 7:21
professionalPhilip Patrick21-May-02 7:21 
GeneralRe: ATL Web Server return values question? Pin
Ollie21-May-02 7:20
Ollie21-May-02 7:20 
GeneralDebug Assertion Fail Pin
tongc21-May-02 7:12
tongc21-May-02 7:12 
GeneralRe: Debug Assertion Fail Pin
Tim Smith21-May-02 7:17
Tim Smith21-May-02 7:17 
GeneralRe: Debug Assertion Fail Pin
Philip Patrick21-May-02 7:17
professionalPhilip Patrick21-May-02 7:17 
GeneralRe: Debug Assertion Fail Pin
tongc21-May-02 8:16
tongc21-May-02 8:16 
GeneralDamned CALLBACK! Pin
S van Leent21-May-02 7:04
S van Leent21-May-02 7:04 
Version 2 of the question

While I've learned a lot of this page, still I do not know the following:

I've the code:

class hehheh
{
  HWND somewhere;

  LRESULT CALLBACK WndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
  {
    return DefWindowProc(hWnd, Msg, wParam, lParam);
  }

  // within some function
  void SomeFunction()
  {
    SetWindowLong(this->somewhere, GWL_WNDPROC, (LONG)WndProc); 
  }
}


which doesn't work (that I know, and I know why), but the solution of giving the
this
as parameter can't be done, because there isn't room for it, how to work arround this problem.

I'm fighting with the code for several weeks already.

Thanks already

N.B. I'm not using MFC / WTL, and I just cut'n'paste some rules out of the code, so I gave it some other names for easyness.

LPCSTR Dutch = "Double Dutch Smile | :) "
GeneralRe: Damned CALLBACK! Pin
Le centriste21-May-02 7:09
Le centriste21-May-02 7:09 
GeneralRe: Damned CALLBACK! Pin
RobJones21-May-02 7:11
RobJones21-May-02 7:11 
GeneralRe: Damned CALLBACK! Pin
Paul M Watt21-May-02 8:35
mentorPaul M Watt21-May-02 8:35 
GeneralRe: Damned CALLBACK! Pin
S van Leent21-May-02 9:04
S van Leent21-May-02 9:04 
GeneralRe: Damned CALLBACK! Pin
Joaquín M López Muñoz21-May-02 8:42
Joaquín M López Muñoz21-May-02 8:42 
GeneralRe: Damned CALLBACK! Pin
S van Leent21-May-02 9:08
S van Leent21-May-02 9:08 
GeneralRe: Damned CALLBACK! Pin
Joaquín M López Muñoz21-May-02 9:18
Joaquín M López Muñoz21-May-02 9:18 
GeneralAnother thread question :) Pin
RobJones21-May-02 6:33
RobJones21-May-02 6:33 
GeneralRe: Another thread question :) Pin
Philip Patrick21-May-02 7:11
professionalPhilip Patrick21-May-02 7:11 
GeneralRe: Another thread question :) Pin
RobJones21-May-02 7:22
RobJones21-May-02 7:22 
GeneralRe: Another thread question :) Pin
Philip Patrick21-May-02 7:28
professionalPhilip Patrick21-May-02 7:28 
GeneralRe: Another thread question :) Pin
RobJones21-May-02 7:43
RobJones21-May-02 7:43 
GeneralRe: Another thread question :) Pin
Philip Patrick21-May-02 8:24
professionalPhilip Patrick21-May-02 8:24 
GeneralRe: Another thread question :) Pin
Philip Patrick21-May-02 7:15
professionalPhilip Patrick21-May-02 7:15 
GeneralDraw Line Question Pin
Nick Parker21-May-02 6:13
protectorNick Parker21-May-02 6:13 
GeneralRe: Draw Line Question Pin
Stan the man21-May-02 6:20
Stan the man21-May-02 6:20 
QuestionAnd here goes my last guestion: export a function from an EXE? Pin
Rickard Andersson2021-May-02 6:08
Rickard Andersson2021-May-02 6:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.