Re: How to interface with C++ in ASP?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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






.



Relevant Pages

  • Re: How to interface with C++ in ASP?
    ... environment you're using that matches the settings found in SOURCES. ... There's an option for the resource compiler that causes extra NULLs to be ...
    (microsoft.public.windowsce.app.development)
  • Re: What is Forth?
    ... the target, and then tell me why those aren't advantages for seaForth. ... But now there is Forth hardware, ... support both a Forth development environment and the target application. ... My only point was that he said he wanted to put Forth compiler into ...
    (comp.lang.forth)
  • Re: HLA v2.x and / or LASM suggestion: Win32 Resources
    ... > With Microsoft's RC compiler, I've just noticed that it's less capable ... > binary resource converted into readable, ... selecting the particular assembler syntax you want to output for. ... > are using that RC compiler via HLA or whatever;)... ...
    (alt.lang.asm)
  • HLA v2.x and / or LASM suggestion: Win32 Resources
    ... With Microsoft's RC compiler, I've just noticed that it's less capable ... binary resource converted into readable, ... possible to create an icon or bitmap on-the-fly in the actual program ... make a separate tool and then all of them can share ...
    (alt.lang.asm)
  • Re: Clang error make buildworld
    ... # CFLAGS controls the compiler settings used when compiling C code. ... # or supported for compiling the world or the kernel - please revert any ... # CXXFLAGS controls the compiler settings used when compiling C++ code. ... # The list of languages and encodings to build and install ...
    (freebsd-current)