Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use an *.obj file (from C++) in VBA?

Status
Not open for further replies.

niceview

Technical User
Jul 23, 2001
4
US
I can create an *.obj file in C++, say, to multiply two numbers (multiply.obj). Is it possible, from VBA, to link and call this 'multiply.obj' with something like the following code? How?

Private Sub test()
Dim a As Double
Dim b As Double
a = Sheets("Sheet1").Cells(1, 2)
b = Sheets("Sheet1").Cells(2, 2)
out = multiply(a, b)
End Sub

In the old days, one could easily merge different *.obj coming from, say, Fortran and C in the link step. Is it possible to work like that in VBA and C++ or there is something fundamentally wrong with the conceptual model?

Thanks,

NiceView
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top