Author Topic: Equivalent in C++ to PB #compile { "filename.exe/dll"}  (Read 2558 times)

0 Members and 1 Guest are viewing this topic.

Offline Heinz Grandjean

  • Newbie
  • *
  • Posts: 22
Equivalent in C++ to PB #compile { "filename.exe/dll"}
« on: September 20, 2013, 09:09:11 AM »
Just another question and I hope I don't overstress your patience.

When I compile in MS C++ one of my test-DLLs the release is embedded in a bunch of files, normally in the Debug-folder.
What I need is to express a special target-folder for the DLL.
In PB we have the above mentioned compiler directive.
I checked out the C++ examples made by Patrice and Frederick(they are great),
but I was not able to find a hint concerning that question.

Heinz Grandjean


Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1998
    • www.zapsolution.com
Re: Equivalent in C++ to PB #compile { "filename.exe/dll"}
« Reply #1 on: September 20, 2013, 10:25:42 AM »
No, the Debug folder is for debug purpose only, it produces much larger code that is not intended to be distributed.

You must compile in release mode once the code has been debugged, and distribute the realease EXE/DLL only!

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Offline Heinz Grandjean

  • Newbie
  • *
  • Posts: 22
Re: Equivalent in C++ to PB #compile { "filename.exe/dll"}
« Reply #2 on: September 20, 2013, 01:09:03 PM »
Yes, thank You.
Fixed that.
But the question how to release the DLL into a user-defined folder is still there.
In PB this is extremely convenient.
Heinz Grandjean

Offline Kev Peel

  • Newbie
  • *
  • Posts: 11
Re: Equivalent in C++ to PB #compile { "filename.exe/dll"}
« Reply #3 on: September 20, 2013, 02:02:56 PM »
Project Properties > Release Configuration > Output Directory (and 'Target name')

Offline Heinz Grandjean

  • Newbie
  • *
  • Posts: 22
Re: Equivalent in C++ to PB #compile { "filename.exe/dll"}
« Reply #4 on: September 20, 2013, 02:20:00 PM »
Thank you,
Heinz Grandjean