Expand|Select|Wrap|Line Numbers
- int plus1(int a)
- {
- return a+1;
- }
I guess that I need to start by
file->new project->class library and call it with some name
let call it classtest
Now the visual C++ give me some files
I guess that I need to add some code to the file classtest.h and to file
classtest.cpp but I am not 100% sure what I need to add and I am not 100% sure what I need to add in javascript to use the function.
If you tell me what to do in this specific case then hopefully it is going to help me to use more complex functions that I have in C in javascript.
Note that I know how to do it only with javascript
and I simply do the following steps:
1)type the following code in a new asp file
Expand|Select|Wrap|Line Numbers
- <SCRIPT LANGUAGE="JavaScript" RUNAT=SERVER>
- function plus1(a)
- {
- return a+1;
- }
- Response.Write(plus1(5));
- </SCRIPT>
3)goto
http://****/***/javaexample.asp
4)see 6 in the screen
I replaced some letters by **** but
**** is specific to the server that I am using that is only connected to the computer that I use even when I am not connected to the interenet so it is not important.