×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Greetinx! How can i function wri

Greetinx! How can i function wri

Greetinx! How can i function wri

(OP)
Greetinx!

How can i function written in assembly make visible to any other language, in example, to C language? A simple name of operator 'PUBLIC' is insufficient.

Happy programming!))

RE: Greetinx! How can i function wri

you declare the same function with extern in C. Also if you want function to use from C,in asm the function should begin with _[color] but in C not.

John Fill


ivfmd@mail.md

RE: Greetinx! How can i function wri

(OP)
Hello, John!

I have other task. I need to export from dll some functions written in asm. But i cant export them, and i can use them internally only.
 

Happy programming!))

RE: Greetinx! How can i function wri

implement asm in lib and C/C++ in dll. Link them toghever but use callings of asm functions from C code. Also you can put inline asm code just in C++ sources.
An other posisibily is to see how is the convension __stdcall. In C++ to make a dll export you should declare with __declspec(dllexport). In asm ou maybe should put something more in .def file.

John Fill


ivfmd@mail.md

RE: Greetinx! How can i function wri

(OP)
Hello, John!

I'll try to explain that i want to do. I have some functions written in asm and kept in dll (primary), i want to permit access to them from any other exe of dll program (secondary). Declaring them in 'primary' dll, in which they are kept, i can write fuctions in 'cpp' which will use that asm-functions, in same 'primary' dll. But i cant access them from any other 'secondary' projects, even if i put them to export list of my 'primary' dll. Because that asm-functions are absent in this export list. I dont want to make pseuso-functions in 'cpp' which will call asm-functions.
What should i put something more to .def file?

Happy programming!))

RE: Greetinx! How can i function wri

Good morning :)
I think you should study WinAPI programming in C at the first.

John Fill


ivfmd@mail.md

RE: Greetinx! How can i function wri

(OP)
Hello!

I dont understand! Why!?!))

Happy programming!))

RE: Greetinx! How can i function wri

Because you will understand better Windows. If you do it in asm you have no advantages, because almost all windows is made in C.

John Fill


ivfmd@mail.md

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close