Thread: assembly code in c++ program

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    19

    assembly code in c++ program

    Code:
    #include<iostream.h>
    #include<stdio.h>
    main()
    {
    __asm
    {
    push 10
    push 20
    }
    abc();
    __asm
    {
    add esp,8
    }
    }
    int abc(int i , int j)
    {
    printf("%d %d\n", i , j);
    }


    when i am executing this code ...the error i am getting is
    cannot open program database 'c:\program files\microsoft visual studio\vc98\bin\debug\vc60.pdb'

    Do i need to make any special settings to execute this code.....
    Last edited by Brij; 09-24-2006 at 04:53 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I need the code of few programs in c++.plzzzzz help...plzzz
    By NAVINKR20 in forum C++ Programming
    Replies: 1
    Last Post: 05-08-2009, 09:13 AM
  2. Client-server system with input from separate program
    By robot-ic in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-16-2009, 03:30 PM
  3. Can someone help me understand this example program
    By Guti14 in forum C Programming
    Replies: 6
    Last Post: 09-06-2004, 12:19 PM
  4. Please test my program: Code Black
    By PhoenixC++ in forum Windows Programming
    Replies: 15
    Last Post: 04-29-2004, 07:18 PM
  5. Program Code
    By anewhope in forum C Programming
    Replies: 0
    Last Post: 04-22-2002, 09:06 AM