Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #16  
Old 04-04-2013, 02:03
bilbo bilbo is offline
Friend
 
Join Date: Jul 2004
Posts: 103
Rept. Given: 36
Rept. Rcvd 15 Times in 12 Posts
Thanks Given: 15
Thanks Rcvd at 17 Times in 11 Posts
bilbo Reputation: 15
it's strange that you cannot go to the provided link: it is up...
anyway here is the program, from vortex.masmcode.com

and thanks for the /Zm tip I was unaware of...
bilbo
Attached Files
File Type: zip lib2inc22.zip (53.5 KB, 6 views)
Reply With Quote
  #17  
Old 04-04-2013, 03:31
bridgeic bridgeic is offline
Friend
 
Join Date: Jun 2012
Posts: 88
Rept. Given: 7
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 0
Thanks Rcvd at 7 Times in 6 Posts
bridgeic Reputation: 3
Quote:
bridgeic, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Sorry, why I can't download? I search the web and get this v22 version, but seems always crash both under winxp and win7, really strange.
Reply With Quote
  #18  
Old 04-04-2013, 20:21
bilbo bilbo is offline
Friend
 
Join Date: Jul 2004
Posts: 103
Rept. Given: 36
Rept. Rcvd 15 Times in 12 Posts
Thanks Given: 15
Thanks Rcvd at 17 Times in 11 Posts
bilbo Reputation: 15
@ Av0id, ragdog
I think our importing problems are related to the calling convention adopted, which is supposedly != stdcall

@ bridgeic
it sounds like you are a very unluck man... I tried the program on all masm32 libs without problems...

Best regards, bilbo
Reply With Quote
  #19  
Old 04-04-2013, 21:25
bridgeic bridgeic is offline
Friend
 
Join Date: Jun 2012
Posts: 88
Rept. Given: 7
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 0
Thanks Rcvd at 7 Times in 6 Posts
bridgeic Reputation: 3
Quote:
Originally Posted by bilbo View Post
@ bridgeic
it sounds like you are a very unluck man... I tried the program on all masm32 libs without problems...

Best regards, bilbo
Hi bilbo,

I don't know why I can't download your attachement in exetools forum.

Not sure whether the file lib2inc I used is same with yours, I download it from

http://www.winasm.net/library-to-include.html

Anyway, based on your guide below, I wrote a perl script to solve it as workround.
@4 means the total number of bytes required by function arguments

Thanks,
bridgeic
Reply With Quote
  #20  
Old 04-05-2013, 01:36
bilbo bilbo is offline
Friend
 
Join Date: Jul 2004
Posts: 103
Rept. Given: 36
Rept. Rcvd 15 Times in 12 Posts
Thanks Given: 15
Thanks Rcvd at 17 Times in 11 Posts
bilbo Reputation: 15
Quote:
I don't know why I can't download your attachement in exetools forum.
it is a matter of forum rules... look for an old post http://forum.exetools.com/showthread.php?t=6206
Reply With Quote
  #21  
Old 04-05-2013, 04:12
ragdog ragdog is offline
Friend
 
Join Date: Feb 2011
Posts: 56
Rept. Given: 2
Rept. Rcvd 25 Times in 7 Posts
Thanks Given: 9
Thanks Rcvd at 8 Times in 5 Posts
ragdog Reputation: 25
.686
.model flat, stdcall ;32 bit memory model
option casemap :none ;case sensitive

include windows.inc
include kernel32.inc
includelib kernel32.lib
Reply With Quote
  #22  
Old 04-06-2013, 08:46
bridgeic bridgeic is offline
Friend
 
Join Date: Jun 2012
Posts: 88
Rept. Given: 7
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 0
Thanks Rcvd at 7 Times in 6 Posts
bridgeic Reputation: 3
Quote:
Originally Posted by ragdog View Post
.686
.model flat, stdcall ;32 bit memory model
option casemap :none ;case sensitive

include windows.inc
include kernel32.inc
includelib kernel32.lib
Hi ragdog,

When I set it as your suggestion, RadASM give error below when compile, would you help check why?

D:\RadASM_2.2.1.9\Masm32\Include\windows.inc(11326) : error A2005: symbol redefinition : Red
D:\RadASM_2.2.1.9\Masm32\Include\windows.inc(11327) : error A2005: symbol redefinition : Green
D:\RadASM_2.2.1.9\Masm32\Include\windows.inc(11328) : error A2005: symbol redefinition : Blue
D:\RadASM_2.2.1.9\Masm32\Include\windows.inc(12224) : error A2005: symbol redefinition : fReserved
D:\RadASM_2.2.1.9\Masm32\Include\windows.inc(18572) : error A2005: symbol redefinition : Type1
D:\RadASM_2.2.1.9\Masm32\Include\windows.inc(18617) : error A2005: symbol redefinition : Type1
D:\RadASM_2.2.1.9\Masm32\Include\windows.inc(18621) : error A2005: symbol redefinition : Type1
D:\RadASM_2.2.1.9\Masm32\Include\windows.inc(18624) : fatal error A1010: unmatched block nesting

Thanks,
bridgeic
Reply With Quote
  #23  
Old 04-06-2013, 09:06
bridgeic bridgeic is offline
Friend
 
Join Date: Jun 2012
Posts: 88
Rept. Given: 7
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 0
Thanks Rcvd at 7 Times in 6 Posts
bridgeic Reputation: 3
Quote:
Originally Posted by ragdog View Post
.686
.model flat, stdcall ;32 bit memory model
option casemap :none ;case sensitive

include windows.inc
include kernel32.inc
includelib kernel32.lib
Hi ragdog,

question1: When I set it as your suggestion, RadASM give error below when compile, would you help check why?

D:\RadASM_2.2.1.9\Masm32\Include\windows.inc(11326) : error A2005: symbol redefinition : Red
D:\RadASM_2.2.1.9\Masm32\Include\windows.inc(11327) : error A2005: symbol redefinition : Green
D:\RadASM_2.2.1.9\Masm32\Include\windows.inc(11328) : error A2005: symbol redefinition : Blue
D:\RadASM_2.2.1.9\Masm32\Include\windows.inc(12224) : error A2005: symbol redefinition : fReserved
D:\RadASM_2.2.1.9\Masm32\Include\windows.inc(18572) : error A2005: symbol redefinition : Type1
D:\RadASM_2.2.1.9\Masm32\Include\windows.inc(18617) : error A2005: symbol redefinition : Type1
D:\RadASM_2.2.1.9\Masm32\Include\windows.inc(18621) : error A2005: symbol redefinition : Type1
D:\RadASM_2.2.1.9\Masm32\Include\windows.inc(18624) : fatal error A1010: unmatched block nesting

question 2: after remove "include windows.inc", it can be compiled succesfully, but when do LINK in VC, it still reports errors below, how to solve this issue?
error LNK2019: Unresolved external symbol _GetModuleHandleA

Thanks,
bridgeic
Reply With Quote
  #24  
Old 04-06-2013, 15:20
ragdog ragdog is offline
Friend
 
Join Date: Feb 2011
Posts: 56
Rept. Given: 2
Rept. Rcvd 25 Times in 7 Posts
Thanks Given: 9
Thanks Rcvd at 8 Times in 5 Posts
ragdog Reputation: 25
Send me you Project
I look into
Reply With Quote
  #25  
Old 04-07-2013, 00:09
bridgeic bridgeic is offline
Friend
 
Join Date: Jun 2012
Posts: 88
Rept. Given: 7
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 0
Thanks Rcvd at 7 Times in 6 Posts
bridgeic Reputation: 3
Quote:
Originally Posted by ragdog View Post
Send me you Project
I look into
Hi ragdog,

Would you help me have a look on question 1 first?

I'll try to upload the test case for question 2 tomorrow, it's a little big. In fact, it's FlexLM SDK 11.4, if you have it already, I need only share two files then.

Thanks,
bridgeic
Reply With Quote
  #26  
Old 04-07-2013, 00:59
ragdog ragdog is offline
Friend
 
Join Date: Feb 2011
Posts: 56
Rept. Given: 2
Rept. Rcvd 25 Times in 7 Posts
Thanks Given: 9
Thanks Rcvd at 8 Times in 5 Posts
ragdog Reputation: 25
I cannot answer your questions without see your source ;-)

But i think your have trouble with the includes
Reply With Quote
  #27  
Old 04-07-2013, 01:29
bridgeic bridgeic is offline
Friend
 
Join Date: Jun 2012
Posts: 88
Rept. Given: 7
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 0
Thanks Rcvd at 7 Times in 6 Posts
bridgeic Reputation: 3
Quote:
Originally Posted by ragdog View Post
I cannot answer your questions without see your source ;-)

But i think your have trouble with the includes
Hi ragdog,

For question 1, please get the asm source code as attached, thank you.
Attached Files
File Type: rar _tolower.rar (19.2 KB, 4 views)
Reply With Quote
  #28  
Old 04-07-2013, 01:32
bridgeic bridgeic is offline
Friend
 
Join Date: Jun 2012
Posts: 88
Rept. Given: 7
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 0
Thanks Rcvd at 7 Times in 6 Posts
bridgeic Reputation: 3
Hi ragdog,

Another help please, can you run the program lib2inc22.exe that bilbo shared succesfully?

Thanks,
bridgeic
Reply With Quote
  #29  
Old 04-07-2013, 18:03
bridgeic bridgeic is offline
Friend
 
Join Date: Jun 2012
Posts: 88
Rept. Given: 7
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 0
Thanks Rcvd at 7 Times in 6 Posts
bridgeic Reputation: 3
Hi ragdog,

Question 1. seems the errors caused by /Zm option

Question 2. Sorry, the test case upload always failed for the slow network speed.

Thanks,
bridgeic
Reply With Quote
  #30  
Old 04-07-2013, 19:38
ragdog ragdog is offline
Friend
 
Join Date: Feb 2011
Posts: 56
Rept. Given: 2
Rept. Rcvd 25 Times in 7 Posts
Thanks Given: 9
Thanks Rcvd at 8 Times in 5 Posts
ragdog Reputation: 25
To convert it to compile it with masm is to many works
What make _tolower convert it uppercase letter to lower?

Example ABCD to abcd?

Or what make this source?


/Zm option
Enables M510 option for maximum compatibility with MASM 5.1.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile eror rcer General Discussion 8 06-25-2013 18:21
Why this error report in RadASM? bridgeic General Discussion 3 04-02-2013 17:36


All times are GMT +8. The time now is 07:08.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )