Click here to Skip to main content
16,010,268 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Still the same linker errors Pin
Christian Graus28-Aug-05 20:21
protectorChristian Graus28-Aug-05 20:21 
GeneralRe: Still the same linker errors Pin
S Douglas29-Aug-05 0:17
professionalS Douglas29-Aug-05 0:17 
Questionfunction mysql_list_dbs() in mysql Pin
includeh1028-Aug-05 14:04
includeh1028-Aug-05 14:04 
QuestionCSplitterWnd in CMDIFrameWnd NOT CChildFrame Pin
vasanth100428-Aug-05 11:52
vasanth100428-Aug-05 11:52 
AnswerRe: CSplitterWnd in CMDIFrameWnd NOT CChildFrame Pin
Intangir29-Aug-05 11:08
Intangir29-Aug-05 11:08 
QuestionRe: CSplitterWnd in CMDIFrameWnd NOT CChildFrame Pin
LionAM22-Nov-05 3:34
LionAM22-Nov-05 3:34 
QuestionAnyone using QuickPDF? Pin
davem9928-Aug-05 11:50
professionaldavem9928-Aug-05 11:50 
Questionlinker options casts out "new" Pin
Spiritofamerica28-Aug-05 10:32
Spiritofamerica28-Aug-05 10:32 
hello

I have a question

In order to make smaller exes I use some linker options
that I got form somewhere I forgot from where
I understand pretty much what they do exept one :
#pragma comment(linker,"/base:0x13140000")
Anyway that is besides the point

I put these options:
#pragma optimize("gsy",on)
#pragma comment(linker,"/RELEASE")
#pragma comment(linker,"/ENTRY:main")
#pragma comment(linker,"/MERGE:.rdata=.data")
#pragma comment(linker,"/MERGE:.text=.data")
#pragma comment(linker,"/MERGE:.reloc=.data")
#pragma comment(linker,"/SECTION:.text,EWR /IGNORE:4078")
#pragma comment(linker,"/FILEALIGN:0x200")
#pragma comment(linker,"/base:0x13140000")
#pragma comment(linker,"/stub:stub.exe")

in a vc 7 win32 empty project

and when i put this:
void main()
{
char * ce_scrie=new char[100];
}
the project is buildable but then it gives out a error of the debug don't send kind(you know) and when I debug it I get a wierd error I have yet to see

Unhandled exception at 0x77f5171c in versiune_de_ie.exe: 0xC0000005: Access violation reading location 0x00000010.

the same stuff with vc 6 gets me this:

C:\Program Files\Microsoft Visual Studio\MyProjects\SmallVcExe\SmallVcExe.c(31) : error C2065: 'new' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\SmallVcExe\SmallVcExe.c(31) : warning C4047: 'initializing' : 'char *' differs in levels of indirection from 'int '
C:\Program Files\Microsoft Visual Studio\MyProjects\SmallVcExe\SmallVcExe.c(31) : error C2143: syntax error : missing ';' before 'type'
C:\Program Files\Microsoft Visual Studio\MyProjects\SmallVcExe\SmallVcExe.c(31) : error C2143: syntax error : missing ';' before '['
C:\Program Files\Microsoft Visual Studio\MyProjects\SmallVcExe\SmallVcExe.c(31) : warning C4091: ' ' : ignored on left of 'char ' when no variable is declared

why is this?
Questionprinting a sid Pin
Spiritofamerica28-Aug-05 10:31
Spiritofamerica28-Aug-05 10:31 
AnswerRe: printing a sid Pin
Jose Lamas Rios28-Aug-05 12:41
Jose Lamas Rios28-Aug-05 12:41 
GeneralRe: printing a sid Pin
Spiritofamerica28-Aug-05 21:45
Spiritofamerica28-Aug-05 21:45 
GeneralRe: printing a sid Pin
James Brown29-Aug-05 2:42
James Brown29-Aug-05 2:42 
GeneralRe: printing a sid Pin
Spiritofamerica31-Aug-05 10:40
Spiritofamerica31-Aug-05 10:40 
GeneralRe: printing a sid Pin
James Brown31-Aug-05 22:24
James Brown31-Aug-05 22:24 
Questioncontext menu for two listctrls Pin
Aditya Rao28-Aug-05 7:13
Aditya Rao28-Aug-05 7:13 
AnswerRe: context menu for two listctrls Pin
Steve Mayfield28-Aug-05 10:18
Steve Mayfield28-Aug-05 10:18 
QuestionC2653 Compiler error Pin
fenixk1928-Aug-05 5:43
fenixk1928-Aug-05 5:43 
AnswerRe: C2653 Compiler error Pin
Achim Klein28-Aug-05 12:41
Achim Klein28-Aug-05 12:41 
AnswerRe: C2653 Compiler error Pin
fenixk1929-Aug-05 0:17
fenixk1929-Aug-05 0:17 
GeneralRe: C2653 Compiler error Pin
Achim Klein29-Aug-05 1:02
Achim Klein29-Aug-05 1:02 
GeneralRe: C2653 Compiler error Pin
fenixk1929-Aug-05 2:04
fenixk1929-Aug-05 2:04 
GeneralRe: C2653 Compiler error Pin
Achim Klein29-Aug-05 2:40
Achim Klein29-Aug-05 2:40 
Questionhow to deal with SafeArrayDestroy error? Pin
liuyue28-Aug-05 2:49
liuyue28-Aug-05 2:49 
AnswerRe: how to deal with SafeArrayDestroy error? Pin
Jose Lamas Rios28-Aug-05 6:59
Jose Lamas Rios28-Aug-05 6:59 
GeneralRe: how to deal with SafeArrayDestroy error? Pin
liuyue28-Aug-05 14:40
liuyue28-Aug-05 14:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.