home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 4,472 of 4,675   
   George Neuner to address@nospicedham.not.available   
   Re: [OT?] Borlands Tasm32 syntax for cal   
   21 Jul 22 08:13:06   
   
   From: gneuner2@nospicedham.comcast.net   
      
   On Tue, 19 Jul 2022 17:36:23 +0200, "R.Wieser"   
    wrote:   
      
   >I'm using Borlands Tasm32 (v5.0) and just ran into a situation where I had   
   >to call 'DllGetVersion' inside ComCtl32.  The problem is that that function   
   >exists in several other DLLs (shell32 to name another).   
   >   :   
   >Does anyone here know if Tasm32 knows an assemble-time syntax to call a   
   >function from a specific DLL ?   (would be handy for a few other functions   
   >too)   
   >   :   
   >I currently used the runtime "LoadLibary", "GetProcAddress" solution, but   
   >thats cumbersome.   
      
   Sorry, I never used Tasm (any version), but WRT to GetProcAddress I   
   don't believe there is any other way to guarantee you will get the   
   right function.   
      
   One suggestion though:   
      
   If you know the DLL is already resident - because you static linked or   
   already have loaded it dynamically - you should use GetModuleHandle   
   instead of LoadLibrary.  Calls to LoadLibrary must be paired with   
   calls to FreeLibrary because they maintain usage reference counts on   
   the loaded module. If you don't pair them properly, modules can end up   
   either prematurely unloaded or locked into memory.   
      
   >   :   
   >Regards,   
   >Rudy Wieser   
   >   
   >P.s.   
   >Anyone knows where I can find ComCtl32 v6.x ?   
      
   https://www.dll-files.com/comctl32.dll.html   
   Look near the bottom of the page for 6.x   
      
   Hope this helps.   
   George   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca