473,395 Members | 1,919 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,395 software developers and data experts.

C-based DLL with P/Invoke

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 (yuck). 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, or at least pointers to someplace which might help get me
started? Google never yields much on intermediate programming topics.

SigmaX

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

[..]
I'm using Visual C++ Express 2005 (yuck). [..]

Any help, or at least pointers to someplace which might help get me
started? Google never yields much on intermediate programming topics.
news:microsoft.public.vc.language

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Apr 4 '07 #2

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

Similar topics

1
by: John Altland | last post by:
Here is my basic problem. I have a form that executes a cpu instensive algorithm occupying the first thread. When the algorithm is executed another form pops up telling the user the progress that...
1
by: boxim | last post by:
hi all, I'm having a few problems whereby my application is hanging when using the Invoke method of a form's control. Basically, when a user clicks a button on the form, it calls a remote...
2
by: Tom | last post by:
Hi Everybod I want to update some controls in a form from another threads. I did it by passing the form to that thread and calling a delegate with Form1.Invoke, I want to have just one delegeate...
5
by: RickDee | last post by:
Please help, anybody. I am trying to write a program so that it can launch an exe file ( which is also genereated in C# ) and then simulate the button clicking and invoke the methods inside the...
14
by: stic | last post by:
Hi, I'm in a middle of writing something like 'exception handler wraper' for a set of different methodes. The case is that I have ca. 40 methods form web servicem, with different return values...
7
by: Jeff Stewart | last post by:
I need a thread to run a subroutine which updates my main form's progress bar. I've properly marshaled all UI updates to the main UI thread, and after the main thread starts the worker thread, it...
23
by: Thomas Due | last post by:
Hi, I have a class which monitors a TCP socket. This will on occasion raise an event which can be handled by a GUI. Now, I am aware of the if(InvokeRequire) { EventHandler d = new...
6
by: Dom | last post by:
I'm teaching myself about delegates and the Invoke method, and I have a few newbie questions for the gurus out there: Here are some CSharp statements: 1. public delegate void MyDelegate (int k,...
2
by: =?Utf-8?B?a2VubmV0aG1Abm9zcGFtLm5vc3BhbQ==?= | last post by:
vs2005, c# Trying to understand why one way works but the other doesnt. I have not tried to create a simpler mdi/child/showdialog app for posting purposes (I think even this would not be so small...
3
balabaster
by: balabaster | last post by:
I have a class that I want to make thread-safe and am investigating the ISyncronizeInvoke interface and wondering just what it will take to implement this interface. So far the basic concept of my...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.