jeudi 29 décembre 2016

how to use extern function with unknown argumments?

Lets say I have a function drawImage that takes a lot of arguments,some of them are winapi variables like HWND, HDC etc, and i don't want to declare them in my class. but I need to use it in my class.

extern void drawImage();
class A{
       private :
         int n;
        ...
      public :
       ...
       void draw(){
        drawImage(n);
       }
}

the above code gives me the expected error drawImage does not take one argument. so how can I use it?

and I don't want to define my member function in the source file that contains the winapi stuff.

Aucun commentaire:

Enregistrer un commentaire