# Plugin 64 vs 32 bit at runtime

**URL:** https://forum.juce.com/t/plugin-64-vs-32-bit-at-runtime/17782
**Category:** General JUCE discussion
**Created:** [May 20, 2016, 8:14pm UTC](https://forum.juce.com/t/plugin-64-vs-32-bit-at-runtime/17782 "2016-05-20T20:14:36Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![frankfilipanits](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/frankfilipanits/32/545_2.png) [@frankfilipanits](https://forum.juce.com/u/frankfilipanits)
#### Post date: [May 20, 2016, 9:14pm UTC](https://forum.juce.com/t/plugin-64-vs-32-bit-at-runtime/17782/3 "2016-05-20T21:14:47Z")

</div>

This snippet from my PluginEditor code fills a string with the current version, format, and bit depth – seems to work well on Windows and OSX.

```auto
    String displayString("Version ");
	
	displayString += JucePlugin_VersionString;
    
	displayString += " ";
	
    switch (getProcessor()->wrapperType)
    {
        case AudioProcessor::wrapperType_VST:
            displayString += "VST";
            break;
        case AudioProcessor::wrapperType_VST3:
            displayString += "VST3";
            break;
        case AudioProcessor::wrapperType_AudioUnit:
            displayString += "AU";
            break;
        case AudioProcessor::wrapperType_RTAS:
            displayString += "RTAS";
            break;
        case AudioProcessor::wrapperType_AAX:
            displayString += "AAX";
            break;
        default:
            displayString += "Unknown";
            break;
    }
#if defined( __LP64__ ) || defined(_WIN64)
	displayString += String(" (64)");
#else
	displayString += String(" (32)");
#endif
    
#ifdef _DEBUG
        displayString += String(" DEBUG");
#endif
```

---

_[View the full topic](https://forum.juce.com/t/plugin-64-vs-32-bit-at-runtime/17782)._
