Compiling the framework with C in visual studio
Posted: 15 April 2010 05:37 AM   [ Ignore ]
New Member
Rank
Total Posts:  4
Joined  2010-04-13

Hi!
I currently have a project where I am using the ps eye with drivers from this page.
It works great with openCV, but I want to get SL SDK to work, since it has some features I want.
But there is where the problem arises…

All frameworks i’m working towards are written in C, ANSI-C acctually.

But CLEyeMulticam.h is written for C++ and I can for that reason not compile it with VS ANSI-C compiler.
Can I modify it so that it will compile with ANSI-C?

Thanks on beforehand!

-Andreas

—EDIT—

I might have solved the problem, will update if it doesn’t work.

Profile
 
 
Posted: 15 April 2010 04:23 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  585
Joined  2009-09-17

Andreas,
The CLMulticam.dll exports pure C functions. If your code doesn’t compile you can modify the .h file so it does.
Alliteratively, you can dynamically link the CLMulticam.dll using LoadLibrary/GetProcAdress Win32 API and not even use the .h/.lib files.

Profile
 
 
Posted: 16 April 2010 12:31 AM   [ Ignore ]   [ # 2 ]
New Member
Rank
Total Posts:  4
Joined  2010-04-13
AlexP - 15 April 2010 04:23 PM

Andreas,
The CLMulticam.dll exports pure C functions. If your code doesn’t compile you can modify the .h file so it does.
Alliteratively, you can dynamically link the CLMulticam.dll using LoadLibrary/GetProcAdress Win32 API and not even use the .h/.lib files.

Thanks for the answer!
I will look into dynamically linking as you described. It is something I would want to learn more from.

My solution was to edit the header file and replace c++ specific items. Now it compiles and works like a charm =)

Profile
 
 
Posted: 21 April 2010 01:27 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  585
Joined  2009-09-17

Andreas,

I’m glad all worked out for you.

AlexP

Profile
 
 
 
 


RSS 2.0     Atom Feed