Author Topic: LIB2LIB  (Read 14557 times)

hfheatherfox07

  • Member
  • ***
  • Posts: 464
Re: LIB2LIB
« Reply #15 on: February 13, 2013, 05:34:58 AM »
Hi bomz,

Wouldn't it be better to rename your tool to something like dll2lib?

A dll2lib tool would be nice vortex !
The only one that i know is a paid version http://www.binary-soft.com/dll2lib/dll2lib.htm and it wont make a lib for masm32 :(

I can never follow what bomz does :( The fasm forum some where
Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

Vortex

  • Member
  • *****
  • Posts: 2245
Re: LIB2LIB
« Reply #16 on: February 13, 2013, 05:48:31 AM »
Hi

With polib.exe, you can create import libraries from DLLs :

Code: [Select]
\masm32\bin\polib.exe /OUT:msvcrt.lib /MACHINE:x86 C:\WINDOWS\system32\msvcrt.dll
In the above example, polib does not create decorated symbols. ( no need of this feature as that dll exports C functions. )

hfheatherfox07

  • Member
  • ***
  • Posts: 464
Re: LIB2LIB
« Reply #17 on: February 13, 2013, 05:50:38 AM »
Hi

With polib.exe, you can create import libraries from DLLs :

Code: [Select]
\masm32\bin\polib.exe /OUT:msvcrt.lib /MACHINE:x86 C:\WINDOWS\system32\msvcrt.dll
In the above example, polib does not create decorated symbols. ( no need of this feature as that dll exports C functions. )

I did not know That Thank you so much!!! :t
 :biggrin:
So we can make the lib than lib2inc to make the inc as well
Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

hfheatherfox07

  • Member
  • ***
  • Posts: 464
Re: LIB2LIB
« Reply #18 on: February 13, 2013, 06:01:20 AM »
I get an error when trying to convert the lib to inc

Code: [Select]
Source files must be Microsoft Import Library(s)
Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

bomz

  • Guest
Re: LIB2LIB
« Reply #19 on: February 13, 2013, 03:14:35 PM »
This is not dll to lib, about dll to lib was in previous season.
This is about DDK lib to INC and DDK lib to LIB. I don't know method how export function names from dll with @4 - parametres

May be this may help.
http://www.binary-soft.com/dll2lib/dll2lib.htm - make strange lib's
http://www.yankeedownload.com/download/dll-to-static-lib-download-kbkln.html - this want microsoft studio
In TASM5 I find utilities dll2lib, this libs don't work with MASM. I don't know hwo it's author it's without any information so I can't put it hear according hutch rules
ps. Borland author

Vortex

  • Member
  • *****
  • Posts: 2245
Re: LIB2LIB
« Reply #20 on: February 14, 2013, 05:42:31 AM »
Hi bomz,

This is about DDK lib to INC and DDK lib to LIB. I don't know method how export function names from dll with @4 - parametres

You can't do that. You can extract the decorated symbols from import libraries.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 7324
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: LIB2LIB
« Reply #21 on: February 14, 2013, 03:11:42 PM »
Whoops, I may have removed one empty post too many.  :eusa_naughty:
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

bomz

  • Guest
Re: LIB2LIB
« Reply #22 on: February 17, 2013, 10:31:11 PM »
don't be lazy check inc's, please

it was good idea to use "dog-nail log". I try it to 2003 xp vista windows7 - looks like working

hutch--
GNU GENERAL PUBLIC LICENSE
« Last Edit: February 18, 2013, 02:31:41 AM by bomz »

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 7324
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: LIB2LIB
« Reply #23 on: February 17, 2013, 11:14:25 PM »
> GNU GENERAL PUBLIC LICENSE

Are you supposed to be telling me something with this ?
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

Vortex

  • Member
  • *****
  • Posts: 2245
Re: LIB2LIB
« Reply #24 on: February 18, 2013, 05:32:59 AM »
Hi bomz,

Your attachment contains httpdisk. Does your tool download some extra files?

bomz

  • Guest
Re: LIB2LIB
« Reply #25 on: February 18, 2013, 09:18:31 AM »

yes. it's download 10 mb libs from microsoft site (w7 30 mb)

Vortex

  • Member
  • *****
  • Posts: 2245
Re: LIB2LIB
« Reply #26 on: February 19, 2013, 06:17:51 AM »
Hi bomz,

Your tool downloads the import libraries from the Windows 7 RTM Driver Kit, right?

bomz

  • Guest
Re: LIB2LIB
« Reply #27 on: February 19, 2013, 11:45:43 AM »
Windows Driver Kit (WDK)
Windows Driver Kit Version 7.1.0
http://www.microsoft.com/en-us/download/details.aspx?id=11800

for DateTime need
Quote
---------- \MASM32\INCLUDE\OLEAUT32.INC
VariantTimeToSystemTime PROTO :REAL8,:PTR SYSTEMTIME
« Last Edit: February 19, 2013, 04:36:28 PM by bomz »

bomz

  • Guest
Re: LIB2LIB
« Reply #28 on: February 20, 2013, 04:58:34 AM »
masm.2010.studio
open sfx archive with rar or 7zip. change zero size files for whole one (full bin dir any ver, include dir: windows.inc winextra.inc, disasm dir: dumppe.exe sr.exe) . install, have fun

how make such thing:
in asm code like __NO_NOISE__ equ 1 determine variable for ex __WSYS__ equ wxp and compiller use path to libs and inc for xp?

Quote
IFDEF __WXP__
include \masm\include\wxp\kernel32.inc
ELSEIF.........
« Last Edit: February 20, 2013, 09:42:45 AM by bomz »

bomz

  • Guest
Re: LIB2LIB
« Reply #29 on: February 20, 2013, 04:35:40 PM »
masm.studio.10

Quote
;__W2K__ equ 1
;__WXP__ equ 1
;__WNET__ equ 1
;__WLH__ equ 1
;__WIN7__ equ 1
; xp by default
.386

.model flat, stdcall
option casemap :none

include \MASM32\INCLUDE\windows.inc
include \MASM32\INCLUDE\user32.inc
include \MASM32\INCLUDE\kernel32.inc
includelib \MASM32\LIB\user32.lib
includelib \MASM32\LIB\kernel32.lib

.data
mestitle   db "MASM COOL",0
form      db "EAX: %010hu", 0

.data?
buffer      db 512 dup(?)

.code
start:
mov eax, -1
invoke wsprintf,ADDR buffer,ADDR form,eax
invoke MessageBox,0,ADDR buffer,ADDR mestitle,MB_ICONASTERISK
invoke ExitProcess,0
end start
  ┬«people property
« Last Edit: February 20, 2013, 06:42:17 PM by bomz »