Pelles C > Add-ins
Micorsoft Visual C++ Toolkit 2003 Addin
pocket_geek:
Hey all,
I've written an addin for PellesC that allows you to easily compile a project with the free Micorsoft Toolkit.
In order for this plugin to work you need Micorsoft Visual C++ Toolkit 2003 availible here: http://www.microsoft.com/downloads/details.aspx?FamilyId=272BE09D-40BB-49FD-9CB0-4BFA122FA91B&displaylang=en
And you also need the Windows Platform SDK availible here: http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
PellesC is wonderfull, but sometimes it's nice to have a second opinion. :mrgreen:
Greg:
pocket_geek,
Very nice.
Why does it tell me this in the output?
--- Code: ---'doskey' is not recognized as an internal or external command,
operable program or batch file.
--- End code ---
pocket_geek:
Greg,
I have no idea what the the problem is. This addin saves the MSVC settings for that project in a *.bat file in the project directory. If you post this batch file I might be able to figure out what's wrong.
Greg:
pocket_geek,
Here is the entire output from the VC++ Toolkit 2003 compile:
--- Code: ---'doskey' is not recognized as an internal or external command,
operable program or batch file.
Building Release
PlayMIDI.c
linking...
Done
--- End code ---
Here is the batch file:
--- Code: ---@echo off
echo Building Release
Set DorR=1
Set Multi=0
Set PATH=C:\Program Files\Microsoft SDK\bin;C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin
Set INCLUDE=C:\Program Files\Microsoft SDK\include;C:\Program Files\Microsoft Visual C++ Toolkit 2003\include
Set LIB=C:\Program Files\Microsoft SDK\lib;C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib
if %DorR%==0 set clopts=/nologo /c /Od /Zi
if %DorR%==0 set linkopts=/nologo /MACHINE:X86 /debug /NODEFAULTLIB /INCREMENTAL:NO /ENTRY:mainCRTStartup
if %DorR%==1 set clopts=/nologo /c /O2 /G7
if %DorR%==1 set linkopts=/nologo /MACHINE:X86 /release /NODEFAULTLIB /INCREMENTAL:NO /ENTRY:mainCRTStartup
set libs=libc.lib kernel32.lib user32.lib gdi32.lib advapi32.lib shell32.lib comctl32.lib WS2_32.Lib winmm.lib Comdlg32.lib
cl %clopts% /Fomsoutput\PlayMIDI.obj "D:\C\PellesC\Win32\PlayMIDI\PlayMIDI.c"
if errorlevel 1 goto end
set libs=%libs% msoutput\PlayMIDI.obj
echo linking...
link /SUBSYSTEM:WINDOWS %linkopts% /out:PlayMIDImsvc.exe %libs%
:end
echo Done
--- End code ---
It seems to be happening before the batch file is run.
Your Add-in is working fine though, I was just curious about the 'doskey' message.
JohnF:
I get a problem with the RC file, the bat file has rc /
==================
Echo main.rc
rc /Fomsoutput\main.res "D:\PellesC\Projects\Image\main.rc"
==================
The output window says
==================
Building Debug
main.rc
'rc' is not recognized as an internal or external command,
operable program or batch file.
Done
==================
Any ideas?
EDIT:
I had to copy RC.Exe, RcDll.Dll and CVTRES.EXE into BIN, now it works.
Well done!
END EDIT:
John
Navigation
[0] Message Index
[#] Next page
Go to full version