By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,804 Members | 1,666 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,804 IT Pros & Developers. It's quick & easy.

HELP!! <please>

P: n/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

Nov 1 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
aze wrote:
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
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Nov 1 '06 #2

P: n/a
aze wrote:
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.

--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!
Nov 1 '06 #3

P: n/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 :)
Victor Bazarov wrote:
aze wrote:
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
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Nov 1 '06 #4

P: n/a
aze
Hi Philip,

I really appreciate your response. I'll give it a go.

Justin

Phlip wrote:
aze wrote:
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.

--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!
Nov 1 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.