Re: Dont want Intermediate language
- From: Neo <neoscandal@xxxxxxxxx>
- Date: Sun, 12 Mar 2006 04:21:07 +0000 (UTC)
Neo <neoscandal@xxxxxxxxx> wrote in news:Xns978462B4D31B7Neo@
81.174.50.80:
"John Carson" <jcarson_n_o_sp_am_@xxxxxxxxxxxxxxx> wrote inmanaged
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
beencode. 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
execute.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
------
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...8
main.cpp
Linking...
main.obj : error LNK2019: unresolved external symbol __imp__EndDialog@
referenced in function "int __stdcall WndProc(struct HWND__ *,unsignedWndProc
int,unsigned int,long)" (?WndProc@@YGHPAUHWND__@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol
__imp__GetDlgItemTextA@16 referenced in function "int __stdcall
(struct HWND__ *,unsigned int,unsigned int,long)" (?__imp__MessageBoxA@
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
16 referenced in function _WinMain@16Documents
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
\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
.
- References:
- Dont want Intermediate language
- From: Neo
- Re: Dont want Intermediate language
- From: Carl Daniel [VC++ MVP]
- Re: Dont want Intermediate language
- From: Neo
- Re: Dont want Intermediate language
- From: John Carson
- Re: Dont want Intermediate language
- From: Neo
- Dont want Intermediate language
- Prev by Date: Re: Dont want Intermediate language
- Next by Date: Re: setup for linked list
- Previous by thread: Re: Dont want Intermediate language
- Next by thread: Re: Dont want Intermediate language
- Index(es):
Relevant Pages
|