www.digitalmars.com         C & C++   DMDScript  

D - linking

reply "Sean L. Palmer" <seanpalmer earthlink.net> writes:
Just in case anyone else is having trouble linking, I finally figured out
how to get DMD to deal with multiple files and other libs and such and
here's the batch file I now have for building testgl:

cd \dmd\d\testgl
\dmd\bin\dmd testgl.d winbase.d wingdi.d winuser.d gdi32.lib user32.lib
kernel32.lib opengl32.lib -I\dmd\src\phobos

It no longer uses SC or shell scripts.  This is actually quite nice Walter,
thanks for enabling this.

BTW I also have a Visual Studio 6 utility project set up that builds D files
as custom build steps, so I can debug from the ide.  ;)

Sean
Jun 01 2002
next sibling parent reply "Jonas" <jonas.vermeulen student.kuleuven.ac.be> writes:
 BTW I also have a Visual Studio 6 utility project set up that builds D
files
 as custom build steps, so I can debug from the ide.  ;)

 Sean
Hi, Do you have a website where we can download it (or the way you set up Visual Studio). I would find it very nice to have an IDE where to produce and debug D-apps. It would make the work more (easier) enjoyable
Jun 02 2002
parent reply "Sean L. Palmer" <seanpalmer earthlink.net> writes:
They're just a few K (attached)

Not as convenient as I'd like.  It doesn't syntax highlight D files.  It
also doesn't allow you to define new file types in general so you can't make
a build rule for, say, to build D files you run dmd.exe with these
parameters.  So each file ends up with its own custom build step.

For a larger project I'd set it up to build thru a batch file or make and
have the whole project not set to build individual files but just to call
the batch file with different parameters when you hit F7.  But then you have
to maintain separately the list of files in the IDE and the list of files in
the batch or make file.  This is mainly a problem with Visual Studio 6;  I'm
not sure if VS .net is any better about this.  I've also tried MED (don't
like it so far) and TextPad (which seems to be growing into more of a HTML
editor than an IDE).  Maybe I should look for a new tool.  I'm sure I could
configure Multi-Edit or one of those other high-dollar programmer's editors
to make working with D a snap.  What is really needed is something that is
an IDE integrated with MAKE.  Kind of a GUI front end for MAKE that just
also happens to be a text editor, debugger, and type and object browser
would be perfect; especially if it comes with its own D compiler.  ;)  I'm
not opposed to gluing together other tools, but integration actually does
help productivity.

If I could just get Visual Studio to have an explorer window instead of the
project window!

I just thought of something.  Maybe if you could configure a folder so that
while you're browsing in there, if you hit a certain key it performs some
action (possibly with use of information such as which folder you're
currently in;  what file you're looking at;  what is selected; etc).  But
ONLY while you're in one of the subfolders or a document located in a
subfolder.  This would be like integrating the compiler into the explorer
window.  I know you can also compile files using the context menu in the
explorer;  I've also attached a d.reg file that you can merge that *should*
make your computer (if it's running windows ;) able to compile a .D file
into a .OBJ or .EXE file by right-clicking it and selecting Compile or
Compile And Link.  You may have to customize the path in the registry (or
explorer's Tools | Folder Options | File Types) to point to the correct
location of your dmd.exe and phobos lib.  I'm interested to know if it works
on other peoples' machines besides mine.  If you're worried, all these
attachments are text files and can be perused.

Sean

"Jonas" <jonas.vermeulen student.kuleuven.ac.be> wrote in message
news:adcg5n$2ivo$1 digitaldaemon.com...
 BTW I also have a Visual Studio 6 utility project set up that builds D
files
 as custom build steps, so I can debug from the ide.  ;)

 Sean
Hi, Do you have a website where we can download it (or the way you set up Visual Studio). I would find it very nice to have an IDE where to produce and debug D-apps. It would make the work more (easier) enjoyable
begin 666 TestGL.dsp M(R!-:6-R;W-O9G0 1&5V96QO<&5R(%-T=61I;R!0<F]J96-T($9I;&4 +2!. M86UE/2)497-T1TPB("T 4&%C:V%G92!/=VYE<CT\-#X-"B, 36EC<F]S;V9T M($1E=F5L;W!E<B!3='5D:6\ 1V5N97)A=&5D($)U:6QD($9I;&4L($9O<FUA M="!697)S:6]N(#8N,# -"B, *BH 1$\ 3D]4($5$250 *BH-" T*(R!405)' M5%E012 B5VEN,S( *' X-BD 1V5N97)I8R!0<F]J96-T(B P># Q,&$-" T* M0T9'/51E<W1'3" M(%=I;C,R($1E8G5G#0HA34534T%'12!4:&ES(&ES(&YO M="!A('9A;&ED(&UA:V5F:6QE+B!4;R!B=6EL9"!T:&ES('!R;VIE8W0 =7-I M;F< 3DU!2T4L#0HA34534T%'12!U<V4 =&AE($5X<&]R="!-86ME9FEL92!C M;VUM86YD(&%N9"!R=6X-"B%-15-304=%( T*(4U%4U-!1T4 3DU!2T4 +V8 M(E1E<W1'3"YM86LB+ T*(4U%4U-!1T4 #0HA34534T%'12!9;W4 8V%N('-P M96-I9GD 82!C;VYF:6=U<F%T:6]N('=H96X <G5N;FEN9R!.34%+10T*(4U% M4U-!1T4 8GD 9&5F:6YI;F< =&AE(&UA8W)O($-&1R!O;B!T:&4 8V]M;6%N M9"!L:6YE+B!&;W( 97AA;7!L93H-"B%-15-304=%( T*(4U%4U-!1T4 3DU! M2T4 +V8 (E1E<W1'3"YM86LB($-&1STB5&5S=$=,("T 5VEN,S( 1&5B=6<B M#0HA34534T%'12 -"B%-15-304=%(%!O<W-I8FQE(&-H;VEC97, 9F]R(&-O M;F9I9W5R871I;VX 87)E. T*(4U%4U-!1T4 #0HA34534T%'12 B5&5S=$=, M("T 5VEN,S( 4F5L96%S92( *&)A<V5D(&]N(")7:6XS,B H># V*2!'96YE M<FEC(%!R;VIE8W0B*0T*(4U%4U-!1T4 (E1E<W1'3" M(%=I;C,R($1E8G5G M(B H8F%S960 ;VX (E=I;C,R("AX.#8I($=E;F5R:6, 4')O:F5C="(I#0HA M34534T%'12 -" T*(R!"96=I;B!0<F]J96-T#0HC(%!23U 06QL;W=097)# M;VYF:6=$97!E;F1E;F-I97, , T*(R!04D]0(%-C8U]0<F]J3F%M92 B( T* M(R!04D]0(%-C8U],;V-A;%!A=& (B(-"DU43#UM:61L+F5X90T*#0HA248 M("(D*$-&1RDB(#T](")497-T1TP +2!7:6XS,B!296QE87-E( T*#0HC(%!2 M3U 0D%312!5<V5?349#(# -"B, 4%)/4"!"05-%(%5S95]$96)U9U],:6)R M87)I97, , T*(R!04D]0($)!4T4 3W5T<'5T7T1I<B B4F5L96%S92(-"B, M4%)/4"!"05-%($EN=&5R;65D:6%T95]$:7( (E)E;&5A<V4B#0HC(%!23U M0D%312!487)G971?1&ER("(B#0HC(%!23U 57-E7TU&0R P#0HC(%!23U M57-E7T1E8G5G7TQI8G)A<FEE<R P#0HC(%!23U 3W5T<'5T7T1I<B B( T* M(R!04D]0($EN=&5R;65D:6%T95]$:7( (B(-"B, 4%)/4"!487)G971?1&ER M("(B#0H-"B%%3%-%248 ("(D*$-&1RDB(#T](")497-T1TP +2!7:6XS,B!$ M96)U9R(-" T*(R!04D]0($)!4T4 57-E7TU&0R P#0HC(%!23U 0D%312!5 M<V5?1&5B=6=?3&EB<F%R:65S(#$-"B, 4%)/4"!"05-%($]U='!U=%]$:7( M(D1E8G5G( T*(R!04D]0($)!4T4 26YT97)M961I871E7T1I<B B1&5B=6<B M#0HC(%!23U 0D%312!487)G971?1&ER("(B#0HC(%!23U 57-E7TU&0R P M#0HC(%!23U 57-E7T1E8G5G7TQI8G)A<FEE<R Q#0HC(%!23U 3W5T<'5T M7T1I<B B( T*(R!04D]0($EN=&5R;65D:6%T95]$:7( (B(-"B, 4%)/4"!4 M87)G971?1&ER("(B#0HC($%$1"!-5$P +TD (EQD;61<<W)C7'!H;V)O<R(- M" T*(45.1$E&( T*#0HC($)E9VEN(%1A<F=E= T*#0HC($YA;64 (E1E<W1' M3" M(%=I;C,R(%)E;&5A<V4B#0HC($YA;64 (E1E<W1'3" M(%=I;C,R($1E M8G5G( T*(R!"96=I;B!3;W5R8V4 1FEL90T*#0I33U520T4]+EQ497-T1TPN M9 T*#0HA248 ("(D*$-&1RDB(#T](")497-T1TP +2!7:6XS,B!296QE87-E M( T*#0I54T521$507U]415-41STB=VEN8F%S92YO8FHB"2)W:6YG9&DN;V)J M( DB=VEN=7-E<BYO8FHB"0T*(R!"96=I;B!#=7-T;VT 0G5I;&0 +2!#;VUP M:6QI;F< )"A);G!U=%!A=& I#0I);G1$:7(]+ T*26YP=710871H/2Y<5&5S M=$=,+F0-"DEN<'5T3F%M93U497-T1TP-" T*(B0H26YP=71.86UE*2YE>&4 M)"A);G!U=$YA;64I+F]B:B( .B D*%-/55)#12D (B0H24Y41$E2*2( (B0H M3U541$E2*2(-" E<9&UD7&)I;EQD;60N97AE("UG("UR96QE87-E("UI;FQI M;F4 +4\ +6\D*$EN=$1I<BD )"A);G!U=$YA;64I('=I;F)A<V4N;V)J('=I M;F=D:2YO8FH =VEN=7-E<BYO8FH 9V1I,S(N;&EB('5S97(S,BYL:6( :V5R M;F5L,S(N;&EB(&]P96YG;#,R+FQI8B M25QD;61<<W)C7'!H;V)O<PT*#0HC M($5N9"!#=7-T;VT 0G5I;&0-" T*(45,4T5)1B (B0H0T9'*2( /3T (E1E M<W1'3" M(%=I;C,R($1E8G5G( T*#0I54T521$507U]415-41STB=VEN8F%S M92YO8FHB"2)W:6YG9&DN;V)J( DB=VEN=7-E<BYO8FHB"0T*(R!"96=I;B!# M=7-T;VT 0G5I;&0 +2!#;VUP:6QI;F< )"A);G!U=%!A=& I#0I);G!U=%!A M=& ]+EQ497-T1TPN9 T*26YP=71.86UE/51E<W1'3 T*#0HB)"A);G!U=$YA M;64I+F5X92 D*$EN<'5T3F%M92DN;V)J(B Z("0H4T]54D-%*2 B)"A)3E1$ M25(I(B B)"A/551$25(I( T*"5QD;61<8FEN7&1M9"YE>&4 +6< +61E8G5G M("UU;FET=&5S=" M=F5R<VEO;CUD96)U9R D*$EN<'5T3F%M92D =VEN8F%S M92YO8FH =VEN9V1I+F]B:B!W:6YU<V5R+F]B:B!G9&DS,BYL:6( =7-E<C,R M+FQI8B!K97)N96PS,BYL:6( ;W!E;F=L,S(N;&EB("U)7&1M9%QS<F-<<&AO M8F]S#0H-"B, 16YD($-U<W1O;2!"=6EL9 T*#0HA14Y$248 #0H-"B, 16YD M(%-O=7)C92!&:6QE#0HC($)E9VEN(%-O=7)C92!&:6QE#0H-"E-/55)#13TN M7%1E>#$N8FUP#0H-"B%)1B (B0H0T9'*2( /3T (E1E<W1'3" M(%=I;C,R M(%)E;&5A<V4B#0H-"B%%3%-%248 ("(D*$-&1RDB(#T](")497-T1TP +2!7 M:6XS,B!$96)U9R(-" T*(45.1$E&( T*#0HC($5N9"!3;W5R8V4 1FEL90T* M(R!"96=I;B!3;W5R8V4 1FEL90T*#0I33U520T4]+EQW:6YB87-E+F0-" T* M(4E&(" B)"A#1D<I(B ]/2 B5&5S=$=,("T 5VEN,S( 4F5L96%S92(-" T* M(R!"96=I;B!#=7-T;VT 0G5I;&0-"DEN<'5T4&%T:#TN7'=I;F)A<V4N9 T* M26YP=71.86UE/7=I;F)A<V4-" T*(B0H26YP=71.86UE*2YO8FHB(#H )"A3 M3U520T4I("(D*$E.5$1)4BDB("(D*$]55$1)4BDB#0H)7&1M9%QB:6Y<9&UD M("UC("0H26YP=71.86UE*2 M25QD;61<<W)C7'!H;V)O<PT*#0HC($5N9"!# M=7-T;VT 0G5I;&0-" T*(45,4T5)1B (B0H0T9'*2( /3T (E1E<W1'3" M M(%=I;C,R($1E8G5G( T*#0HC($)E9VEN($-U<W1O;2!"=6EL9 T*26YP=710 M871H/2Y<=VEN8F%S92YD#0I);G!U=$YA;64]=VEN8F%S90T*#0HB)"A);G!U M=$YA;64I+F]B:B( .B D*%-/55)#12D (B0H24Y41$E2*2( (B0H3U541$E2 M*2(-" E<9&UD7&)I;EQD;60 +6, )"A);G!U=$YA;64I("U)7&1M9%QS<F-< M<&AO8F]S#0H-"B, 16YD($-U<W1O;2!"=6EL9 T*#0HA14Y$248 #0H-"B, M16YD(%-O=7)C92!&:6QE#0HC($)E9VEN(%-O=7)C92!&:6QE#0H-"E-/55)# M13TN7'=I;F=D:2YD#0H-"B%)1B (B0H0T9'*2( /3T (E1E<W1'3" M(%=I M;C,R(%)E;&5A<V4B#0H-"E5315)$15!?7U=)3D=$/2)W:6YB87-E+F]B:B() M#0HC($)E9VEN($-U<W1O;2!"=6EL9 T*26YP=710871H/2Y<=VEN9V1I+F0- M"DEN<'5T3F%M93UW:6YG9&D-" T*(B0H26YP=71.86UE*2YO8FHB(#H )"A3 M3U520T4I("(D*$E.5$1)4BDB("(D*$]55$1)4BDB#0H)7&1M9%QB:6Y<9&UD M("UC("0H26YP=71.86UE*2 M25QD;61<<W)C7'!H;V)O<PT*#0HC($5N9"!# M=7-T;VT 0G5I;&0-" T*(45,4T5)1B (B0H0T9'*2( /3T (E1E<W1'3" M M(%=I;C,R($1E8G5G( T*#0I54T521$507U]724Y'1#TB=VEN8F%S92YO8FHB M"0T*(R!"96=I;B!#=7-T;VT 0G5I;&0-"DEN<'5T4&%T:#TN7'=I;F=D:2YD M#0I);G!U=$YA;64]=VEN9V1I#0H-"B(D*$EN<'5T3F%M92DN;V)J(B Z("0H M4T]54D-%*2 B)"A)3E1$25(I(B B)"A/551$25(I( T*"5QD;61<8FEN7&1M M9" M8R D*$EN<'5T3F%M92D +4E<9&UD7'-R8UQP:&]B;W,-" T*(R!%;F0 M0W5S=&]M($)U:6QD#0H-"B%%3D1)1B -" T*(R!%;F0 4V]U<F-E($9I;&4- M"B, 0F5G:6X 4V]U<F-E($9I;&4-" T*4T]54D-%/2Y<=VEN=7-E<BYD#0H- M"B%)1B (B0H0T9'*2( /3T (E1E<W1'3" M(%=I;C,R(%)E;&5A<V4B#0H- M"E5315)$15!?7U=)3E53/2)W:6YB87-E+F]B:B()(G=I;F=D:2YO8FHB"0T* M(R!"96=I;B!#=7-T;VT 0G5I;&0-"DEN<'5T4&%T:#TN7'=I;G5S97(N9 T* M26YP=71.86UE/7=I;G5S97(-" T*(B0H26YP=71.86UE*2YO8FHB(#H )"A3 M3U520T4I("(D*$E.5$1)4BDB("(D*$]55$1)4BDB#0H)7&1M9%QB:6Y<9&UD M("UC("0H26YP=71.86UE*2 M25QD;61<<W)C7'!H;V)O<PT*#0HC($5N9"!# M=7-T;VT 0G5I;&0-" T*(45,4T5)1B (B0H0T9'*2( /3T (E1E<W1'3" M M(%=I;C,R($1E8G5G( T*#0I54T521$507U]724Y54STB=VEN8F%S92YO8FHB M"2)W:6YG9&DN;V)J( D-"B, 0F5G:6X 0W5S=&]M($)U:6QD#0I);G!U=%!A M=& ]+EQW:6YU<V5R+F0-"DEN<'5T3F%M93UW:6YU<V5R#0H-"B(D*$EN<'5T M3F%M92DN;V)J(B Z("0H4T]54D-%*2 B)"A)3E1$25(I(B B)"A/551$25(I M( T*"5QD;61<8FEN7&1M9" M8R D*$EN<'5T3F%M92D +4E<9&UD7'-R8UQP M:&]B;W,-" T*(R!%;F0 0W5S=&]M($)U:6QD#0H-"B%%3D1)1B -" T*(R!% M;F0 4V]U<F-E($9I;&4-"B, 16YD(%1A<F=E= T*(R!%;F0 4')O:F5C= T* ` end begin 666 run.bat M0&5C:&\ ;V9F#0IC9"!<9&UD7&1<=&5S=&=L#0IS970 1$E.0TQ51$4]+4E< M9&UD7'-R8UQP:&]B;W,-"G)E;2!S970 1$9,04=3/2U/("UR96QE87-E("UI M;FQI;F4 )41)3D-,541%)0T*<V5T($1&3$%'4STM9&5B=6< +75N:71T97-T M("5$24Y#3%5$124-"G-E="!$3$E"4SUW:6YB87-E+F]B:B!W:6YG9&DN;V)J M('=I;G5S97(N;V)J(&=D:3,R+FQI8B!U<V5R,S(N;&EB(&ME<FYE;#,R+FQI M8B!O<&5N9VPS,BYL:6(-"G-E="!$0T]-4$E,13U<9&UD7&)I;EQD;60 )41& M3$%'4R4 #0I 96-H;R!O; T*:68 ;F]T(&5X:7-T('=I;F)A<V4N;V)J("5$ M0T]-4$E,124 +6, =VEN8F%S90T*0&EF(&5R<F]R;&5V96P ,2!G;W1O($9! M24P-"FEF(&YO="!E>&ES="!W:6YG9&DN;V)J(" E1$-/35!)3$4E("UC('=I M;F=D:0T*0&EF(&5R<F]R;&5V96P ,2!G;W1O($9!24P-"FEF(&YO="!E>&ES M="!W:6YU<V5R+F]B:B E1$-/35!)3$4E("UC('=I;G5S97(-"D!I9B!E<G)O M<FQE=F5L(#$ 9V]T;R!&04E,#0HE1$-/35!)3$4E('1E<W1G;"YD("5$3$E" M4R4 #0I :68 97)R;W)L979E;" Q(&=O=&\ 1D%)3 T*0&5C:&\ ;V9F#0IR M96T <V5T($1)3D-,541%/0T*<F5M('-E="!$1DQ!1U,]#0IR96T <V5T($1, M24)3/0T*<F5M('-E="!$0T]-4$E,13T-"D!E8VAO(')U;FYI;F<N+BX-"G1E M<W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 !P`& `;P!B`&\`<P`B``T`" `-``H`6P!(`$L`10!9`%\`0P!, M`$$`4P!3`$4`4P!?`%(`3P!/`%0`7 !D`&8`:0!L`&4`7 !S`& `90!L`&P` M7 !C`&\`;0!P`&D`; !E`" `80!N`&0`( !L`&D`; !K`%T`#0`*``T`" !; M`$ `2P!%`%D`7P!#`$P`00!3`%,`10!3`%\`4 !/`$\`5 !<`&0`9 !I`&P` M90!<`',`: !E`&P`; !<`&,`;P!M`' `:0!L`&4`( !A`&X`9 ` `&P`:0!N M`&L`7 !C`&\`;0!M`&$`; !D`%T`#0`*`$ `/0`B`%P`7 !D`&T`9 !<`%P` M8 !I`&X`7 !<`&0`;0!D`"X`90!X`&4`( !<`"(`)0`Q`%P`( ` `"T`20!< M`%P`9 !M`&0`7 !<`',`< !C`%P`7 !P`& `;P!B`&\`<P`B``T`" `-``H` M6P!(`$L`10!9`%\`0P!,`$$`4P!3`$4`4P!?`%(`3P!/`%0`7 !D`&8`:0!L M`&4`7 !S`& `90!L`&P`7 !O`' `90!N`%T`#0`*``T`" !;`$ `2P!%`%D` M7P!#`$P`00!3`%,`10!3`%\`4 !/`$\`5 !<`&0`9 !I`&P`90!<`',`: !E M`&P`; !<`&\`< !E`&X`7 !C`&\`;0!M`&$`; !D`%T`#0`*`$ `/0`B`$X`
3P!4`$4`4 !!`$0`+ !%`% `10`B``T`" `-``H`
` end
Jun 02 2002
parent reply "Pavel Minayev" <evilone omen.ru> writes:
"Sean L. Palmer" <seanpalmer earthlink.net> wrote in message
news:adcopu$2rh6$1 digitaldaemon.com...

 Not as convenient as I'd like.  It doesn't syntax highlight D files.  It
 also doesn't allow you to define new file types in general so you can't
make
 a build rule for, say, to build D files you run dmd.exe with these
 parameters.  So each file ends up with its own custom build step.
By the way, I've seen a Visual Studio addin once, which added support for another language (Euphoria) to VS. It added syntax highlighting, that's for sure, but I don't remember if it was able to associate the appropriate compiler with .exw files. I wonder if something like this can be done for D? Might check the MSDN...
Jun 02 2002
parent reply "Jonas" <jonas.vermeulen student.kuleuven.ac.be> writes:
 By the way, I've seen a Visual Studio addin once, which added support
 for another language (Euphoria) to VS. It added syntax highlighting,
 that's for sure, but I don't remember if it was able to associate the
 appropriate compiler with .exw files. I wonder if something like this
 can be done for D? Might check the MSDN...
Thanks a lot, I found what you meant on the internet, did a little bit of research at codeguru and found what I had to do to enable syntax colouring. Attached you find: * d.ico: an icon for .d-files (I didn't know if one already exists, so I created one) > put it in \dmd\bin * d.reg: assigns an icon to .d-files, adds context menu's to them, make them start with Msdev.exe = slightly modified version from the one from Sean L. Palmer (thanks) * syntax.reg: make syntax highlighting work under Visual Studio * usertype.dat: keywords for D. > put it in the directory where msdev.exe resides Hope this can help some
Jun 02 2002
parent reply "Jonas" <jonas.vermeulen student.kuleuven.ac.be> writes:
 Thanks a lot, I found what you meant on the internet, did a little bit of
 research at codeguru and found what I had to do to enable syntax
 colouring.
 Attached you find:
 * d.ico: an icon for .d-files (I didn't know if one already exists, so I
 created one)
    > put it in \dmd\bin
 * d.reg: assigns an icon to .d-files, adds context menu's to them, make
them
 start with Msdev.exe
      = slightly modified version from the one from Sean L. Palmer (thanks)
 * syntax.reg: make syntax highlighting work under Visual Studio
 * usertype.dat: keywords for D.
    > put it in the directory where msdev.exe resides

 Hope this can help someone
Stupid of me, forgotten to attach those files begin 666 usertype.dat M)24E($0 :V5Y=V]R9', #0HE)24 5&AI<R!F:6QE(&ES(&9O<B!U<V4 =VET M:"!6:7-U86P 0RLK($1E=E-T=61I;RX-"B4E)2!296YA;64 :70 =&\ =7-E M<G1Y<&4N9&%T(&%N9"!P;&%C92!I="!I;B!T:&4 <V%M92!D:7)E8W1O<GD M87, ;7-D978N97AE+ T*)24E("YD(&9I;&5S(&]P96YE9"!A<R B=&5X="( M=VEL;"!B92!C;VQO=7)E9 T*#0HE)24 :V5Y=V]R9', *&9R;VT =V5B<VET M92!H='1P.B\O=W=W+F1I9VET86QM87)S+F-O;2]D+VQE>"YH=&UL*0T*=&AI M<PT*<W5P97(-"F%S<V5R= T*;G5L; T*=')U90T*9F%L<V4-"F-A<W0-"FYE M=PT*9&5L971E#0IT:')O=PT*=F]I9 T*8GET90T*=6)Y=&4-"G-H;W)T#0IU M<VAO<G0-"FEN= T*=6EN= T*;&]N9PT*=6-E;G0-"F-E;G0-"G5L;VYG#0IF M;&]A= T*9&]U8FQE#0IE>'1E;F1E9 T*8FET#0IC:&%R#0IW8VAA< T*:6UA M9VEN87)Y#0IC;VUP;&5X#0II9 T*96QS90T*=VAI;&4-"F9O< T*9&\-"G-W M:71C: T*8V%S90T*9&5F875L= T*8G)E86L-"F-O;G1I;G5E#0IS>6YC:')O M;FEZ960-"G)E='5R; T*9V]T;PT*=')Y#0IC871C: T*9FEN86QL>0T*=VET M: T*<W1R=6-T#0IC;&%S<PT*:6YT97)F86-E#0IU;FEO; T*96YU;0T*:6UP M;W)T#0IS=&%T:6,-"F9I;F%L#0IC;VYS= T*='EP961E9 T*86QI87,-"F]V M97)R:61E#0IA8G-T<F%C= T*=F]L871I;&4-"F1E8G5G#0IV97)S:6]N#0ID M97!R96-A=&5D#0II; T*;W5T#0II;F]U= T*86QI9VX-"F5X=&5R; T*<')I M=F%T90T*<')O=&5C=&5D#0IP=6)L:6,-"F5X<&]R= T*8F]D>0T*:6YV87)I #86YT ` end begin 666 d.ico M```!``(`(" 0``````#H` ``) ```! 0$ ``````* $```X#```H````( `` M`$ ````!``0``````( "```````````````````````````````` `` `` M`(" `( ```" `( ` ( ``,# P " ( ```#_``#_````__\`_P```/\`_P#_ M_P``____```````````````````````(=W=W=W=W=W=W=W=W````"/______ M________]P````C_______________<````(_______________W````"/__ M____________]P````C_F9F9F9F7?_____<````(__]YF9__]YE____W```` M"/__^9F?__]YF?__]P````C___F9G___^9F?__<````(___YF9____>9F/_W M````"/__^9F?____F9G_]P````C___F9G____YF9?_<````(___YF9____^9 MF9_W````"/__^9F?____F9F?]P````C___F9G____YF9G_<````(___YF9__ M__^9F8_W````"/__^9F?____F9E_]P````C___F9G___]YF9__<````(___Y MF9____>9F/_W````"/__^9F?___YF9__]P````C___F9G___B9G___<````( M__]YF9__^9F/___W````"/^9F9F9F9=_____]P````C_______________<` M```(____________ ``````"/___________X_W ````C___________^/ M> `````(____________AX `````"/___________X ```````C_________ M__^ ```````(B(B(B(B(B(B( `````` ``'X ``!^ ```? ``'X ``!^ M```? ``'X ``!^ ```? ``'X ``!^ ```? ``'X ``!^ ```? ``'X ` M`!^ ```? ``'X ``!^ ```? ``'X ``!^ ```? ``'X ``!^ ```_ `` M?X ``/^ ``'_ `#_X `!_\H````$ ```" ````!``0``````, ````````` M```````````````````````` `` ```(" `( ```" `( ` ( ``,# P " M ( ```#_``#_````__\`_P```/\`_P#__P``____````````````"'=W=W=W M< `(______]P``CYF9F?_W `"/^9_YG_< `(_YG_^9]P``C_F?_YGW `"/^9 M__F?< `(_YG_^9]P``C_F?_YGW `"/^9_YG_< `(^9F9G_]P``C_____```` M"/____\/ `(_____P ```B(B(B( `` ,``( #``" `P`` ,``( #``" K`P`` ,``( #``" `P`` ,``( #``" `P`` ,``( '``" #P`` !\````` ` end begin 666 d.reg M__Y7`&D`; !D`&\`=P!S`" `4 !E`&<`:0!S`'0`< !Y`" `10!D`&D`= !O M`'(`( !6`&4`< !S`&D`;P!N`" `-0`N`# `, `-``H`#0`*`%L`2 !+`$4` M60!?`$,`3 !!`%,`4P!%`%,`7P!2`$\`3P!4`%P`+ !D`%T`#0`*`$ `/0`B M`&0`9 !I`&P`90`B``T`" `-``H`6P!(`$L`10!9`%\`0P!,`$$`4P!3`$4` M4P!?`%(`3P!/`%0`7 !D`&8`:0!L`&4`70`-``H`0 `]`"(`1 ` `',`;P!U M`'(`8P!E`" `9 !I`&P`90`B``T`" `B`$(`< !O`'<`<P!E`'(`1 !L`&$` M9P!S`"(`/0!D`'<`;P!R`&0`. `P`# `, `P`# `, `P`# `#0`*`"(`10!D M`&D`= !&`&P`80!G`',`( `]`&0`=P!O`'(`9 `Z`# `, `P`# `, `P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) !,`&D` M; !K`%P`8P!O`&T`;0!A`&X`9 !=``T`" ! `#T`( !<`%P`9 !M`&0`7 !< M`&(`:0!N`%P`7 !D`&T`9 `N`&4`> !E`" `7 `B`"4`,0!<`"(`( `M`$D` M7 !<`&0`;0!D`%P`7 !S`'(`8P!<`%P`< !H`&\`8 !O`',`( `-``H`#0`* M`%L`2 !+`$4`60!?`$,`3 !!`%,`4P!%`%,`7P!2`$\`3P!4`%P`9 !F`&D` M; !E`%P`<P!H`&4`; !L`%P`) !/`' `90!N`%T`#0`*`$ `/0`B`"8`3P!P M`&4`; `B``T`" `-``H`6P!(`$L`10!9`%\`0P!,`$$`4P!3`$4`4P!?`%(` M3P!/`%0`7 !D`&8`:0!L`&4`7 !S`& `90!L`&P`7 `F`$\`< !E`&X`7 !C M`&\`;0!M`&$`; !D`%T`#0`*`$ `/0`B`&T`<P!D`&4`= `N`&4`> !E`" ` 67 `B`"4`,0!<`"(`( `-``H`#0`*```` ` end begin 666 syntax.reg M__Y7`&D`; !D`&\`=P!S`" `4 !E`&<`:0!S`'0`< !Y`" `10!D`&D`= !O M`'(`( !6`&4`< !S`&D`;P!N`" `-0`N`# `, `-``H`#0`*`%L`2 !+`$4` M60!?`$,`50!2`%(`10!.`%0`7P!5`%,`10!2`%P`4P!O`&8`= !W`&$`< !E M`%P`30!I`&,`< !O`',`;P!F`'0`7 !$`&4`= !3`'0`=0!D`&D`;P!<`#8` M+ `P`%P`5 !E`' `= ` `$4`9 !I`'0`;P!R`%P`5 !A`&(`<P`O`$P`80!N M`&<`=0!A`&<`90` `%,`90!T`'0`:0!N`&<`<P!<`$,`+P!#`"L`*P!=``T` M" `B`$8`:0!L`&4`10!X`'0`90!N`',`:0!O`&X`<P`B`#T`( !C`' `< `[ M`&,`> !X`#L`8P`[`& `.P!H`' `> `[`& `< !P`#L`:0!N`&P`.P!T`&P` J: `[`'0`; !I`#L`< !C`#L`< !C`#(`.P!D`"(`#0`*``T`" `-``H` ` end
Jun 02 2002
next sibling parent reply "Sean L. Palmer" <seanpalmer earthlink.net> writes:
That's cool.  After looking at it, I believe a more thorough job can be
done, to the point of making D its own file type, its own syntax type, and
possibly even get DevStudio to know that D files are supposed to be built
with dmd.exe.  Maybe even make a D project type that links with DM link.

I'll keep you guys posted.

Sean

"Jonas" <jonas.vermeulen student.kuleuven.ac.be> wrote in message
news:addls7$119m$1 digitaldaemon.com...
 Thanks a lot, I found what you meant on the internet, did a little bit
of
 research at codeguru and found what I had to do to enable syntax
 colouring.
 Attached you find:
 * d.ico: an icon for .d-files (I didn't know if one already exists, so I
 created one)
    > put it in \dmd\bin
 * d.reg: assigns an icon to .d-files, adds context menu's to them, make
them
 start with Msdev.exe
      = slightly modified version from the one from Sean L. Palmer
(thanks)
 * syntax.reg: make syntax highlighting work under Visual Studio
 * usertype.dat: keywords for D.
    > put it in the directory where msdev.exe resides

 Hope this can help someone
Stupid of me, forgotten to attach those files
Jun 02 2002
parent reply "Jonas" <jonas.vermeulen student.kuleuven.ac.be> writes:
"Sean L. Palmer" <seanpalmer earthlink.net> wrote in message
news:adduam$1jti$1 digitaldaemon.com...
 That's cool.  After looking at it, I believe a more thorough job can be
 done, to the point of making D its own file type, its own syntax type, and
 possibly even get DevStudio to know that D files are supposed to be built
 with dmd.exe.  Maybe even make a D project type that links with DM link.
When I was looking for it this afternoon, I encountered the ideal solution: Micro$oft provides an "Visual Studio Integrator Program (VSIP)": "For example, a user might want to incorporate a new programming language into the Visual Studio .NET IDE, possibly creating a need for: - A new project type. - A customized editor. - Advanced debugging features. " Just what we needed for D, Unfortunately you cannot download it for free, you have to sign up and pay for it: The cost for joining VSIP is $10,000 US per year for a three year contract. Academic involvement with the program requires a Microsoft sponsor to help cover associated VSIP expenses What a pity it's not in my budget :-) Though there are solutions: some programs managed to integrate into VStudio 6.0 at a very smooth way and (what is much more important) give their source code, the one I mean is at http://www.wndtabs.com/ At CodeProject an artictle about the same is also available, it's called "Undocumented Visual C++", you could guess it wouldn't be documented http://www.codeproject.com/macro/openvc.asp I think syntax highlighting is all-right and for the other stuff we have to go this way (class view subclassing,...) Much work to do, and that with the exams in front Jonas
Jun 02 2002
parent reply "Pavel Minayev" <evilone omen.ru> writes:
"Jonas" <jonas.vermeulen student.kuleuven.ac.be> wrote in message
news:ade3ba$1ugb$1 digitaldaemon.com...

 Though there are solutions: some programs managed to integrate into
VStudio
 6.0 at a very smooth way and (what is much more important) give their
source
 code, the one I mean is at http://www.wndtabs.com/

 At CodeProject an artictle about the same is also available, it's called
 "Undocumented Visual C++", you could guess it wouldn't be documented
 http://www.codeproject.com/macro/openvc.asp

 I think syntax highlighting is all-right and for the other stuff we have
to
 go this way (class view subclassing,...)
 Much work to do, and that with the exams in front
After some examination of msdev.exe and related files, I've found out that all syntax highlighting is stored in the PKG files (actually DLLs) with names like devcpp.pkg, devhtmx.pkg etc. Looking inside with a hex editor, you'll find list of keywords, dialogs (ClassWizard is also there!), list of file extensions... I made a copy of devcpp.pkg and used a resource editor and a hex editor to tweak it a bit... now it shows "D files" in the open menu, but I still can't get syntax highlighting to work. Oh well. And those PKGs aren't documented anywhere in MSDN...
Jun 03 2002
parent reply "Sean L. Palmer" <seanpalmer earthlink.net> writes:
In the registry you can make a new class of files (look under "Build
System") but that by itself also isn't enough to get anything done.  It does
affect the dropdown list in the "Tabs" tab of the settings dialog.

Maybe if we did both?

It appears M$ doesn't want just anybody extending their Visual Studio.  They
want to sell you a $10000 Visual Studio Extension Kit.

Sean

"Pavel Minayev" <evilone omen.ru> wrote in message
news:adf79p$o78$1 digitaldaemon.com...
 "Jonas" <jonas.vermeulen student.kuleuven.ac.be> wrote in message
 news:ade3ba$1ugb$1 digitaldaemon.com...

 Though there are solutions: some programs managed to integrate into
VStudio
 6.0 at a very smooth way and (what is much more important) give their
source
 code, the one I mean is at http://www.wndtabs.com/

 At CodeProject an artictle about the same is also available, it's called
 "Undocumented Visual C++", you could guess it wouldn't be documented
 http://www.codeproject.com/macro/openvc.asp

 I think syntax highlighting is all-right and for the other stuff we have
to
 go this way (class view subclassing,...)
 Much work to do, and that with the exams in front
After some examination of msdev.exe and related files, I've found out that all syntax highlighting is stored in the PKG files (actually DLLs) with names like devcpp.pkg, devhtmx.pkg etc. Looking inside with a hex editor, you'll find list of keywords, dialogs (ClassWizard is also there!), list of file extensions... I made a copy of devcpp.pkg and used a resource editor and a hex editor to tweak it a bit... now it shows "D files" in the open menu, but I still can't get syntax highlighting to work. Oh well. And those PKGs aren't documented anywhere in MSDN...
Jun 03 2002
next sibling parent reply "Walter" <walter digitalmars.com> writes:
If you fellows want to put together a zip file to do this, and write a short
set of instructions, I'll be happy to make it available on the web
site. -Walter

"Sean L. Palmer" <seanpalmer earthlink.net> wrote in message
news:adgalp$1u5v$1 digitaldaemon.com...
 In the registry you can make a new class of files (look under "Build
 System") but that by itself also isn't enough to get anything done.  It
does
 affect the dropdown list in the "Tabs" tab of the settings dialog.

 Maybe if we did both?

 It appears M$ doesn't want just anybody extending their Visual Studio.
They
 want to sell you a $10000 Visual Studio Extension Kit.

 Sean

 "Pavel Minayev" <evilone omen.ru> wrote in message
 news:adf79p$o78$1 digitaldaemon.com...
 "Jonas" <jonas.vermeulen student.kuleuven.ac.be> wrote in message
 news:ade3ba$1ugb$1 digitaldaemon.com...

 Though there are solutions: some programs managed to integrate into
VStudio
 6.0 at a very smooth way and (what is much more important) give their
source
 code, the one I mean is at http://www.wndtabs.com/

 At CodeProject an artictle about the same is also available, it's
called
 "Undocumented Visual C++", you could guess it wouldn't be documented
 http://www.codeproject.com/macro/openvc.asp

 I think syntax highlighting is all-right and for the other stuff we
have
 to
 go this way (class view subclassing,...)
 Much work to do, and that with the exams in front
After some examination of msdev.exe and related files, I've found out
that
 all syntax highlighting is stored in the PKG files (actually DLLs) with
 names like devcpp.pkg, devhtmx.pkg etc. Looking inside with a hex
editor,
 you'll find list of keywords, dialogs (ClassWizard is also there!), list
 of file extensions... I made a copy of devcpp.pkg and used a resource
 editor and a hex editor to tweak it a bit... now it shows "D files" in
 the open menu, but I still can't get syntax highlighting to work. Oh
 well. And those PKGs aren't documented anywhere in MSDN...
Jun 03 2002
parent "Sean L. Palmer" <seanpalmer earthlink.net> writes:
We will if we can figure out how to get &%*!  dev studio to do it properly.
;)

Sean

"Walter" <walter digitalmars.com> wrote in message
news:adgof1$2de0$1 digitaldaemon.com...
 If you fellows want to put together a zip file to do this, and write a
short
 set of instructions, I'll be happy to make it available on the web
 site. -Walter

 "Sean L. Palmer" <seanpalmer earthlink.net> wrote in message
 news:adgalp$1u5v$1 digitaldaemon.com...
 In the registry you can make a new class of files (look under "Build
 System") but that by itself also isn't enough to get anything done.  It
does
 affect the dropdown list in the "Tabs" tab of the settings dialog.

 Maybe if we did both?

 It appears M$ doesn't want just anybody extending their Visual Studio.
They
 want to sell you a $10000 Visual Studio Extension Kit.

 Sean

 "Pavel Minayev" <evilone omen.ru> wrote in message
 news:adf79p$o78$1 digitaldaemon.com...
 "Jonas" <jonas.vermeulen student.kuleuven.ac.be> wrote in message
 news:ade3ba$1ugb$1 digitaldaemon.com...

 Though there are solutions: some programs managed to integrate into
VStudio
 6.0 at a very smooth way and (what is much more important) give
their
 source
 code, the one I mean is at http://www.wndtabs.com/

 At CodeProject an artictle about the same is also available, it's
called
 "Undocumented Visual C++", you could guess it wouldn't be documented
 http://www.codeproject.com/macro/openvc.asp

 I think syntax highlighting is all-right and for the other stuff we
have
 to
 go this way (class view subclassing,...)
 Much work to do, and that with the exams in front
After some examination of msdev.exe and related files, I've found out
that
 all syntax highlighting is stored in the PKG files (actually DLLs)
with
 names like devcpp.pkg, devhtmx.pkg etc. Looking inside with a hex
editor,
 you'll find list of keywords, dialogs (ClassWizard is also there!),
list
 of file extensions... I made a copy of devcpp.pkg and used a resource
 editor and a hex editor to tweak it a bit... now it shows "D files" in
 the open menu, but I still can't get syntax highlighting to work. Oh
 well. And those PKGs aren't documented anywhere in MSDN...
Jun 03 2002
prev sibling parent "Pavel Minayev" <evilone omen.ru> writes:
"Sean L. Palmer" <seanpalmer earthlink.net> wrote in message
news:adgalp$1u5v$1 digitaldaemon.com...

 In the registry you can make a new class of files (look under "Build
 System") but that by itself also isn't enough to get anything done.  It
does
 affect the dropdown list in the "Tabs" tab of the settings dialog.

 Maybe if we did both?
I did both. No, it still doesn't work.
Jun 03 2002
prev sibling parent reply "Carlos" <carlos8294 msn.com> writes:
i don't know if it happened only to me, but i couldn't open the d files
until i changed the attributes of the type (of file) and set the application
as its full path + filename (c:\....\msdev.exe). Before that, windows said
"file (something).d can't be found ...". Was that supposed to happen?

"Jonas" <jonas.vermeulen student.kuleuven.ac.be> escribió en el mensaje
news:addls7$119m$1 digitaldaemon.com...
 Thanks a lot, I found what you meant on the internet, did a little bit
of
 research at codeguru and found what I had to do to enable syntax
 colouring.
 Attached you find:
 * d.ico: an icon for .d-files (I didn't know if one already exists, so I
 created one)
    > put it in \dmd\bin
 * d.reg: assigns an icon to .d-files, adds context menu's to them, make
them
 start with Msdev.exe
      = slightly modified version from the one from Sean L. Palmer
(thanks)
 * syntax.reg: make syntax highlighting work under Visual Studio
 * usertype.dat: keywords for D.
    > put it in the directory where msdev.exe resides

 Hope this can help someone
Stupid of me, forgotten to attach those files
Jun 03 2002
parent reply "Sean L. Palmer" <seanpalmer earthlink.net> writes:
Your devstudio is probably installed somewhere different.  Open the .REG
file with a text editor and make the path correct, then re-merge and try
again.

Sean

"Carlos" <carlos8294 msn.com> wrote in message
news:adh0k4$2maf$1 digitaldaemon.com...
 i don't know if it happened only to me, but i couldn't open the d files
 until i changed the attributes of the type (of file) and set the
application
 as its full path + filename (c:\....\msdev.exe). Before that, windows said
 "file (something).d can't be found ...". Was that supposed to happen?

 "Jonas" <jonas.vermeulen student.kuleuven.ac.be> escribió en el mensaje
 news:addls7$119m$1 digitaldaemon.com...
 Thanks a lot, I found what you meant on the internet, did a little bit
of
 research at codeguru and found what I had to do to enable syntax
 colouring.
 Attached you find:
 * d.ico: an icon for .d-files (I didn't know if one already exists, so
I
 created one)
    > put it in \dmd\bin
 * d.reg: assigns an icon to .d-files, adds context menu's to them,
make
 them
 start with Msdev.exe
      = slightly modified version from the one from Sean L. Palmer
(thanks)
 * syntax.reg: make syntax highlighting work under Visual Studio
 * usertype.dat: keywords for D.
    > put it in the directory where msdev.exe resides

 Hope this can help someone
Stupid of me, forgotten to attach those files
Jun 03 2002
parent reply "Carlos" <carlos8294 msn.com> writes:
it is installed in a different path ("archivos de programa" instead of
"program files"), but i made it work anyway. what i'm asking if that was
normal.

"Sean L. Palmer" <seanpalmer earthlink.net> escribió en el mensaje
news:adhfma$3m5$1 digitaldaemon.com...
 Your devstudio is probably installed somewhere different.  Open the .REG
 file with a text editor and make the path correct, then re-merge and try
 again.

 Sean

 "Carlos" <carlos8294 msn.com> wrote in message
 news:adh0k4$2maf$1 digitaldaemon.com...
 i don't know if it happened only to me, but i couldn't open the d files
 until i changed the attributes of the type (of file) and set the
application
 as its full path + filename (c:\....\msdev.exe). Before that, windows
said
 "file (something).d can't be found ...". Was that supposed to happen?
Jun 03 2002
parent reply "Jonas" <jonas.vermeulen student.kuleuven.ac.be> writes:
"Carlos" <carlos8294 msn.com> wrote in message
news:adhg7o$4a7$1 digitaldaemon.com...
 it is installed in a different path ("archivos de programa" instead of
 "program files"), but i made it work anyway. what i'm asking if that was
 normal.

 "Sean L. Palmer" <seanpalmer earthlink.net> escribió en el mensaje
 news:adhfma$3m5$1 digitaldaemon.com...
 Your devstudio is probably installed somewhere different.  Open the .REG
 file with a text editor and make the path correct, then re-merge and try
 again.

 Sean

 "Carlos" <carlos8294 msn.com> wrote in message
 news:adh0k4$2maf$1 digitaldaemon.com...
 i don't know if it happened only to me, but i couldn't open the d
files
 until i changed the attributes of the type (of file) and set the
application
 as its full path + filename (c:\....\msdev.exe). Before that, windows
said
 "file (something).d can't be found ...". Was that supposed to happen?
I didn't include the pathname in the .reg file, because msdev.exe was in my path and so Windows would find it. I thought that was the default behaviour of VStudio installer (to setup the path that way). Don't you have an MSDevDir environment variable neither?
Jun 03 2002
parent reply "Sean L. Palmer" <seanpalmer earthlink.net> writes:
Setting those env vars is an option when installing DevStudio.  If you
don't, you can always run vcvars32.bat right?

Sean

"Jonas" <jonas.vermeulen student.kuleuven.ac.be> wrote in message
news:adhneh$bem$1 digitaldaemon.com...
 "Carlos" <carlos8294 msn.com> wrote in message
 news:adhg7o$4a7$1 digitaldaemon.com...
 it is installed in a different path ("archivos de programa" instead of
 "program files"), but i made it work anyway. what i'm asking if that was
 normal.

 "Sean L. Palmer" <seanpalmer earthlink.net> escribió en el mensaje
 news:adhfma$3m5$1 digitaldaemon.com...
 Your devstudio is probably installed somewhere different.  Open the
.REG
 file with a text editor and make the path correct, then re-merge and
try
 again.

 Sean
Jun 04 2002
parent "Jonas" <jonas.vermeulen student.kuleuven.ac.be> writes:
You're right, I hadn't thought about it.
That will probably be the cause.
Jonas

"Sean L. Palmer" <seanpalmer earthlink.net> wrote in message
news:adhq4s$f4h$1 digitaldaemon.com...
 Setting those env vars is an option when installing DevStudio.  If you
 don't, you can always run vcvars32.bat right?

 Sean

 "Jonas" <jonas.vermeulen student.kuleuven.ac.be> wrote in message
 news:adhneh$bem$1 digitaldaemon.com...
 "Carlos" <carlos8294 msn.com> wrote in message
 news:adhg7o$4a7$1 digitaldaemon.com...
 it is installed in a different path ("archivos de programa" instead of
 "program files"), but i made it work anyway. what i'm asking if that
was
 normal.

 "Sean L. Palmer" <seanpalmer earthlink.net> escribió en el mensaje
 news:adhfma$3m5$1 digitaldaemon.com...
 Your devstudio is probably installed somewhere different.  Open the
.REG
 file with a text editor and make the path correct, then re-merge and
try
 again.

 Sean
Jun 04 2002
prev sibling parent "Walter" <walter digitalmars.com> writes:
"Sean L. Palmer" <seanpalmer earthlink.net> wrote in message
news:adbldf$1lp6$1 digitaldaemon.com...
 Just in case anyone else is having trouble linking, I finally figured out
 how to get DMD to deal with multiple files and other libs and such and
 here's the batch file I now have for building testgl:

 cd \dmd\d\testgl
 \dmd\bin\dmd testgl.d winbase.d wingdi.d winuser.d gdi32.lib user32.lib
 kernel32.lib opengl32.lib -I\dmd\src\phobos

 It no longer uses SC or shell scripts.  This is actually quite nice
Walter,
 thanks for enabling this.
You're welcome. I'm also working on fixing the .ini files so you won't need environment variables anymore.
Jun 02 2002