Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] CPUInfoMBS (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] 7.0pr2
Next thread: [MBS] TIFFPictureMBS compression


Re: [MBS] MIDI Destinations and External Devices   -   Ron Benditt
  [MBS] CPUInfoMBS   -   Philippe GUEDJ
   Re: [MBS] CPUInfoMBS   -   Christian Schmitz
    Re: [MBS] CPUInfoMBS   -   Philippe GUEDJ
   Re: [MBS] CPUInfoMBS   -   Joe Huber
    Re: [MBS] CPUInfoMBS   -   Christian Schmitz
     Re: [MBS] CPUInfoMBS   -   Massimo Valle
      Re: [MBS] CPUInfoMBS   -   Christian Schmitz

[MBS] CPUInfoMBS
Date: 02.01.07 19:40 (Tue, 2 Jan 2007 19:40:54 +0100)
From: Philippe GUEDJ
Hi,

c=new CPUInfoMBS

CPUName return "PowerPC G4" On a MacPro :-)

Thanks.

Re: [MBS] CPUInfoMBS
Date: 02.01.07 19:47 (Tue, 2 Jan 2007 19:47:20 +0100)
From: Christian Schmitz
Philippe GUEDJ <<email address removed>> wrote:

> Hi,
>
> c=new CPUInfoMBS
>
> CPUName return "PowerPC G4" On a MacPro :-)

You tried plugin version 7 on this?

(and there is a new CPUIDMBS class)

Gruß
Christian

-

Re: [MBS] CPUInfoMBS
Date: 05.01.07 02:15 (Fri, 5 Jan 2007 02:15:28 +0100)
From: Philippe GUEDJ

Le 2 janv. 07 à 19:47, Christian Schmitz a écrit :

>
> You tried plugin version 7 on this?
>
> (and there is a new CPUIDMBS class)

Thanks all,

The version 7 work correctly and return Intel 486...

Happy new year.

--

Re: [MBS] CPUInfoMBS
Date: 02.01.07 19:50 (Tue, 2 Jan 2007 10:50:48 -0800)
From: Joe Huber
At 7:40 PM +0100 1/2/07, Philippe GUEDJ wrote:
> c=new CPUInfoMBS
> CPUName return "PowerPC G4" On a MacPro :-)

Any chance your app is running as PPC on Rosetta?

Regards,
Joe Huber
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] CPUInfoMBS
Date: 02.01.07 21:15 (Tue, 2 Jan 2007 21:15:15 +0100)
From: Christian Schmitz
Joe Huber <<email address removed>> wrote:

> At 7:40 PM +0100 1/2/07, Philippe GUEDJ wrote:
> > c=new CPUInfoMBS
> > CPUName return "PowerPC G4" On a MacPro :-)
>
> Any chance your app is running as PPC on Rosetta?

Somewhere I had code to detect it...

Gruß
Christian

-

Re: [MBS] CPUInfoMBS
Date: 03.01.07 21:21 (Wed, 3 Jan 2007 21:21:14 +0100)
From: Massimo Valle

On 02/gen/07, at 21:15, Christian Schmitz wrote:

> Joe Huber <<email address removed>> wrote:
>
>> At 7:40 PM +0100 1/2/07, Philippe GUEDJ wrote:
>>> c=new CPUInfoMBS
>>> CPUName return "PowerPC G4" On a MacPro :-)
>>
>> Any chance your app is running as PPC on Rosetta?
>
> Somewhere I had code to detect it...

Function IsRosetta() As Boolean
Soft Declare Function sysctl Lib "System.framework" (p1 as Ptr, p2
as Integer, p3 as Ptr, ByRef p4 as Integer, p5 as Integer, p6 as
Integer) as Integer

Const CTL_HW = 6
Const HW_MODEL = 2
Const Null = 0

dim mib as new MemoryBlock(8)
mib.Long(0) = CTL_HW
mib.Long(4) = HW_MODEL

dim model as new MemoryBlock(32)
dim len as Integer = model.Size

dim theResult as Integer = sysctl(mib, 2, model, len, Null, 0)
Return (theResult = 0) and (StrComp(model.StringValue(0,len),
"PowerMac" + Chr(0), 0) = 0)
End Function

Massimo Valle

Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] CPUInfoMBS
Date: 05.01.07 00:38 (Fri, 5 Jan 2007 00:38:06 +0100)
From: Christian Schmitz
Massimo Valle <<email address removed>> wrote:

> Function IsRosetta() As Boolean
> Soft Declare Function sysctl Lib "System.framework" (p1 as Ptr, p2
> as Integer, p3 as Ptr, ByRef p4 as Integer, p5 as Integer, p6 as
> Integer) as Integer

Thank you Massimo.
The plugin has a SystemControlMBS function which can be used instead of
the declare, but your code should do it.

Gruß
Christian

-