PDA

View Full Version : WA502SDK no compiling in VS.Net


Dirko
22nd April 2004, 10:04
I have tried to compile the lang_b source in Visual Studio.NET and it gives a couple of errors. I have not made any changes to the original code that I downloaded from NSDN. Could anyone help me out here, or has anyone experienced the same problem?

DrO
22nd April 2004, 15:05
what are the errors you're getting? i would have thought it should complie fine since it's just a basic msvc 6 resource dll project.

-daz

saracu
2nd May 2004, 19:25
Hello

I am sincerr for start I not know to work in Visual C++ or other programs but I read documents and step I must foloow to make a language translation for WinAMP !
So I install Visual Studio .NET get the SDK source .. foloow the instructions and try to make a Language translations !

When I try to rebuild the lang_b ptoject I get this Error message:

1. lang_b error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup
2. lang_b fatal error LNK1120: 1 unresolved externals
3. lang_b warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification


Where I proceed wrong ! What I do wrong ! Can somebody help me pls !

Thanks !

Radu, Rmania !

DrO
3rd May 2004, 02:11
are you using a release or a debug build? the file should be built as a release build. also for a dll there is no need for main() so maybe you're not building it correctly as a dll project.

can't say what else since i use msvc 6 (and i've never touched .NET)

-daz

Dirko
4th May 2004, 16:25
Hi,

My errors are:
lang_b fatal error LNK1120: 1 unresolved externals
lang_b warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
lang_b error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup

Hope someone can help.
I used the standard Wa502sdk, without fiddling around with it. I took the original source and compiled it and got these errors.

Cheers

DrO
4th May 2004, 16:41
i think these two may be of some help http://www.dotnet247.com/247reference/msgs/36/184226.aspx and http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vcerrLinkerToolsErrorLNK2019.asp.

so the most likely option is that you need to put a cast around a header file, or make sure that all relevant libraries are linked to.

-daz

saracu
4th May 2004, 20:26
Thank you for the help !

I resolve the problem.. now the compiling work OK !
Tomorow or in maxim 2 days I will finish the translation and I will send ;)
I have 2 qwuestion if is not too much distrub:
1. Is a program I use for make the setup (.exe file) or can I use any type of software can make Setup Builders (Ex: InstallShield) ! ?
2. What file I must include in distribution package. Is enough the .lng file and a .txt with Install explications !?

Thanks again.. and I go to work.. I must finish the Romanian translation ! :)

DrO
4th May 2004, 22:15
saracu: what did you do to fix the problem (just so we know incase others have a problem?)

you can use any installer you like though most use NSIS since it's small, neat and has very little overhead. yes the .lng file and a text file is more than enough (though you really should make the installer do all the work so the user doesn't need to manually install things).

you may want to look at the attachment and see how that is to save you some effort in the translation since i was given the files to build a day or two ago and was going to publish it on the translators behalf.

-daz

saracu
4th May 2004, 23:59
Yes I will try the installer do all job copy himself files so the user just change Language in WinAmp preference !

I tell you I am almost 0 level in programing ;)How I remeidate my errors: I use Visual Studio .NET and I go to Project Propretis and change the setings at Configuration Propretis change the Output and Intermediate folder to Release (standard was Debug) and in configuartion amanger change the Debug to Release ! This is all I do.. after this was 0 errors ! :)

I take a look to the translation you attached and is a problem.. when In about box I go to Keyboard Shortcut menu appear a Error: "namp5.03a - Wi: Winamp.exe Application Error... The instruction at 0x77c.. etc" and click OK to terminate program ;) .. but thanks again for this this help me to make some changes to my translation (was 3 or 4 % untranslated in my package.. and now I can say is 99% in ROmanian) ;) Thanks again :)

This is all. thanks for the help DrO !

DrO
5th May 2004, 13:22
Originally posted by DrO
the file should be built as a release build.yay, i was right for a change :)

saracu: just checked and it does crash when viewing the shortcuts. looks like my project file is borked since it's not including the tips.txt file correctly.

i've attached the full project and the fixed version, so if you want to compare, etc then that's fine. also there's a working nsis installer script from the language pack i made which you just need to alter the file names, etc to have an installer for the romanian version :)

-daz

saracu
5th May 2004, 14:58
Hello

I finish work at Romanian Language pack and Submit it !
Thanks again DrO for your help .NSI file :) and for ROmanian translation file .. help me very much !
Thanks ! :)

DrO
5th May 2004, 15:10
I finish work at Romanian Language pack and Submit it !yay :D

-daz