Click here to Skip to main content
14,880,764 members
Home / Discussions / C#
   

C#

 
QuestionWindows Service Question Pin
Richard Blythe7-Jul-08 17:06
MemberRichard Blythe7-Jul-08 17:06 
AnswerRe: Windows Service Question Pin
PIEBALDconsult7-Jul-08 17:41
professionalPIEBALDconsult7-Jul-08 17:41 
QuestionWhy won't the clipboard work in this itunes event handler? Pin
Nitrus7-Jul-08 17:01
MemberNitrus7-Jul-08 17:01 
GeneralRe: Why won't the clipboard work in this itunes event handler? Pin
TheFM2347-Jul-08 17:34
MemberTheFM2347-Jul-08 17:34 
GeneralRe: Why won't the clipboard work in this itunes event handler? Pin
Nitrus7-Jul-08 17:58
MemberNitrus7-Jul-08 17:58 
GeneralRe: Why won't the clipboard work in this itunes event handler? Pin
TheFM2348-Jul-08 2:19
MemberTheFM2348-Jul-08 2:19 
GeneralRe: Why won't the clipboard work in this itunes event handler? Pin
Nitrus8-Jul-08 3:09
MemberNitrus8-Jul-08 3:09 
QuestionAccessing clipboard data in a multi threaded app Pin
Member 34047907-Jul-08 16:17
MemberMember 34047907-Jul-08 16:17 
Hi, All.

I am having a problem where I am not getting a bitmap of a PDF back. This code works fine in a single threaded version I have been using for the past 8 months. If I open MSPaint I can paste the clipboard fine.
Is there something else I have to do because of it being multi threaded?
AcroPDPage pdfPage = (AcroPDPage)pdfDoc.AcquirePage(0);
CAcroPoint pdfRectTemp = (CAcroPoint)pdfPage.GetSize();
AcroRect pdfRect = new AcroRectClass();
pdfRect.Left = 0;
pdfRect.right = pdfRectTemp.x;
pdfRect.Top = 0;
pdfRect.bottom = pdfRectTemp.y;
pdfPage.CopyToClipboard(pdfRect, 0, 0, 100);
Fails at this point - returns "null"
--> IDataObject clipboardData = Clipboard.GetDataObject();
if (clipboardData.GetDataPresent(DataFormats.Bitmap))
{
blah,blah

Any ideas would be greatly appreciated.
Richard.
AnswerRe: Accessing clipboard data in a multi threaded app Pin
Member 34047909-Jul-08 14:18
MemberMember 34047909-Jul-08 14:18 
Questionhmc 1052L Pin
fasehah7-Jul-08 15:16
Memberfasehah7-Jul-08 15:16 
AnswerRe: hmc 1052L Pin
leckey7-Jul-08 16:10
Memberleckey7-Jul-08 16:10 
JokeRe: hmc 1052L Pin
PIEBALDconsult7-Jul-08 17:42
professionalPIEBALDconsult7-Jul-08 17:42 
AnswerRe: hmc 1052L Pin
Pete O'Hanlon7-Jul-08 21:42
mvePete O'Hanlon7-Jul-08 21:42 
Questionnewsletter mentioning a corba open source by novel...? Pin
Leblanc Meneses7-Jul-08 12:20
MemberLeblanc Meneses7-Jul-08 12:20 
Questionprevious post is got too long, isn't it? (my previous question again) Pin
Sajjad Izadi7-Jul-08 9:21
MemberSajjad Izadi7-Jul-08 9:21 
AnswerRe: previous post is got too long, isn't it? (my previous question again) Pin
SomeGuyThatIsMe7-Jul-08 9:48
MemberSomeGuyThatIsMe7-Jul-08 9:48 
GeneralRe: previous post is got too long, isn't it? (my previous question again) Pin
Christian Graus7-Jul-08 9:50
protectorChristian Graus7-Jul-08 9:50 
GeneralRe: previous post is got too long, isn't it? (my previous question again) Pin
SomeGuyThatIsMe7-Jul-08 10:04
MemberSomeGuyThatIsMe7-Jul-08 10:04 
GeneralRe: previous post is got too long, isn't it? (my previous question again) Pin
Christian Graus7-Jul-08 10:11
protectorChristian Graus7-Jul-08 10:11 
GeneralRe: previous post is got too long, isn't it? (my previous question again) Pin
Colin Angus Mackay7-Jul-08 10:21
MemberColin Angus Mackay7-Jul-08 10:21 
AnswerRe: previous post is got too long, isn't it? (my previous question again) Pin
Christian Graus7-Jul-08 9:48
protectorChristian Graus7-Jul-08 9:48 
GeneralRe: previous post is got too long, isn't it? (my previous question again) Pin
Sajjad Izadi7-Jul-08 10:07
MemberSajjad Izadi7-Jul-08 10:07 
GeneralRe: previous post is got too long, isn't it? (my previous question again) Pin
Christian Graus7-Jul-08 10:12
protectorChristian Graus7-Jul-08 10:12 
GeneralRe: previous post is got too long, isn't it? (my previous question again) Pin
Paul Conrad7-Jul-08 10:32
professionalPaul Conrad7-Jul-08 10:32 
GeneralRe: previous post is got too long, isn't it? (my previous question again) Pin
Luc Pattyn7-Jul-08 10:13
sitebuilderLuc Pattyn7-Jul-08 10:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.