Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2005

Tip: Looking for answers? Try searching our database.

Scaling a Picture from a C++ DLL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nah - 12 Mar 2005 02:59 GMT
Hello.

I have a Visual Basic 6 program that calls a C++ DLL that I am in the
process of writing.   The DLL does some calculations and should draw some
points in a Picture form contained in the VB exe.  How can I scale the
Picture form to a custom scale from the C++ DLL, so that the points are drawn
in the right place?

Note: I am currently passing the picture's hDC tag to the DLL, but I don't
know what to do with it.  Can I use some version of the SetWindowExt,
SetViewportExt, and SetViewportOrg functions?

Any help would be much appreciated.  Thanks.

Nikolai.
William DePalo [MVP VC++] - 12 Mar 2005 05:19 GMT
> Note: I am currently passing the picture's hDC tag to the DLL, but I don't
> know what to do with it.  Can I use some version of the SetWindowExt,
> SetViewportExt, and SetViewportOrg functions?

Graphics issues are the topic of the group

   microsoft.public.win32.programmer.gdi

The group focuses on language issues.

Regards,
Will
nah - 12 Mar 2005 17:57 GMT
I am new to this newsgroup.  Thank you for setting me on track.
Nikolai.

> > Note: I am currently passing the picture's hDC tag to the DLL, but I don't
> > know what to do with it.  Can I use some version of the SetWindowExt,
[quoted text clipped - 8 lines]
> Regards,
> Will

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.