Adapting Quick Editor for COM

Adapting Quick Editor for COM

 

Copyright © Dec 31, 2000 by Ernest Murphy ernie@surfree.com

For educational use only. All commercial use only by written license.

 

revised 3/5/01 for new Tools

 

The Build DLL, Build OCX, and Build LIB settings described may be found at ...COMBIN

 

ABSTRACT

Several useful settings and bat files for the Quick Editor programming environment are discussed and offered as suggestions

 

INTRODUCTION

Quick Editor is a highly adaptable environment for building programming projects. Due to the menu configuration options many desirable features may be added. While some of these tricks and hints are solely applicable to COM projects, many (such as building a DLL) will see wider popularity.

 

The techniques to be discussed are:

 

· Building a Dynamic Link Library (.dll or .ocx)

 

· Building a Static linked library (.lib)

 

· Shelling Helper programs such as GUIDGEN, OleView, etc

 

· Registering and Unregistering COM components.

 

Building Dynamic Link Libraries

Dynamic link libraries are a quite useful build product, yet Quick Editor/MASM32 does not support them. This is easily remmedyied.

 

DLLs are produced at the LINK stage, so these following statements will produce the required filetype:

 

With Resources:

 

Link /DLL /SUBSYSTEM:WINDOWS /DEF:%1.def

LIBPATH:c:masm32lib %1.obj rsrc.obj

 

With No resources:

 

Link /DLL /SUBSYSTEM:WINDOWS /DEF:%1.def /LIBPATH:c:masm32lib %1.obj

  A .bat file BLDDLL.bat is provided to automate the entire build process,…  

Link /DLL /SUBSYSTEM:WINDOWS /DEF:%1.def /OUT:%1.ocx

LIBPATH:c:masm32lib %1.obj rsrc.obj

 

With No resources:

 

Link /DLL /SUBSYSTEM:WINDOWS /DEF:%1.def /OUT:%1.ocx /LIBPATH:c:masm32lib %1.obj

  Build &OCX,MASM32BINBLDOCX.bat {b} {n}  

Masm32binml /nologo /c /coff *.asm masm32binlib *.obj /out:%1.lib

    Shelling Helper Applications

OLEVIEW,Program FilesMicrosoft Visual StudioCommonToolsOLEVIEW.EXE

FindGUID,MASM32BINFINDGUID.BAT

GUID Generator,Program FilesMicrosoft Visual StudioCommonToolsGUIDGEN.EXE

MSDN, WINDOWSHH.EXE Program FilesMicrosoft Visual StudioMSDN9898VS1033msdnvs98.col

All your folder paths may be different, these are only given as examples.    

Register DLL,MASM32BINregsvr32.exe {n}.DLL

Unregister DLL,MASM32BINregsvr32.exe /u {n}.DLL

-

Register OCX,MASM32BINregsvr32.exe {n}.ocx

Unregister OCX,MASM32BINregsvr32.exe /u {n}.ocx

TOOLS FOR COM

New GUID,GUIDGen.dll

Convert GUID,AsmGUID.DLL

These dlls must be moved to the same folder as Quick Editor.

 

Conclusion

The harder you make Quick Editor work for you, the easier your task will be. I hope I've spured you on to seek other improvements you can make.