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 2007

Tip: Looking for answers? Try searching our database.

build dll from windows application.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Farsad - 01 Mar 2007 13:33 GMT
Hi
I have a C++ windows program for control camera by  computer(canon camera
wrapper). this including some of windows and dialog.
I wish summerize this code to requirement functions and build it into a dll
file.

some of my original code is:

class CRelCtrlDlg : public CDialog
{
// Construction
public:
    CRelCtrlDlg(CWnd* pParent = NULL);    // standard constructor

// Dialog Data
    //{{AFX_DATA(CRelCtrlDlg)
    enum { IDD = IDD_RELCTRL_DIALOG };
    CStatic    m_Static_ShootingMode;
               .......

   };

and

prResponse prSTDCALL CRelCtrlDlg::ViewFinderCallBackFun(prHandle  
CameraHandle, prContext   Context, prUInt32  Size, prVoid*  pEventData)
{
    CRelCtrlDlg    *CpThis;

    CpThis = (CRelCtrlDlg*)Context;

    CpThis->m_CVFMutex.Lock();

    CpThis->m_VF_DataSize = Size;

};

howe can i translate this code?
very thanks.
Bruno van Dooren [MVP VC++] - 01 Mar 2007 14:46 GMT
> I have a C++ windows program for control camera by  computer(canon camera
> wrapper). this including some of windows and dialog.
> I wish summerize this code to requirement functions and build it into a dll
> file.
>
> some of my original code is:

Hi,

First of all, this is not your code. This is the source code of the sample
that is distributed with the Canon PRecSDK.
apart from the practical matter of converting it to a dll, this code only
works if you include all the classes of the sample code in your dll project.
Do you have permission to use that code for commercial purposes?

And those classes do nothing but call the C style SDK functions that are
well documented.

I would advise you to create a new dll project, find out which SDK functions
you need to call in which order, and then simply call those functions from
within your exported functions. For information on how to create a dll, look
on www.codeproject.com

If you use the code from the sample program, you are using code that
a) you don't own
b) you don't understand
c) was not designed to be of production quality.
d) adds unnecessary complexity to your dll project.

Signature

Kind regards,
   Bruno.
   bruno_nos_pam_van_dooren@hotmail.com
   Remove only "_nos_pam"


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.