hello,
i want to create a user mode DLL (which exports a few functions) using
‘sources’ file. even though a DLL is being created it gives me invalid
memory access error on usage. but the DLL created using cl and link from
command line works fine. have gone through DDK sample sources file for
creating a DLL.
also where would i find all the info for writing a ‘sources’ file for
building a program, DLL, system DLL, driver etc. am on w2k and using w2k
DDK.
help. thanks in advance.
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Hi,
You can get all the information regarding sources file in the DDK
documentation. If you have the DDK documentation installed then just check
out the section 2.3. It describes the sources file in detail.
Regards.
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
thanks.
here’s my problem. i can build the dll (which exports some functions) and
the corresponding lib. i can also build the app (using sources file) which
links with the lib. when i run the app, i get the following error:
<< The instruction at “0x77fc04ac” referenced memory at “0x00000010”. The
memory could not be “read”. >>
i’ve tried building the dll as well as the app from the command line using
cl (not in checked environment). this works fine. can’t figure out what may
be wrong. am attaching the sources file for both the DLL and the app.
how do i debug dlls since they don’t allow printfs ?
i’m on w2k and using visual studio 6.0
please help.
regards.
=======================================
‘sources’ for dll
TARGETNAME=test
TARGETPATH=…\bin\lib
UMTYPE=windows
TARGETTYPE=DYNLINK
DLLDEF=test.def
TARGETLIBS=$(TARGETLIBS) $(SDK_LIB_PATH)\kernel32.lib
MSC_WARNING_LEVEL=/W3
INCLUDES=…\include
SOURCES=test.c
=======================================
‘sources’ for the app
TARGETNAME=testapp
TARGETPATH=…\bin\app
TARGETTYPE=PROGRAM
INCLUDES=…\include
TARGETLIBS=…\bin\lib*\test.lib
SOURCES=testapp.c
UMTYPE=console
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Hi,
Why can’t you use the MSDEV studio IDE to build your
application and dll ?
If you do so, then you can debug and hit the exact
location that caused the problem. Dll can be debugged
using MSDEV studio IDE.
When you are stepping through the application, you can
also step into the functions that reside in your dll
in the same debug session.
Take “Win32 console application” project to build your
application, and take “Win32 Dynamic-Link library”
project to build your dll.
Good luck,
Jayadev
— xxxxx@yahoo.com wrote:
thanks.
here’s my problem. i can build the dll (which
exports some functions) and
the corresponding lib. i can also build the app
(using sources file) which
links with the lib. when i run the app, i get the
following error:
<< The instruction at “0x77fc04ac” referenced memory
at “0x00000010”. The
memory could not be “read”. >>
i’ve tried building the dll as well as the app from
the command line using
cl (not in checked environment). this works fine.
can’t figure out what may
be wrong. am attaching the sources file for both the
DLL and the app.
how do i debug dlls since they don’t allow printfs ?
i’m on w2k and using visual studio 6.0
please help.
regards.
=======================================
‘sources’ for dll
TARGETNAME=test
TARGETPATH=…\bin\lib
UMTYPE=windows
TARGETTYPE=DYNLINK
DLLDEF=test.def
TARGETLIBS=$(TARGETLIBS) > $(SDK_LIB_PATH)\kernel32.lib
MSC_WARNING_LEVEL=/W3
INCLUDES=…\include
SOURCES=test.c
=======================================
‘sources’ for the app
TARGETNAME=testapp
TARGETPATH=…\bin\app
TARGETTYPE=PROGRAM
INCLUDES=…\include
TARGETLIBS=…\bin\lib*\test.lib
SOURCES=testapp.c
UMTYPE=console
You are currently subscribed to ntdev as:
xxxxx@yahoo.com
To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> Why can’t you use the MSDEV studio IDE to build your
application and dll ?
If you do so, then you can debug and hit the exact
location that caused the problem. Dll can be debugged
using MSDEV studio IDE.
DLL built by SOURCES is also such.
Max
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com