HELP!! <please>

A

aze

Hi,

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
 
V

Victor Bazarov

aze said:
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.

You need to ask in the newsgroup that deals with your compiler. See
the FAQ for a list of suggestions.
Does anyone have any idea how I can compile these files into a dll??

Somebody in the newsgroup that deals with your compiler does.

V
 
P

Phlip

aze said:
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??

Open Visual Studio and use New Project -> DLL Project. You will get an empty
source file, maybe with a DllMain in it.

Add those two .c files to the file list, and compile.

You should get a .LIB file.

Use New Project -> Console Application -> Hello World, and build a Hello
World program.

Add the .LIB file to its file list. Then #include the .h file into your
Hello World program. Try to call one of the functions in pdfp.c.

If you can, you are ready to use ASP.NET. Investigate (on a .NET newsgroup)
how to link to a DLL, and then call it.

All that is my guess, from doing similar things. This newsgroup is only
qualified to discuss the raw C++ language itself, so your questions will get
much better help on some .NET newsgroup.
 
A

aze

First off to Victor Bazarov: Thanks for that... I don't currently have
a c compiler hence the vagueness of the question. I am a .net
programmer. But thanks for you reply anyway :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Help please 8
How to compile c to dll 4
Code help please 4
Please Help 2
Hello and Help please :-) 1
I dont get this. Please help me!! 2
Probably not the right place but here goes 4
Please help 7

Members online

Forum statistics

Threads
473,770
Messages
2,569,585
Members
45,080
Latest member
mikkipirss

Latest Threads

Top