VC++ 6 & MASM (eek)

This is a discussion on VC++ 6 & MASM (eek) within the C++ Programming forums, part of the General Programming Boards category; Some people cringe at the thought. Basically, I've hunted around, and installed visual studio service pack 5 - I know ...

  1. #1
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709

    VC++ 6 & MASM (eek)

    Some people cringe at the thought.

    Basically, I've hunted around, and installed visual studio service pack 5 - I know 6 is available, but I need 5 so I can install the processor pack thus obtaining MASM.

    What I want to do is write a procedure in assembly, and custom build it with masm from the vc++ IDE. Obvisouly I also want to link it in.

    I know this much:

    The procedure in question must be declared 'extern "C" <identifier>' ?
    It must be declared public in the MASM source.

    If anyone know how, or knows of any *good* tutorials I would be grateful. Eternally. Also I'm looking for a *good* MASM tutorial. I know the basics of assembly but not the MASM syntax.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  2. #2
    Dump Truck Internet valis's Avatar
    Join Date
    Jul 2005
    Posts
    357
    I strongly urge you to (after learning masm syntax, so your flexible) get fasm, once you learn both you'll know why.
    I don't know of any tutorials, and I haven't done it in a while, but declare your procedure with an underscore, then the name: _procName
    Then declare it extern in your C code and supply the prototype and link it.

    EDIT:
    some useful pages
    http://win32assembly.online.fr/
    http://www.arl.wustl.edu/~lockwood/c...ofasm/toc.html
    http://www.intel.com/design/pentium4.../index_new.htm
    Last edited by valis; 07-16-2005 at 11:02 AM.

  3. #3
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Cheers I'll give it a bash.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Masm Help!
    By anirban in forum Tech Board
    Replies: 3
    Last Post: 05-30-2007, 01:05 PM
  2. makefile exported by vc 6.0 doesn't work
    By wow in forum Windows Programming
    Replies: 7
    Last Post: 03-24-2006, 04:20 PM
  3. Can't compile this with VC 6.0
    By uriel2013 in forum C++ Programming
    Replies: 4
    Last Post: 05-31-2003, 08:43 PM
  4. MASM 7, wont compile.
    By Xei in forum Windows Programming
    Replies: 3
    Last Post: 01-16-2003, 04:23 PM
  5. Why VC?
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 04-15-2002, 06:24 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21