Re: Dont want Intermediate language



Neo <neoscandal@xxxxxxxxx> wrote in news:Xns978462B4D31B7Neo@
81.174.50.80:

"John Carson" <jcarson_n_o_sp_am_@xxxxxxxxxxxxxxx> wrote in
news:#OsHu88QGHA.5584@xxxxxxxxxxxxxxxxxxxx:

"Neo" <neoscandal@xxxxxxxxx> wrote in message
news:Xns9781E178DB15ANeo@xxxxxxxxxxxx
"Carl Daniel [VC++ MVP]"
<cpdaniel_remove_this_and_nospam@xxxxxxxxxxxxxxx> wrote in
news:#UquMQ5QGHA.1728@xxxxxxxxxxxxxxxxxxxx:

Neo wrote:
I recently wrote win32 C++ code for a SFX creator/extractor exe..
which compiled with Bloodshed Devc++ churns out 26 kb under full
optimisations.

I have VC.Net 2005 'express edition' installed. Can i in anyway
complie my code using this.. I want it to be converted straight to
exe and not the 'intermediate language' used by .net.

Sure, just compile it as a Win32 application and it won't be
managed
code. You'll probably have to download and install the Platform SDK
in order to build it.

-cd




It does not seem to support .rc files. I want my sfx exe to be as
small as possible.


It absolutely does support .rc files. There is no WYSIWYG resource
editor, so you have to either type out the .rc files manually or use
some third party tool to generate them, but once the .rc file has
been
made, VC++ Express will certainly compile it.

The following successfully compiles for me using VC++ Express (beware
of word wrapping in the following lines; in particular, string
literals should be on a single line). I have just taken your code and
made minimal changes. There is probably other stuff relating to
language choice and the like that should go in the .rc file. For your
undefined functions, I just added empty brackets or an appropriate
return statement.

Incidentally, you should not be calling ExitProcess in the event of
failure since that stops C++ code from cleaning itself up properly at
exit. Just let WinMain finish by running out of code lines to
execute.


Thanks.

I have ResEd as an external editor. I followed your steps and tried to
complie but got the following errors:
------ Build started: Project: test2, Configuration: Debug Win32
------
Compiling...
main.cpp
Linking...
main.obj : error LNK2019: unresolved external symbol __imp__EndDialog@
8
referenced in function "int __stdcall WndProc(struct HWND__ *,unsigned
int,unsigned int,long)" (?WndProc@@YGHPAUHWND__@@IIJ@Z)

main.obj : error LNK2019: unresolved external symbol
__imp__GetDlgItemTextA@16 referenced in function "int __stdcall
WndProc
(struct HWND__ *,unsigned int,unsigned int,long)" (?
WndProc@@YGHPAUHWND__@@IIJ@Z)

main.obj : error LNK2019: unresolved external symbol
__imp__DialogBoxParamA@20 referenced in function _WinMain@16

main.obj : error LNK2019: unresolved external symbol
__imp__MessageBoxA@
16 referenced in function _WinMain@16
D:\Documents and Settings\Me\My Documents\Visual Studio 2005\Projects
\test2\Debug\test2.exe : fatal error LNK1120: 4 unresolved externals

Build log was saved at "file://d:\Documents and Settings\Me\My
Documents
\Visual Studio 2005\Projects\test2\test2\Debug\BuildLog.htm"
test2 - 5 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========

I do have the platfor SDK installed.. and i have added the bin,lib and
include folders to tools> option> Projects and Solutions >VC++
directories.. under executables files.

Is there any other setting changes i have to make?

Regards


My XP is installed on the D: drive
My VC express dir is: D:\Program Files\Microsoft Visual Studio 8
and PSDK is at :D:\Program Files\Microsoft Platform SDK
.



Relevant Pages

  • Re: Dont want Intermediate language
    ... complie my code using this.. ... just compile it as a Win32 application and it won't be managed ... You'll probably have to download and install the Platform SDK ... main.obj: error LNK2019: unresolved external symbol ...
    (microsoft.public.vc.language)
  • Re: Going From MFC to .NET
    ... Now the problem is that when I try to compile a debug or release vr. ... format; library ignored ... HardDriveTest.obj: error LNK2001: unresolved external symbol "unsigned ...
    (microsoft.public.vc.mfc)
  • Re: Compiling CERDISP.exe
    ... At his point I get linking errors. ... directory for files to compile. ... cerdisp.obj: error LNK2019: unresolved external symbol GetMessageW ... DispatchMessageW referenced in function WinMain ...
    (microsoft.public.windowsce.platbuilder)
  • problem of link
    ... I try to compile my mex file, but there are link error. ... encore.obj: error LNK2001: unresolved external symbol ...
    (comp.soft-sys.matlab)
  • RE: Database hang when a form is open
    ... How do i know if the program can be complie? ... The database needs to be compiled to work properly as a split database. ... If it does not compile, ... workstation WinXp and one on my workstation Win Vista. ...
    (microsoft.public.access.forms)