I cannot import an activeX controll into Delphi XE2 which is running on Windows 7 64bit. When the .pas code is generated (I don't undrstand how this is done) there are many errors in the code. By comparing what happens using Delphi 2010 on another machine I can see what the code should look...
DElphi 7
I am trying to convert icons to bitmaps like this
Icon := TIcon.Create;
try
Icon.LoadFromFile(ImagePath);
Ibmap.Height := Icon.Height;//wrong if icon is
Ibmap.Width := Icon.Width;//bigger than 32 x 32
Ibmap.Canvas.Draw(0, 0, Icon)...
I am trying to write a dll which will be used to print.
Very little works so far.
The following cause the dll to crash:-
printdialog1.execute
any line which uses printer, eg printer.width.
or GetDEviceCaps(printer.canvas.handle.....
Anyone have any advice?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.