主题:同样的代码在 DLL 和 exe 为什么不一致
各位大侠:
我在一个exe的源码中写一下几个类型:
TJPEGImage *JpgPic;
TIcon *IconPic;
String sFileType;
BmpPic = new Graphics::TBitmap();
JpgPic = new TJPEGImage();
IconPic = new TIcon();
都能通过,但是我把他写在一个dll中时,运行报错 Undefined Symbol BmpPic ....
是不是要include 一个头文件?那位什么在exe中可以直接使用呢?
麻烦大家帮忙解决一下,thx!
我在一个exe的源码中写一下几个类型:
TJPEGImage *JpgPic;
TIcon *IconPic;
String sFileType;
BmpPic = new Graphics::TBitmap();
JpgPic = new TJPEGImage();
IconPic = new TIcon();
都能通过,但是我把他写在一个dll中时,运行报错 Undefined Symbol BmpPic ....
是不是要include 一个头文件?那位什么在exe中可以直接使用呢?
麻烦大家帮忙解决一下,thx!