473,387 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

build dll from windows application.

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.
Mar 1 '07 #1
1 1508
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.

--
Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"
Mar 1 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: robert naujokas | last post by:
I'm using VB.NET 2003. I'm working on a simple windows application project type. I've added an application config file to the bin directory in my project. When I build, rebuild or run the project...
9
by: deko | last post by:
I'm confused about what I can use C# and VS.NET for. I have both Visual Studio 6.0 and Visual Studio .NET - which one do I use? If I want to build a basic VB app, I assume I can use the VB 6...
10
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a...
8
by: KwiGibo | last post by:
Hi Everyone, I've been approached to develop an application that will run on Windows as well as Apple Macintosh platforms. Being primarily a C/C++ programmer I would prefer to use this language....
2
by: Joe Shum | last post by:
Hi All: I am pretty new at ASP.NET development. Currently I need to build a Web Server app using C# and ASP.NET to automatically and repeatly refresh data changes at fixed intervals (2 to 30...
8
by: sp | last post by:
How to build application for Windows ME I hale application in VB 2005, under Win XP, 2003, 2000 everything is working OK, but under Windows ME or 98 the application is not working. Should I set...
3
by: NickP | last post by:
Hi there, Today I try to compile an application of mine and I am getting a whole list of bizaar errors.... ------------------------------------------------ Error 1 The...
0
by: anupamak | last post by:
hello, I created a win32 project(precompiled headers, console application). This was created to create a service( for which i used SERVICE_TABLE_ENTRY, SERVICE_STATUS, SERVICE_STATUS_HANDLE,...
15
by: Charles Law | last post by:
In the build output appears ========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ========== However, the compiler does not generate any errors, and the Errors list is empty. This is an...
14
by: yxq | last post by:
Hello, I want to build the multi-language application with the xml file, how to do? could anyone tell a sample? Thank you
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.