Created an empty Windows Forms Project via wizard.
Question 1:
How do I use VO or Vulcan functions there? Like AllTrim, SubStr etc?
I changed dialect to Vulcan (it was set as Core by default).
I wrote sth like this:
Code: Select all
LOCAL cS1, cS2 AS STRING
cS1 := "Hello"
cS2 := SubStr3(cS1, 2, 3)
OK.
Then I created a new project - a native XSharp project, where these libs are already present in References. Looked at the actual dll location, turned back to WinForms project and added references to those VulcanRT and VulcanRTFuncs DLL's manually using their full path. That seems to be not elegant enough and these libs should be present at References List the same way Vulcan SDK is.
Now functions began to work. But with NO intellisence. I cannot see functions' params at all.
Question 2.
How do I call Windows API functions ?
I've added a VulcanVOWin32APILibrary to my references list. I have it from Vulcan 4.0.401
I may call API functions now, but still NO intellisence.
And I cannot create a structure. I write:
Code: Select all
LOCAL rc IS _winRECT
XS0118 '_winRECT' is a element but is used like a VOSTRUCT/UNION
what should I do with this?
SUMMARY:
1. What is the correct way to call standard functions from a WinForms-project ?
2. What is the correct way to call WinAPI functions from a WinForms-project and how to deal with structures?
Thank you in advance for your replies!
Serggio