Re: How to interface with C++ in ASP?
- From: Frankie D. <FrankieD@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 22 Mar 2008 04:16:00 -0700
Thank you for your answer.
I have VS2005, Platform Builder, and Win CE 5.0. Is there a way to import
the sample to VS?
"Paul G. Tobey [eMVP]" wrote:
Read the SOURCES file and create a project for whatever development.
environment you're using that matches the settings found in SOURCES. I've
put on my translator hat to point out the most-important of the settings in
SOURCES and what they mean to you. If you don't have any idea how to
accomplish these things with your development environment, you're out of
your depth and need to work on some simpler projects before addressing this
one.
TARGETNAME=Httpadmasp
TARGETTYPE=DYNLINK
The result of building this sample is a DLL called httpadmasp.dll.
RCADDNULL=1
There's an option for the resource compiler that causes extra NULLs to be
added to things like strings. You need to make sure that your resource
compilation does the same.
WINCEATL30=1
The project is based on ATL. Make sure yours is, too.
CDEFINES=$(CDEFINES) -D_ATL_NO_SECURITY
MIDL_FLAGS=$(MIDL_FLAGS) -D_MIDL_USER_MARSHAL_DISABLED=1
This should be obvious, but set the indicated C preprocessor define and the
indicated MIDL define when compiling C and IDL files, respectively.
TARGETDEFNAME=$(TARGETNAME)
DEFFILE=$(TARGETNAME).def
The name of the .DEF file matches the name of the target DLL.
SOURCES= \
admin.idl \
admin_dll.cpp \
StdAfx.cpp \
settings.cpp \
Vroots.cpp \
admin_i.c \
httpadmasp.rc
The indicated files are those to be compiled by the project.
TARGETLIBS=\
$(_PROJECTROOT)\cesysgen\sdk\lib\$(_CPUINDPATH)\coredll.lib \
$(_PROJECTROOT)\cesysgen\sdk\lib\$(_CPUINDPATH)\ole32.lib\
$(_PROJECTROOT)\cesysgen\sdk\lib\$(_CPUINDPATH)\oleaut32.lib\
$(_PROJECTROOT)\cesysgen\sdk\lib\$(_CPUINDPATH)\uuid.lib\
$(_PROJECTROOT)\cesysgen\sdk\lib\$(_CPUINDPATH)\ceosutil.lib\
The indicated libraries need to be linked with the object files generated by
the source files listed above to create the target DLL.
Paul T.
"Frankie D." <FrankieD@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2B6B47D1-43C3-4099-9EA3-A29CBFB005F3@xxxxxxxxxxxxxxxx
But how can I start this kind of project?
How can I create makefile, resources etc.?
f
"Bruce Eitman [eMVP]" wrote:
That is set up to build using the Platform Builder command line tools
(build), although in a recent post on the same subject in the PlatBuilder
newsgroup, I reviewed the code and do not think that it is completely
buildable. It will take the addition of some lib files that are listed
in
Servers\Cesysgen\Makefile.
--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net
Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member
"Frankie D." <FrankieD@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3A8C38E0-0503-4524-8E29-095C27675DBD@xxxxxxxxxxxxxxxx
Hi,
I have a C++ application, and an asp webpage running on the device. To
interface with C++ I should write an ActiveX object. I have found the
following sample:
%_WINCEROOT%\public\servers\sdk\samples\http\asp
But how can I generate such a project? Is there a wizard for it? How to
start? (Where is my .sln ? :-) )
Thanks,
Frankie
- Follow-Ups:
- Re: How to interface with C++ in ASP?
- From: Bruce Eitman [eMVP]
- Re: How to interface with C++ in ASP?
- References:
- Re: How to interface with C++ in ASP?
- From: Bruce Eitman [eMVP]
- Re: How to interface with C++ in ASP?
- From: Paul G. Tobey [eMVP]
- Re: How to interface with C++ in ASP?
- Prev by Date: Re: NdisRegisterAdapter
- Next by Date: Re: NdisRegisterAdapter
- Previous by thread: Re: How to interface with C++ in ASP?
- Next by thread: Re: How to interface with C++ in ASP?
- Index(es):
Relevant Pages
|