NO

Author Topic: Micorsoft Visual C++ Toolkit 2003 Addin  (Read 15737 times)

pocket_geek

  • Guest
Micorsoft Visual C++ Toolkit 2003 Addin
« on: March 23, 2005, 11:19:27 AM »
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

  • Guest
Micorsoft Visual C++ Toolkit 2003 Addin
« Reply #1 on: March 23, 2005, 04:07:45 PM »
pocket_geek,

Very nice.

Why does it tell me this in the output?
Code: [Select]
'doskey' is not recognized as an internal or external command,
operable program or batch file.

pocket_geek

  • Guest
Micorsoft Visual C++ Toolkit 2003 Addin
« Reply #2 on: March 24, 2005, 01:50:14 AM »
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

  • Guest
Micorsoft Visual C++ Toolkit 2003 Addin
« Reply #3 on: March 24, 2005, 04:29:17 AM »
pocket_geek,

Here is the entire output from the VC++ Toolkit 2003 compile:
Code: [Select]
'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:
Code: [Select]
@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

  • Guest
Micorsoft Visual C++ Toolkit 2003 Addin
« Reply #4 on: March 24, 2005, 08:33:59 AM »
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

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Micorsoft Visual C++ Toolkit 2003 Addin
« Reply #5 on: March 24, 2005, 08:34:23 AM »
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

  • Guest
Micorsoft Visual C++ Toolkit 2003 Addin
« Reply #6 on: March 24, 2005, 10:07:08 AM »
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

  • Guest
Micorsoft Visual C++ Toolkit 2003 Addin
« Reply #7 on: March 26, 2005, 09:27:50 PM »
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

  • Guest
Micorsoft Visual C++ Toolkit 2003 Addin
« Reply #8 on: April 14, 2005, 02:59:51 AM »
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

  • Guest
Micorsoft Visual C++ Toolkit 2003 Addin
« Reply #9 on: April 14, 2005, 10:22:20 AM »
It's on my ever lengthening todo list...  :?

C_Bastian

  • Guest
Errors?
« Reply #10 on: July 01, 2005, 01:38:46 AM »
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

  • Guest
Micorsoft Visual C++ Toolkit 2003 Addin
« Reply #11 on: July 01, 2005, 08:24:59 AM »
Hi out there,

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

Good work. Really cool.

 =D>

Sebastian

Anonymous

  • Guest
Micorsoft Visual C++ Toolkit 2003 Addin
« Reply #12 on: August 04, 2005, 01:54:05 PM »
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.