Visual C++ 中的 pdfsharp [英] pdfsharp in visual c++

查看:40
本文介绍了Visual C++ 中的 pdfsharp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Visual C++ 的新手.我正在尝试在 Visual C++ 中将标签保存为 pdf 文件.我通过从属性添加资源来链接 pdfsharp dll.当我在我的系统中运行 .exe 文件时,它没有给出任何错误.但是当 .exe 在其他系统中运行时,它会给出错误提示无法加载文件或程序集 'pdfSharp,版本 = 1.31.1789.0,文化 = 中性,publicKeytoken = f94615aa0424f9eb' 或其依赖项之一"

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"

但是当我在这个 .exe 所在的文件夹中添加 pdfsharp 时,它没有给出任何错误.可能是什么问题呢.我应该怎么做才能在 .exe 文件夹中不添加 pdf dll 的情况下运行.

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.

推荐答案

如果没有 PDFsharp.dll,链接到 PDFsharp.dll 的 EXE 将无法运行.如果您不想将 PDFsharp.dll 添加到 EXE 文件夹中,可以将其添加到 PATH 环境变量中列出的目录中.

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.

这篇关于Visual C++ 中的 pdfsharp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆