473,326 Members | 2,588 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,326 software developers and data experts.

Convert a project (ImageStone) to Dll

6
Purpose: Convet the project " ImageStone "(with source code) to a DLL

Platform: Visual Studio 2005 on Windows Vista

What I've done:
1. Create a empty DLL project and add all the source codes of ImageStone in the Header Files of the project(because ImageStone project has only header files)

2. Add "__declspec(dllexport)" in all the functions of .h file in the Header Files of project

3. Add a ImageStone.cpp file to the Source Files
#include "ImageStone.h"

int main()
{
return 0;
}

4. Build the project and got the ImageStone.dll

5. Create another new project to this solution

6. Copy the "example01" which also provided by ImageStone project to the Source Files of the project that step 5 created

7. Setup the Reference, Additional Include Directories, and Environment of the project of step 5 created

8. Build the solution and got the expample01.exe

Question: I want to prove the correctness of the DLL that just maked. I remove the DLL and run the example01.exe, and example01.exe still work!!! It means I failed. The ImageStone is still build with example01.exe as a static library.

How can I do to achieve my purpose? Thanks for your answers!
Nov 4 '08 #1
7 2751
JosAH
11,448 Expert 8TB
If #include-ing "ImageStone.h" is enough to incorporate all the source code, you
don't need any compiled code (in a .dll) to generate your application. That's also
what happened with your other project; i.e. it didn't need any compiled code.

kind regards,

Jos
Nov 4 '08 #2
97612
6
If #include-ing "ImageStone.h" is enough to incorporate all the source code, you
don't need any compiled code (in a .dll) to generate your application. That's also
what happened with your other project; i.e. it didn't need any compiled code.

kind regards,

Jos
Sorry, I can't get what you mean. Did you mean that I can only use ImageStone as static library rather than a .dll?

Can you explain more detail or tell me what should I do next for build ImageStone as .dll?!

Thanks a lot!
Nov 4 '08 #3
JosAH
11,448 Expert 8TB
Sorry, I can't get what you mean. Did you mean that I can only use ImageStone as static library rather than a .dll?

Can you explain more detail or tell me what should I do next for build ImageStone as .dll?!

Thanks a lot!
Your previous remark: ImagStone consists of .h files only and you're supposed
to use it by #include-ing "imagestone.h". So just that incorporates its source
code in your code. There is no need for compiled code in a library, whether
static or dynamic.

kind regards,

Jos
Nov 4 '08 #4
97612
6
Your previous remark: ImagStone consists of .h files only and you're supposed
to use it by #include-ing "imagestone.h". So just that incorporates its source
code in your code. There is no need for compiled code in a library, whether
static or dynamic.

kind regards,

Jos
Is that I need to separate the codes that implement ImageStone from the .h files if I still want to build ImageStone as a .dll? Did I misunderstand what you mean?

Best Regards
Nov 4 '08 #5
JosAH
11,448 Expert 8TB
Is that I need to separate the codes that implement ImageStone from the .h files if I still want to build ImageStone as a .dll? Did I misunderstand what you mean?
You understood it correctly and my guess is that it'll be a hell of a job to separate
the code from the declarations in those .h files.

kind regards,

Jos
Nov 4 '08 #6
97612
6
You understood it correctly and my guess is that it'll be a hell of a job to separate
the code from the declarations in those .h files.

kind regards,

Jos
OK. Thank you very much! I really appreciate your patience for my questions.

Best Regards

97612
Nov 4 '08 #7
JosAH
11,448 Expert 8TB
OK. Thank you very much! I really appreciate your patience for my questions.
You're welcome of course and to tell you the truth: your question was one of the
more sane questions posted in the forum lately ;-) Best of luck with your project.

kind regards,

Jos
Nov 4 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Sriram | last post by:
Hi, i am developing an windows based VB.NET application. I want to convert this project to an .exe format so that i can run this application on any system. I have no clue as how to do it, as it...
22
by: ACaunter | last post by:
Hi, can someone please let me know if there is a way to convert a vb.net application to asp.net. Or if a vb.net application written in 3-tier could be run on the net??? Thanks! --...
2
by: abhishek dutta | last post by:
how to convert the project developed in .NET-2003 To .net 2002 (Vb Project)
6
by: patang | last post by:
Could someone please tell me where am I supposed to put this code. Actually my project has two forms. I created a new module and have put the following code sent by someone. All the function...
1
by: David Herbst | last post by:
I have a solution that contains one main web project, ten sub web projects and a controls library project all in a single web application. I followed the steps in the following MS KB: How To...
7
by: Kevin | last post by:
Hi Is there any application that convert C# project to vb.net project? Thanks =)
1
by: johnlim20088 | last post by:
Hi, Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in...
7
by: Rick | last post by:
I have a web service that I converted from VS 2003 Framework 1.1. to VS 2005 Framework 2.0. I tried to use the same IIS web site to run the web service. I deleted the Framework 1.1 files published...
4
by: =?Utf-8?B?S3VlaXNoaW9uZyBUdQ==?= | last post by:
I have a VC# .NET project which is imported from an OCX control using AxImp. I would like to convert it into a VC++ .NET project. Is there any way to do it and how to do it?
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.