Click here to Skip to main content
15,915,509 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Error handling - a best way Pin
David Crow17-Jan-08 2:31
David Crow17-Jan-08 2:31 
GeneralRe: Error handling - a best way Pin
CPallini17-Jan-08 3:32
mveCPallini17-Jan-08 3:32 
GeneralRe: Error handling - a best way Pin
Nishad S16-Jan-08 23:56
Nishad S16-Jan-08 23:56 
GeneralRe: Error handling - a best way Pin
CodingLover17-Jan-08 0:33
CodingLover17-Jan-08 0:33 
GeneralRe: Error handling - a best way Pin
Nishad S17-Jan-08 0:53
Nishad S17-Jan-08 0:53 
GeneralRe: Error handling - a best way Pin
James R. Twine17-Jan-08 4:11
James R. Twine17-Jan-08 4:11 
GeneralRe: Error handling - a best way Pin
CodingLover17-Jan-08 15:09
CodingLover17-Jan-08 15:09 
Generalcompile error about void* Pin
George_George16-Jan-08 21:10
George_George16-Jan-08 21:10 
Hello everyone,


What is wrong with the code, I just want to allocate an array of 100 void* pointers. Smile | :)

int main()
{
	void** p;

	p = new (void*) [100];

	return 0;
}


d:\visual studio 2008\projects\test_void1\test_void1\main.cpp(5) : error C2143: syntax error : missing ';' before '['
d:\visual studio 2008\projects\test_void1\test_void1\main.cpp(5) : error C3409: empty attribute block is not allowed
d:\visual studio 2008\projects\test_void1\test_void1\main.cpp(5) : error C2143: syntax error : missing ']' before 'constant'
d:\visual studio 2008\projects\test_void1\test_void1\main.cpp(5) : error C2143: syntax error : missing ';' before 'constant'
d:\visual studio 2008\projects\test_void1\test_void1\main.cpp(5) : error C2143: syntax error : missing ';' before ']'
d:\visual studio 2008\projects\test_void1\test_void1\main.cpp(5) : error C2143: syntax error : missing ';' before ']'


thanks in advance,
George
GeneralRe: compile error about void* Pin
Cedric Moonen16-Jan-08 21:20
Cedric Moonen16-Jan-08 21:20 
GeneralRe: compile error about void* Pin
George_George16-Jan-08 21:58
George_George16-Jan-08 21:58 
QuestionRe: compile error about void* Pin
David Crow17-Jan-08 2:34
David Crow17-Jan-08 2:34 
GeneralRe: compile error about void* Pin
George_George17-Jan-08 2:48
George_George17-Jan-08 2:48 
GeneralRe: compile error about void* Pin
David Crow17-Jan-08 3:13
David Crow17-Jan-08 3:13 
GeneralRe: compile error about void* Pin
George_George17-Jan-08 3:29
George_George17-Jan-08 3:29 
QuestionRe: compile error about void* Pin
David Crow17-Jan-08 3:40
David Crow17-Jan-08 3:40 
GeneralRe: compile error about void* Pin
George_George17-Jan-08 3:30
George_George17-Jan-08 3:30 
GeneralRe: compile error about void* Pin
David Crow17-Jan-08 3:35
David Crow17-Jan-08 3:35 
GeneralRe: compile error about void* Pin
George_George17-Jan-08 3:39
George_George17-Jan-08 3:39 
GeneralRe: compile error about void* Pin
David Crow17-Jan-08 3:45
David Crow17-Jan-08 3:45 
GeneralRe: compile error about void* Pin
George_George17-Jan-08 3:55
George_George17-Jan-08 3:55 
GeneralRe: compile error about void* Pin
James R. Twine17-Jan-08 3:59
James R. Twine17-Jan-08 3:59 
GeneralRe: compile error about void* Pin
George_George17-Jan-08 4:10
George_George17-Jan-08 4:10 
GeneralRe: compile error about void* Pin
Hamid_RT17-Jan-08 18:14
Hamid_RT17-Jan-08 18:14 
GeneralRe: compile error about void* Pin
George_George17-Jan-08 19:06
George_George17-Jan-08 19:06 
GeneralRe: compile error about void* Pin
Hamid_RT18-Jan-08 19:01
Hamid_RT18-Jan-08 19:01 

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.