Hi all, sorry but I've got another .Net Assembly target question. If I have an NVO that I use in both a Powerbuilder Classic Windows application and also in a .Net Assembly, is there a way for that NVO to know whether it is being executed as a Win 32 application or as a .Net Assembly?
- Daryl Foster
- PowerBuilder
- Thursday, 16 November 2017 06:24 AM UTC
There are replies in this question but you are not allowed to view the replies from this question.
// Instance variable
private boolean dotNetAssembly
// Constructor
#if defined PBDOTNET then
dotNetAssembly= true
#end if
// Elsewhere in code
if not dotNetAssembly then
MessageBox("Warning", "...", Exclamation!)
end if
return ll_errorCode