Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert VB sample code to VFP
Message
From
24/04/2000 19:36:24
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00362887
Message ID:
00362956
Views:
25
Sherry,

>the code works in VB but not VFP. is it right?

If you just cut and pasted my entire line of code, it won't work because of a
typo. I can't test whether the method can be called right now, because the
computer I'm on does not have Imaging for Windows.

I was simply pointing out that you were using the wrong method name, according
to MSDN Library. Perhaps it is incorrect in the docs, but you have
"CreateViewerObject" and the docs say "CreateImageViewerObject". Which one are
you using in VB?

Here is the corrected line (I had OjbApp instead of ObjApp)
ObjImg =
ObjApp.CreateImageViewerObject(1)
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform