View Single Post
Old 11-03-2020, 03:16 PM   #5
Lex248
Human being with feelings
 
Join Date: Apr 2017
Location: Russia
Posts: 21
Default

I tried recently building IplugEffect (IPlug1) using CodeBlocks 20.03 with TDM64-GCC-5.1.0. Despite the 32 bit setup in the project, the plugin built 64 bit.

But I had to make changes to the function:

Code:
// File wdl-ol-master\WDL\IPlug\IGraphicsWin.cpp

void IGraphicsWin::PromptForFile(WDL_String* pFilename, EFileAction action, WDL_String* pDir, char* extensions)
{
...
  if (rc)
  {
    char drive[_MAX_DRIVE];
    //#ifndef __MINGW_H // TODO: alternative for gcc
    #ifdef _MSC_VER // MS Visual Studio
    if(_splitpath_s(ofn.lpstrFile, drive, sizeof(drive), dirCStr, sizeof(dirCStr), NULL, 0, NULL, 0) == 0)
    {
      pDir->SetFormatted(MAX_PATH_LEN, "%s%s", drive, dirCStr);
    }
    #endif
    pFilename->Set(ofn.lpstrFile);
  }
  else
  {
    pFilename->Set("");
  }
}
By the way, no one has a CBP project for IPlug2?
__________________
Sorry, I bad speak english.
---
My plug-ins http://nalexsoft.blogspot.ru

Last edited by Lex248; 11-04-2020 at 04:14 AM. Reason: correction
Lex248 is offline   Reply With Quote