ATL Free SDK

Forum for plugin, effect and behavior programmers. Please use the Help & Support forum for help using Construct.

Post » Tue Mar 10, 2009 1:50 am

Any chance an ATL free version of the SDK could be released? ATL is excluded from VC++ Express, so I can't build any plugins. :?
Moderator
B
98
S
36
G
19
Posts: 1,584
Reputation: 17,717

Post » Tue Mar 10, 2009 1:56 am

I'll see what I can do when I have time. I think it's just CString it uses, and the interface between Construct and the SDK ought to all be const char*s, so it might be possible to remove it already. You could also give dreamspark.com a go if you're a student.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518

Post » Tue Mar 10, 2009 2:10 am

I'm homeschooled, so I'm not sure what kind of hoops I'd have to jump through to get a Dreamspark account.

Anyways, I commented out the ATL includes, but when I try to build the plugin the compiler comes up with about 50 errors in Quadrilateral.hpp.
Moderator
B
98
S
36
G
19
Posts: 1,584
Reputation: 17,717

Post » Tue Mar 10, 2009 1:47 pm

What errors? You might need definitions for POINTF and RECTF, which are trivial (float versions of the POINT and RECT structs).
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518

Post » Tue Mar 10, 2009 3:42 pm

Since there were apparently 111 errors( :P ), I just uploaded the build log.
Moderator
B
98
S
36
G
19
Posts: 1,584
Reputation: 17,717

Post » Tue Mar 10, 2009 3:57 pm

Yeah, all the errors relate to p1, p2, p3 and p4, which are POINTFs, which is an undefined type. Try throwing in

struct POINTF {
float x, y;
};

somewhere, and it should fix those errors.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518

Post » Tue Mar 10, 2009 4:14 pm

That indeed fixed those problems, so now I just get a bunch of errors related to CString and related nonsense.
Moderator
B
98
S
36
G
19
Posts: 1,584
Reputation: 17,717

Post » Tue Mar 10, 2009 6:47 pm

I don't have much time to investigate properly these days. I'll take a look when I can, but you might be able to fix it on your own or with another developer. CString is basically an MFC version of std::string, it has a const char* overload instead of a c_str() function so you can pass it directly to parameters requiring a const char*. You could try replacing all CStrings in the SDK with std::strings, or directly manipulating const char*s.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518

Post » Sat Apr 04, 2009 9:44 pm

I got around it by using Joe O'Leary's CStdString wrapper.

Everything compiles fine now with the exception of afxres. I don't know how I am supposed to get around it.

Any idea?
B
2
G
3
Posts: 75
Reputation: 1,000

Post » Sun Apr 05, 2009 9:33 pm

Any way to get around AFXRES?

I'm just one step away from having ATL-free Plugin SDK.

Thanks
B
2
G
3
Posts: 75
Reputation: 1,000

Next

Return to Construct engineering

Who is online

Users browsing this forum: No registered users and 0 guests