Pointer to class or object

From: Krish (krish_jasmin_at_yahoo.ca)
Date: 09/30/04


Date: 30 Sep 2004 05:06:14 -0700

Hi,

I have a question, if I have a global function that pointed to class
or object, then how do I pass arguments to that function.
I have CService *MyService; in my cpp
and in my header, i have
static DWORD CALLBACK function(CService*, DWORD, LPVOID);
DWORD func(CService*, DWORD);

then how do i pass argument for that pointer.
CNewServiceApp::function(-------, DWORD R, LPVOID arg);
what should I put in ----- above.

Please someone help me

Thanks,
Krish



Relevant Pages

  • Re: "Portability" contructs like UINT32 etc.
    ... All those WORDS, DWORDS, LPCSTR, HPARAMS, LPARAMS etc. ... I have a real problem with "WORD" and "DWORD" which is used in Windows programs a lot: "WORD" is defined as a 16 bit type and DWORD as a 32 bit type, which means that on your average Pentium or Athlon processor a WORD is a halfword and a DWORD is a word, whereas on a 64 bit processor a WORD is a quarterword and a DWORD is a ... And LPCSTR - "Long Pointer to C String". ... You see, char* is typedef'ed to PCCHAR (yes, ...
    (comp.lang.c)
  • Help Converting To C#
    ... DWORD IBT_DeviceDiscovery; ... pbtDev is a pointer to an allocated array of IBTDEVICE structures. ... This function creates an SDP record and registers a Bluetooth service within ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Which assembler can handle the BIG stuff ?
    ... >>> Instructtions for finaly pointing to the Pointer, ... >> What's a checksum table, ... then a rep cmpsd (dword compare) could be pretty fast indeed. ... This kind of Hash Table is ...
    (alt.lang.asm)
  • Re: CListCtrl, custom item data and allocation policy
    ... This is a good example of where to use inheritance. ... CMyListCtrl use DWORDs and then inherit from CMyListCtrl and have it use ... The problem is it takes a DWORD argumentr that can reference a value or a ... pointer to an allocated structure. ...
    (microsoft.public.vc.mfc)
  • Re: Threads on class,
    ... DWORD ThreadFuncAdaptor ... > structure that force the compiler to use a pointer ... > resolves that issue and I can't just post that code, ... > wanted was the threading library it probably would be cheaper to do it ...
    (microsoft.public.vc.language)