Can't compile 64 bit collison example

Forum for reporting problems
Post Reply
Dejan2013
Posts: 3
Joined: Thu Oct 17, 2013 11:15 am

Can't compile 64 bit collison example

Post by Dejan2013 »

Hello
I have 64 bit kernelcad 4.3.3753 installed. I have an error
error BC30002: Type 'IRelation' is not defined and others similar
when I compile VB .NET collisions example in visual studio 2008
Any suggestions would be appreciated
Dejan

ron1234
Posts: 2
Joined: Mon Aug 05, 2013 3:24 am

Re: Can't compile 64 bit collison example

Post by ron1234 »

Hi Dejan

I assume you have changed the configuration to x64. Just in case: in VS Build : Config Manager : Active Solution platform should be x64. If you do not have it in the list select New to create. Make sure "Create new project platforms" is on.

Replace Dim m_iRel As IRelation and similar lines with:
#If KC_X64 Then
Dim m_iRel As IRelation64
#Else
Dim m_iRel As IRelation
#End If

Also add KC_X64 to Project Properties : Compile : Advanced Compiler Options : Custom Constants

I have copied this code from v4.4. x64 seem to be handled little better there

Ron

Post Reply