Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 22nd April 2004, 10:04   #1
Dirko
Junior Member
 
Join Date: Apr 2004
Location: PE, South Africa
Posts: 2
WA502SDK no compiling in VS.Net

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?
Dirko is offline   Reply With Quote
Old 22nd April 2004, 15:05   #2
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,278
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
DrO is offline   Reply With Quote
Old 2nd May 2004, 19:25   #3
saracu
Junior Member
 
saracu's Avatar
 
Join Date: May 2004
Location: Romania
Posts: 4
Send a message via Yahoo to saracu
Problem compilling Language in Visual Studio !

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 !
saracu is offline   Reply With Quote
Old 3rd May 2004, 02:11   #4
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,278
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
DrO is offline   Reply With Quote
Old 4th May 2004, 16:25   #5
Dirko
Junior Member
 
Join Date: Apr 2004
Location: PE, South Africa
Posts: 2
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
Dirko is offline   Reply With Quote
Old 4th May 2004, 16:41   #6
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,278
i think these two may be of some help http://www.dotnet247.com/247referenc...36/184226.aspx and http://msdn.microsoft.com/library/de...orLNK2019.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
DrO is offline   Reply With Quote
Old 4th May 2004, 20:26   #7
saracu
Junior Member
 
saracu's Avatar
 
Join Date: May 2004
Location: Romania
Posts: 4
Send a message via Yahoo to saracu
Thank you !

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 !
saracu is offline   Reply With Quote
Old 4th May 2004, 22:15   #8
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,278
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
Attached Files
File Type: zip romanian.zip (18.2 KB, 67 views)
DrO is offline   Reply With Quote
Old 4th May 2004, 23:59   #9
saracu
Junior Member
 
saracu's Avatar
 
Join Date: May 2004
Location: Romania
Posts: 4
Send a message via Yahoo to saracu
Hello again ;)

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 !
saracu is offline   Reply With Quote
Old 5th May 2004, 13:22   #10
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,278
Quote:
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
Attached Files
File Type: zip romanian_lngpk.zip (52.0 KB, 76 views)
DrO is offline   Reply With Quote
Old 5th May 2004, 14:58   #11
saracu
Junior Member
 
saracu's Avatar
 
Join Date: May 2004
Location: Romania
Posts: 4
Send a message via Yahoo to saracu
WinAmp Romanian Language Pack

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 !
saracu is offline   Reply With Quote
Old 5th May 2004, 15:10   #12
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,278
Quote:
I finish work at Romanian Language pack and Submit it !
yay

-daz
DrO is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off

Forum Jump