We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Neural Nettwork (ANN) Extension
#61
Reflection is a .Net thing - so this is C#, VB and it can be done in C++, also similar in other languages like Java.  When you get going with VS and git, you can clone LitDev extension and I can point you to where it is used.  It is everywhere there since I use it to interact with GraphicsWindow for example present in SmallBasicLibrary.dll - get or set its varaibles, call its methods...

When you clone the SmallBasicANN solution there should be 2 projects in it, the ANN dll and a small windows program (exe) to test it.  The dll has 2 parts, one the ANN, and second the interface to SmallBasic that calls the ANN methods.  The TestANN exe actually bypasses the SB interface and just calls the ANN methods directly.  But best if you just poke about a bit once you get it compiled and running.

You need to set the exe TestANN project to be the startup project (the one run when you press start).  To debug you want the debug setting (then you may want to add break points) etc...

   
Reply
#62
LitDev,
I have the smallbasic repository downloaded and in visual studio. Solution explorer shows both smallbasicann and testann as being loaded. I have testann as the startup object. I get an erorr if I try to debug. It says unable to start debugging. The starup project cannot be launched. Ensure that the correct program is the startup project. Which it is.

Any Idea what I am doing wrong?

Thanks,

JR
Reply
#63
Litdev I just type every first letter capital for good writing Smile
ZS
Reply
#64
JR, not sure.  That message is if you haven't set the exe project as startup (TestANN).

First check does it build (Build->Build Solution).  Check that is says in Output(Build) pane that it is built with no errors.  Check that the exe has been created in project bin/Debug folder.  Maybe share a screenshot.

Z-S Capitals just made it hard to read Smile
[-] The following 1 user Likes litdev's post:
  • z-s
Reply
#65
LitDev,

The build pane just says successful build. No .exe in bin folder. So, how do you send a screen shot with this software?

Thanks,

JR
Reply
#66
Scroll Down in new replay you will see a Attachments section.
ZS
Reply
#67
Thanks Z-S,

JR

LitDev,

Hopefully this works. The botton shows what I get when I hit debug.

JR


   
Reply
#68
Hii JR
I think the problem is because you are running The whole solution try running the TestANN alone by opening its TestANN.csproj file.

I made some changes and it successful working in sharp develop.
https://github.com/zs-3/Small-Basic-ANN
Smile
   
ZS
Reply
#69
Z-S,

If I follow the below link and then go to TestANN and open it then go down to the .csproj file click it, it just opens the file so I can read it's contents.

Can you give me detail of what you did?

Thanks,

JR
Reply
#70
JR - You have the SmallBasicANN dll set as the startup project! - the warning message is correct.

SmallBasicANN project is in BOLD on the Solution Explorer window.  Right click on TestANN and set it as the startup project - see my first image from last night where I showed the option doing this.

TestANN has to be the startup project - it will be bold when you do it - you cannot run a dll (class library).

PS, your TestANN has a red tick next to it showing you have changed something - best to revert whatever changes you made.

To revert changes go to the View->Git changes window.

It may be a good idea to read some 'getting started with Visual Studio' guides.

If the solution has built correctly with no errors, then there will be an exe in your bin/Debug folder - you should have a good look using File Explorer to get used to the folder and files you get with a VS solution.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)