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

Creating a DLL

Hey;

First things first: I'm an ignorant student and have no clue what I'm
doing.

I'm trying to compile the open source fitz/muPDF library (C) used in
the Sumatra PDF Viewer (http://blog.kowalczyk.info/software/
sumatrapdf/) into a dll for use via P/Invoke (C#).

I'm using Visual C++ Express 2005. Everything seemed to work fine,
and the plethora of .c and .h files compiled/linked with the following
options:

/Od /I "c:\Documents and Settings\eric\Desktop\AUCAS\AUCAS
\sumatra-06March2007\fitz\include" /I "c:\Documents and Settings\eric
\Desktop\AUCAS\AUCAS\sumatra-06March2007\ext\jpeg" /I "c:\Documents
and Settings\eric\Desktop\AUCAS\AUCAS\sumatra-06March2007\ext\zlib" /I
"c:\Documents and Settings\eric\Desktop\AUCAS\AUCAS
\sumatra-06March2007\ext\freetype231\include" /D "_WIN32" /D "WIN32" /
D "_WINDOWS" /D "_DEBUG" /D "DEBUG" /D "NEED_MATH=1" /D
"NEED_STRLCPY=1" /D "NEED_STRSEP=1" /D "_MBCS" /Gm /RTC1 /MTd /GR- /
Fo"Debug-fitz\\" /Fd"C:\Documents and Settings\eric\Desktop\AUCAS\AUCAS
\sumatra-06March2007\Debug-fitz\fitzlib_d.pdb" /W3 /nologo /c /ZI /TC /
wd4996 /wd4244 /wd4267 /wd4995 /FC /errorReport:prompt

However, when I try to call functions from the dll, the library is
loaded but the function is never found. Running 'Dumpbin.exe /
EXPORTS' on it shows a very short output and no method names.

Any help?

SigmaX

Apr 3 '07 #1
5 3390
fy******@gmail.com wrote:
>
First things first: I'm an ignorant student and have no clue what
I'm doing.

I'm trying to compile the open source fitz/muPDF library (C) used
in the Sumatra PDF Viewer (http://blog.kowalczyk.info/software/
sumatrapdf/) into a dll for use via P/Invoke (C#).

I'm using Visual C++ Express 2005. Everything seemed to work fine,
and the plethora of .c and .h files compiled/linked with the
following options:
My condolences on being stuck with Microsoft software and systems.
However this is off-topic here, where we deal with the portable C
language. Especially there is no such thing as a 'dll' in the C
language. Try a newsgroup that deals with your system, which will
probably have 'microsoft' or 'windows' in its name. See the
following links.

--
Some useful references about C:
<http://www.ungerhu.com/jxh/clc.welcome.txt>
<http://www.eskimo.com/~scs/C-faq/top.html (C-faq)
<http://benpfaff.org/writings/clc/off-topic.html>
<http://anubis.dkuug.dk/jtc1/sc22/wg14/www/docs/n869/(C99)
<http://www.dinkumware.com/refxc.html (C-library}
<http://gcc.gnu.org/onlinedocs/ (GNU docs)
<http://clc-wiki.net/wiki/C_community:comp.lang.c:Introduction>
--
Posted via a free Usenet account from http://www.teranews.com

Apr 3 '07 #2
fy******@gmail.com a écrit :
Hey;

First things first: I'm an ignorant student and have no clue what I'm
doing.
Yes, you are trying to use C++ with C, for starters.

There are so many things that you need to learn before being able to do
this that it would be impossible to explain everything here.

HINT:

The author provides a binary compiled eecutable.
Use that.
Apr 4 '07 #3
On Apr 3, 6:51 pm, CBFalconer <cbfalco...@yahoo.comwrote:
My condolences on being stuck with Microsoft software and systems.
Thanx for the sympathy. What I wouldn't give to be using Linux.
However this is off-topic here, where we deal with the portable C
language. Especially there is no such thing as a 'dll' in the C
language. Try a newsgroup that deals with your system, which will
probably have 'microsoft' or 'windows' in its name. See the
following links.
Thanx for the pointers.
--
Some useful references about C:
<http://www.ungerhu.com/jxh/clc.welcome.txt>
<http://www.eskimo.com/~scs/C-faq/top.html (C-faq)
<http://benpfaff.org/writings/clc/off-topic.html>
<http://anubis.dkuug.dk/jtc1/sc22/wg14/www/docs/n869/(C99)
<http://www.dinkumware.com/refxc.html (C-library}
<http://gcc.gnu.org/onlinedocs/ (GNU docs)
<http://clc-wiki.net/wiki/C_community:comp.lang.c:Introduction>

--
Posted via a free Usenet account fromhttp://www.teranews.com

Apr 4 '07 #4
On 4 Apr 2007 13:06:39 -0700, fy******@gmail.com wrote:
>On Apr 3, 6:51 pm, CBFalconer <cbfalco...@yahoo.comwrote:
>My condolences on being stuck with Microsoft software and systems.

Thanx for the sympathy. What I wouldn't give to be using Linux.
You don't have to give anything.

http://www.ubuntu.com/

--
jay
Apr 6 '07 #5
jaysome said:
On 4 Apr 2007 13:06:39 -0700, fy******@gmail.com wrote:
>>On Apr 3, 6:51 pm, CBFalconer <cbfalco...@yahoo.comwrote:
>>My condolences on being stuck with Microsoft software and systems.

Thanx for the sympathy. What I wouldn't give to be using Linux.

You don't have to give anything.

http://www.ubuntu.com/
Sure. But please remember that many people do not have control over the
choice of tool chain, and particularly over the choice of OS. Junior
professionals[1], students, kids learning at home on their mummy's
computer, etc etc.

[1] Which we might define as "anyone not sufficiently senior to be able
to get away with installing Linux on the machine he uses at work". By
this definition, it is entirely possible that Bill Gates is the only
senior programmer in Microsoft!

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Apr 6 '07 #6

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

Similar topics

2
by: rdsteph | last post by:
Python411 is a series of podcasts about Python, aimed at hobbyists and others who are learning Python. Each episode focuses on one aspect of learning Python, or one kind of Python programming, and...
6
by: owen | last post by:
Generally speaking, what does it mean when I see a "button" with red text showing this message instead of the control I've dragged onto the web form in Design View.? (But the page works fine at...
2
by: Pawan | last post by:
Hi Guys, I have this current assignment where I have to develop online forms for local municipal authorities. I have to use adobe acrobat to create online forms from PDFs (which I have never done...
15
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use...
2
by: LIN | last post by:
Hello, Greetings. I am creating a web site which will contain lot of articles. I had been planning to create simple HTML page on the server everytime i posted a article (eg. article12.html )....
2
by: Patrick | last post by:
I want to define a set of web-form templates in XML and render the equivalent web-form with ASP.NET, then process any input server controls on the form. Reading the XML file from Page_load is...
0
by: Ravi Ambros Wallau | last post by:
Hi: I've created a custom control - a grid that uses Infragistics to display some filters, the grid itself, and some buttons. Well, when using this control directly on WebForm, everything works...
12
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without...
15
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
9
by: =?Utf-8?B?YmJn?= | last post by:
Hi all, I read somewhere "using kernel stuff in thread is not good.." if ManualResetEvent object is created in thread but not actually used, will it affect performance? Bob
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.