473,387 Members | 1,515 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.

How to compile c to dll

aze
Hi,

I am by no means a c programmer... far too difficult a language for the
likes of me :-)

I have a 2 c files (pdfp.c, PrinterUtils.c) and 1 .h file
(PrinterUtils.h) and 1 .mak file (pdfp.mak). What I need to do is
compile these files into a dll so I can use them in my asp.net
application.

Does anyone have any idea how I can compile these files into a dll??

Thanks in advance for any help at all.

Justin

Nov 1 '06 #1
4 2662
On 1 Nov 2006 08:41:46 -0800, "aze" <co*****@parkesconsultancy.co.uk>
wrote:
>Hi,

I am by no means a c programmer... far too difficult a language for the
likes of me :-)

I have a 2 c files (pdfp.c, PrinterUtils.c) and 1 .h file
(PrinterUtils.h) and 1 .mak file (pdfp.mak). What I need to do is
compile these files into a dll so I can use them in my asp.net
application.

Does anyone have any idea how I can compile these files into a dll??

Thanks in advance for any help at all.

Justin
You posted this 30 minutes ago under a different title. Usenet is not
a chat room. You need to give your message time to circulate and
people time to respond.
Remove del for email
Nov 1 '06 #2
aze wrote:
Hi,

I am by no means a c programmer... far too difficult a language for the
likes of me :-)

I have a 2 c files (pdfp.c, PrinterUtils.c) and 1 .h file
(PrinterUtils.h) and 1 .mak file (pdfp.mak). What I need to do is
compile these files into a dll so I can use them in my asp.net
application.

Does anyone have any idea how I can compile these files into a dll??

Thanks in advance for any help at all.

Justin
Presumably from what you have said you are doing this on Microsoft Windows.
You would be better addressing this to
comp.os.ms-windows.programmer.win32
If you are lucky then it is as simple as:
1. Open a "Command Prompt" window
2. Change directory to where the three files are stored.
3. Type "nmake -f pdfp.mak"

If you are unlucky then ask there.
--
Bill Medland
Nov 1 '06 #3
aze wrote:
Hi,

I am by no means a c programmer... far too difficult a language for the
likes of me :-)

I have a 2 c files (pdfp.c, PrinterUtils.c) and 1 .h file
(PrinterUtils.h) and 1 .mak file (pdfp.mak). What I need to do is
compile these files into a dll so I can use them in my asp.net
application.

Does anyone have any idea how I can compile these files into a dll??
Use a compilation system that supports whatever sort of file the .mak
file is.
Thanks in advance for any help at all.
I suggest asking where ever you got the files from. We deal with
standard C here, not the vagaries of every implementation or identifying
which of the many implementations a given set of files were written for.
--
Flash Gordon
Nov 1 '06 #4
On Wed, 1 Nov 2006 16:41:46 UTC, "aze"
<co*****@parkesconsultancy.co.ukwrote:
Hi,

I am by no means a c programmer... far too difficult a language for the
likes of me :-)

I have a 2 c files (pdfp.c, PrinterUtils.c) and 1 .h file
(PrinterUtils.h) and 1 .mak file (pdfp.mak). What I need to do is
compile these files into a dll so I can use them in my asp.net
application.

Does anyone have any idea how I can compile these files into a dll??
You'll need a compiler that compiles your c files and a linker that
will be able to link the object files the compiler produces.
Thanks in advance for any help at all.
The rest is off topic on this group. Go to a programming roup that
handles your OS.

--
Tschau/Bye
Herbert

Visit http://www.ecomstation.de the home of german eComStation
eComStation 1.2 Deutsch ist da!
Nov 1 '06 #5

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

Similar topics

8
by: janeaustine50 | last post by:
Python's InteractiveInterpreter uses the built-in compile function. According to the ref. manual, it doesn't seem to concern about the encoding of the source string. When I hand in an unicode...
5
by: Carmine Cairo | last post by:
Hi, I'm working on a project and today I've note a little problem during the compile fase. Here a little piece of code: // 1st version welldone = 0; size = p->getSize(); backbone = new...
5
by: Brice Prunier | last post by:
Here under 4 schemas i'm working with ( it may be long: sorry...) The context is the following : Resident.xsd imports Person.xsd and includes Common.xsd ( anonimous schema: no TargetNamespace )...
10
by: Chris LaJoie | last post by:
Our company has been developing a program in C# for some time now, and we haven't had any problems with it, but just last night something cropped up that has me, and everyone else, stumped. I...
6
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked...
15
by: steve yee | last post by:
i want to detect if the compile is 32 bits or 64 bits in the source code itself. so different code are compiled respectively. how to do this?
16
by: desktop | last post by:
I have read that using templates makes types know at compile time and using inheritance the types are first decided at runtime. The use of pointers and casts also indicates that the types will...
1
by: brianrpsgt1 | last post by:
Newbie here.... I have been able to successful pull info from a MySQL DB, get the results and output them in an HTML format using Cheetah to the screen using IDLE. I am doing this on a Windows...
3
by: NvrBst | last post by:
Right now I have C99 code in .c extensions. I compile it in VSC++ and it complains about a lot of errors. I change the extensions to .cpp and compile in VSC++ and it succeeds. Is there a way...
6
by: Ed Leafe | last post by:
I've noticed an odd behavior with compile() and code that does not contain a trailing newline: if the last line is a comment inside of any block, a syntax error is thrown, but if the last line is a...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.