|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: DirectX SDK
On Tue, 5 Oct 1999, Jhonan wrote: > > I looking at implementing DirectX into my development > > but my code is in 'C', can anyone tell me the name of > > the pointer which will enable me to access the DirectX > > C++ calls and classes in the libraries. Actually, you have to reference the class' virtual function tables through C. For instance, if lpDD is a DirectDraw object and you want to call its Release() method, instead of lpDD->Release(), use lpDD->lpVtbl->Release(lpDD). For each method, you must provide the "object" (in this case lpDD) as the first parameter. This is why the Release() method which normally takes no parameters in C++ must take the lpDD parameter in C. Atul ================================================================= The GameProgrammer.Com mailing list is for the open discussion of any topic related to the art, science, and business of programming games. This list is especially tolerant of beginners. We were all beginners once To SUBSCRIBE or UNSUBSCRIBE please visit: http://gameprogrammer.com/mailinglist.html
|
|