bogQ Posted October 21, 2012 Share Posted October 21, 2012 (edited) dumb question but if i remamber correctly in cpp you can use identical func names with different parameters, and according to their parametar usage different func with identical name is called. how is that reflected to ObjCreateInterface when you try to call some other func with identical name but diffrent parametar? Edited October 21, 2012 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
ProgAndy Posted October 21, 2012 Share Posted October 21, 2012 The COM specification does not allow overloaded methods, so you cannot do that. *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
bogQ Posted October 21, 2012 Author Share Posted October 21, 2012 (edited) As i thought i can't do that, guess i'll be having a blast rearranging it all cos of that . Thank you ProgAndy Edited October 21, 2012 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
trancexx Posted October 26, 2012 Share Posted October 26, 2012 In case of interface having more methods of the same name (can happen) then the last one should be called. I see that AutoIt currently calls first, so that part about ObjCreateInterface needs changing. Normally, inheritor have priority over inherited. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
bogQ Posted October 27, 2012 Author Share Posted October 27, 2012 (edited) your right, calling lastone do have more sense essentialy. Especially if order is a must, for last (or the rest) needed to work cos of dependance of firstone, and especially if you don't want to (or you can't) change name. But curently in cpp, creating func with another name and adding the correct call to needed previous func is ok for me. Eather way it will work with no need of aditional changing even if the ObjCreateInterface someday change. edit: heh, i never considered to see if i can remove (hide) unneeded from reference counter. Edited October 27, 2012 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
bogQ Posted November 19, 2012 Author Share Posted November 19, 2012 i admit i was wrong creating func with another name and adding the correct call is killing me on larger scale TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
trancexx Posted November 19, 2012 Share Posted November 19, 2012 What exactly is the problem? ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
bogQ Posted November 19, 2012 Author Share Posted November 19, 2012 it's my stupidity for creating mess on project. example, i have had problem with io::path& (and some others), but what ever i tryed i cud not call that func correctly, so i decided to recreated some more funcs like thisone below virtual ITexture* getTexture1(const char *filename){return getTexture(filename);} instead of virtual ITexture* getTexture(const io::path& filename) = 0; that added more mess on old mess so that now i'm losing my self in all project include files TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
trancexx Posted November 19, 2012 Share Posted November 19, 2012 But of course you'll do const char*. That goes without even saying. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now