问题
I am new to visual c++. I am trying to save a label as pdf file in visual c++. I linked pdfsharp dll by add resources from properties. When i run the .exe file in my system, it doesnt give any error. But when the .exe is run in other systems it gives error telling "could not load file or assembly 'pdfSharp, version=1.31.1789.0, culture = neutral, publicKeytoken= f94615aa0424f9eb' or one of its dependencies"
But when i add the pdfsharp in the folder where this .exe stays, it doesnt give any error. What could be the problem. What should i do to run without adding pdf dll in the .exe folder.
回答1:
An EXE that links to PDFsharp.dll cannot run without PDFsharp.dll. You can add PDFsharp.dll to a directory listed in the PATH environment variable if you do not want to have it in the EXE folder.
来源:https://stackoverflow.com/questions/31559789/pdfsharp-in-visual-c