The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => Easy Code => Topic started by: Hades on June 20, 2005, 01:01:46 PM

Title: A little help please?
Post by: Hades on June 20, 2005, 01:01:46 PM
I keep getting this error and I don't know why:

Project1.exe : fatal error LNK1120: 1 unresolved external


At the top I included:

File Proto C :Ptr, :DWord


What am I doing wrong? Thanks for furute referece.

Also heres how it's being used


.ElseIf Eax == IDC_SPLIT_BUTTON2
invoke EnableWindow,lParam,FALSE
Invoke GetDlgItemInt, hWnd, IDC_SPLIT_EDIT2, NULL, TRUE
Invoke File, Addr szBuffer, Eax
INVOKE EnableWindow,lParam,TRUE
.ElseIf Eax == IDC_SPLIT_BUTTON3
invoke EnableWindow,lParam,FALSE
Invoke File, Addr szBuffer, 0
invoke EnableWindow,lParam,TRUE
Title: Re: A little help please?
Post by: Ramon Sala on June 20, 2005, 04:19:55 PM
Hi Hades,

Which is exactly the unresolved external? The File procedure maybe? If so, where is the File procedure code? In another file? If so, is that file included or the corresponding library? If you cannot find the problem, please post the code (or send it to me) and we will find it.

Regards,

Ramon
Title: Re: A little help please?
Post by: Hades on June 20, 2005, 05:44:49 PM
I'm basically remake the AsmCut masm32 example 8 program for Easy Code. The thing is, I keep getting that one error because it doesn't seem to find:

CutFile Proto C :Ptr, :DWord
Title: Re: A little help please?
Post by: Ramon Sala on June 20, 2005, 06:01:34 PM
I'll have a look and tell you something.

Ramon
Title: Re: A little help please?
Post by: Hades on June 20, 2005, 06:12:48 PM
ok, thanks :)
Title: Re: A little help please?
Post by: Ramon Sala on June 20, 2005, 06:57:20 PM
Hi Hades,

Well, I've been looking to example 8 in MASM32\Examples and you're not doing anything wrong. If you edit the MAKE.BAT file in MASM32\Examples\Example8\AsmCut folder, you will see that a file named cutfile.obj is included by the linker (this .obj file is suposed to contain the code for the CutFile procedure) and the problem is that the file is missing. So, we can do nothing about that. Anyway, I attach this project converted to Easy Code. As you will see, in order to be able to build the project, all calls to the missing CutFile procedure have been commented (lines 101 and 105).

Regards,

Ramon


[attachment deleted by admin]
Title: Re: A little help please?
Post by: Hades on June 20, 2005, 07:04:11 PM
Ok, this wasjust a test project anyways so I'm not to worried about it. I was just testing the IDE and it's functions. And seeing what basic things I can do in asm. Basically all I wanted to know is if I was doing something wrong, and since you said I wasn't. I think i'll start a real project now. Thanks for your help.
Title: Re: A little help please?
Post by: Ramon Sala on June 20, 2005, 07:28:58 PM
You're welcome Hades! Thanks for using Easy Code.

Ramon


P.S. Download the last version of Easy Code just released today.
Title: Re: A little help please?
Post by: Hades on June 20, 2005, 07:55:16 PM
I already did, I noticed the topic right when you posted it.

Thanks, Josh.
Title: Re: A little help please?
Post by: Bieb on June 20, 2005, 09:55:12 PM
Good luck with Easy Code.  I have to advise, if you're going to be using the Visual Project mode, that you learn at least the basics of Windows programming.  It's a great tool, but unlike, say Visual Basic, it won't excuse you from knowing basic Windows programming.  I had a lot of problems when I first started that I thought were because of Easy Code, but were rather simply because of my shoddy knowledge of the Windows API.
Title: Re: A little help please?
Post by: Hades on June 21, 2005, 01:28:50 AM
thanks for the tip, I'll look into that =)
Title: Re: A little help please?
Post by: Ramon Sala on June 21, 2005, 06:45:10 AM
Robert,

Thank you very much.

Ramon