cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

geekmaster
Journeyman III

CAL & .NET

Succesfully combining cal and .net

I dont know if this has been already posted or if it is mentioned in any guide (as it is easy to figure out and usefull) but i fount a very easy way to use ati cal in a .net application.

Instructions:

1) open hellocal project located in  ...\ATI CAL 1.4.0_beta\samples\app\hellocal\

2)In visual c++ go to add->new item... and select windows form .

3)name the file form1

4)in the form1.cpp created type the posted code

5) run the function run() from the main() located in hellocal.cpp

 You should now have a nice application with user interface and with gpu acceleration

#include "form1.h" using namespace hellocal; void run(void) { Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false); Application::Run(gcnew form1()); }

0 Likes
2 Replies
geekmaster
Journeyman III

Well i forgot to mention that you need to launch the run() function in a seperate thread because otherwise the .net application will launch first and the cal application afterwards.

so add in the hellocal.cpp

#include <windows.h>

and launch the run function with

_beginthread(run, 0, (void*)0);

and edit the run function:

void run(void *noargs){ .....

and type

void

 

 

 

run(void *noargs); int the hellocal.cpp (the function definition)



0 Likes

Sorry for multiple posts but apparently there are other people who try to use cal in a .net application. Check this : http://www.hoopoe-cloud.com/Solutions/CAL.NET/Default.aspx

0 Likes