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
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