SRL Archive - C/C++ Help and Tutorials

Scar#?


Phoenix13nl

2009-01-28 09:09:15

Hi, im pretty good at programming in C# and im pretty bored at the moment.
I'm trying to make some usefull applications, but i cant realy think of any anymore. my question is, would there be intrest in a C# version of Scar++?
it probably wont get as good as scar++ as i havent done any scar last 3 months and i forgot most of it, but still.. some people maybe might want it?
if so, i realy like writing a framework for it, and actualy, im starting right now.

My previous idea was to write my own version of Scar, or rather.. my own .Net language compiler, i started with something simple and it worked realy well, it created a working .exe (h) , but for a full programming language, im gonna spend months to write it i guess:duh: , so i came up with this easier and more usefull (i hope) idea.

**EDIT:**
lol, sorry for voting this 5 stars, i didint expect that it would rate it as it's my own thread,
my appologies for that :P

Buckleyindahouse

2009-01-28 09:26:30

if ppl are interested, then I may be able to provide help if needed.

boberman

2009-01-28 09:34:32

I would suggest just importing scar++ into c#. Scar++ should compile just fine under MSVC, making it pretty easy to import in and use how you like.

Buckleyindahouse

2009-01-28 10:04:18

From: boberman
I would suggest just importing scar++ into c#. Scar++ should compile just fine under MSVC, making it pretty easy to import in and use how you like.

That's also no fun and can become problem some if not converted properly.

Phoenix13nl

2009-01-28 10:52:36

That's also no fun and can become problem some if not converted properly.

exactly, :D ^

if ppl are interested, then I may be able to provide help if needed.

that would be very nice :) ^

Im almost done with the Mouse functions, all i still need for that is SleepAndMoveMouse and IdleTime. :D

R0b0t1

2009-01-28 21:35:49

Why? You can call the functions from the DLL just the same.

Phoenix13nl

2009-01-29 00:25:34

I tried to add a reference to scar++ but vs(Visual Studio 2008) couldnt.

boberman

2009-01-29 02:10:37

http://blogs.msdn.com/junfeng/archive/2004/07/14/181932.aspx

You just make a call to Dllimport, and away you go. Shouldn't be too bad really.

If you really wanted to have some fun, you could change the scar++ library to be compiled as a .net or COM library (not recommended)

Phoenix13nl

2009-01-29 05:58:36

hm, that could be an option too, if i realy dont know how to create a function i will.. but ill try to write it myself as much as possible. i wont create something to set the window control though, as that makes everything alot hard and it doesnt realy matter that much (i think). the color/bitmap values will be diffrent, so ill create something to get bitmaps/colors/dtm's later.

boberman

2009-01-29 12:54:37

The only reason I would suggest no re-writing the scar stuff over again, is because I would much rather you add work to scar++ instead :). No sense in rewriting the same code twice.

If you feel you must do it, feel free to use some of the scar++ code, just make sure you credit the scar++ team if you do.

Phoenix13nl

2009-01-29 13:57:37

i deffinitly will add the scar++ team to the credits once its finished, because for some code i'd have no clue on how to achieve it without and example. i'd like to join the scar++ team or work on scar++, but i dont know C++ :) but if i manage to make some cool new functions ill let you know because its easy to translate to C++. :D