>Maybe I am doing something wrong but for me a command like the following fails in the development environment when I DO main.prg (but not in the built exe)
>loODBC = NEWOBJECT("cODBC", "cVSONoSCNonVisualUtilities")
>unless I provide the full path to the vcx
On my programs I usually do as follow:
if version(2)=2
lclib="C:\VSO3\Common\Libs\cVSONoSCNonVisualUtilities.vcx"
else
lclib="cVSONoSCNonVisualUtilities.vcx"
endif
loODBC = NEWOBJECT("cODBC", lclib)
HTH
>loODBC = NEWOBJECT("cODBC", "C:\VSO3\Common\Libs\cVSONoSCNonVisualUtilities.vcx")
>
>Alternatively I can switch to the following and yet be successful
>loODBC = CREATEOBJECT("cODBC")
>
>Which is more advisable function to use - NewObject() or CreateObject()
>
>Thanks.
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20