Basic questions
Posted: Tue May 16, 2017 11:18 am
I'm using VS 2015 (Update 3) and XSharp beta 11.
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:
Tried to compile. It said I need to include references to VulcanRT and VulcanRTFuncs. OK, So I went to "Add references" and I could NOT find them in the list!
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:
and get this error at compile-time:
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
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