Micorsoft Visual C++ Toolkit 2003 Addin

Started by pocket_geek, March 23, 2005, 11:19:27 AM

Previous topic - Next topic

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?
'doskey' is not recognized as an internal or external command,
operable program or batch file.

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:
'doskey' is not recognized as an internal or external command,
operable program or batch file.
Building Release
PlayMIDI.c
linking...
Done

Here is the batch file:
@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


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

Pelle

Quote from: "pocket_geek"PellesC is wonderfull, but sometimes it's nice to have a second opinion.   :mrgreen:
Absolutely. Nice work! It's working very nicely here. Thanks!

Pelle
/Pelle

pocket_geek

JohnF,

rc.exe and rcdll.dll are both in the bin folder of the platform SDK.  CVTRES can be downloaded from microsoft here: http://support.microsoft.com/default.aspx?scid=kb;en-us;q187280


Pelle,
    Thanks, I'm glad you like it.

Here is a link explaining some of the issues with Microsofts Free MSVC toolkit:  http://sapdb.2scale.net/moin.cgi/MS_20C_2b_2b_20Toolkit

Justin Thyme

I haven't tried this yet, but it's a fantastic idea!  MS was kind enough to make the toolkit available for free, and having the ability to run an IDE with it is even better!

Pelle has done a phenomenal job!=D>

 I've tried several freeware compiler/IDE's, and this one is by far the most stable and reliable.  Some others that show promise are  incredibly tough to get configured properly.  PellesC just works, right off the install.

Greg

pocket_geek,

Where's the help file? The add-in put an item on the menu for it,
but there isn't one in the zip file.  :P

pocket_geek

It's on my ever lengthening todo list...  :?

C_Bastian

Hi pocket-greek,

if I try to use your addin, I get an "access violation exception in module mscvtoolkit.dll @0x00000000"

Furthermore, I tried to recompile and got hundreds of errors. Seems, I did something wrong.

Do you know these errors?

Sebastian

C_Bastian

Hi out there,

now it works. Seems, my version of Pelles C was too old.

Good work. Really cool.

=D>

Sebastian

Anonymous

Quote from: "pocket_geek"CVTRES can be downloaded from microsoft here: http://support.microsoft.com/default.aspx?scid=kb;en-us;q187280
Actualy you shouldn't use that file!
Some time ago, i wrote a tutorial how to get started with the free tools form microsoft and wxWidgets library. It's just a tutorial, how to install and configure all the free stuff from microsoft, and then use it to compile wxWidgets. The first part (how to install) could be actualy useful in here too. Here is the link: http://wiki.wxwidgets.org/wiki.pl?MS_Free_Tools_And_WxWidgets

cvtres.exe comes with .NET framework SDK v1.1 and it is newer version than the one you linked to. So i believe you should realy use this one from .NET SDK.