Thread: Assembly and C++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Most likely reason is that the function isn't listed in the export list of the DLL. Loading it into the dependency viewer could confirm that.
    The solution would be a .def file fed to the linker.

    It should also be mentioned that Test1 doesn't honor the __stdcall convention, which is the usual convention in DLLs. Neither does it honor the naming convention for __stdcall. And finally, it simply has no visible effect, because it increments a copy of the number passed. (I think. I'm not very familiar with MASM syntax.)
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  2. #2
    Registered User
    Join Date
    Feb 2005
    Posts
    15
    ok, I was not aware of that! arg! You are correct, it increments a number passed to it... which is just a test, since I want to get it working before i write a few hundred lines of ASM.

    Ok, is there a msdn or such resource for __stdcall that I could look at and make compatible?

Popular pages Recent additions subscribe to a feed