News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

LIB2LIB

Started by bomz, February 12, 2013, 06:23:05 PM

Previous topic - Next topic

hfheatherfox07

Quote from: Vortex on February 13, 2013, 05:02:55 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

Hi

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

\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

Quote from: Vortex on February 13, 2013, 05:48:31 AM
Hi

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

\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

I get an error when trying to convert the lib to inc

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

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

Hi bomz,

Quote from: bomz on February 13, 2013, 03:14:35 PM
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--

Whoops, I may have removed one empty post too many.  :eusa_naughty:

bomz

#22
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

hutch--

> GNU GENERAL PUBLIC LICENSE

Are you supposed to be telling me something with this ?

Vortex

Hi bomz,

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

bomz


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

Vortex

Hi bomz,

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

bomz

#27
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

bomz

#28
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?

QuoteIFDEF __WXP__
include \masm\include\wxp\kernel32.inc
ELSEIF.........

bomz

#29
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