Click here to Skip to main content
15,893,588 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Questionerror C2143: syntax error : missing ';' before '*' Pin
Sam Hobbs13-Feb-12 18:56
Sam Hobbs13-Feb-12 18:56 
I am using VS 2010 Professional.

I am getting the error:

error C2143: syntax error : missing ';' before '*'


From:

C#
Unmanaged *pu;


I assume there is something very simple that I am overlooking. This problem can be easily re-created. I re-created it by creating a Visual C++ CLR Class Librsry project. Then I used the Class Wizard to create an unmanaged class called Unmanaged. Then in the managed Class1 class I added the line shown above. Then I built that without any other changes and got the error. I do not understand why.
AnswerRe: error C2143: syntax error : missing ';' before '*' Pin
Richard MacCutchan13-Feb-12 22:34
mveRichard MacCutchan13-Feb-12 22:34 
GeneralRe: error C2143: syntax error : missing ';' before '*' Pin
Sam Hobbs13-Feb-12 23:36
Sam Hobbs13-Feb-12 23:36 
GeneralRe: error C2143: syntax error : missing ';' before '*' Pin
Richard MacCutchan13-Feb-12 23:43
mveRichard MacCutchan13-Feb-12 23:43 
QuestionWhich is better - a long list of potentially null parameters or a Key Value list Pin
Ger Hayden8-Feb-12 4:18
Ger Hayden8-Feb-12 4:18 
AnswerRe: Which is better - a long list of potentially null parameters or a Key Value list Pin
Luc Pattyn8-Feb-12 4:28
sitebuilderLuc Pattyn8-Feb-12 4:28 
GeneralRe: Which is better - a long list of potentially null parameters or a Key Value list Pin
Ger Hayden8-Feb-12 7:47
Ger Hayden8-Feb-12 7:47 
AnswerRe: Which is better - a long list of potentially null parameters or a Key Value list Pin
Luc Pattyn8-Feb-12 8:17
sitebuilderLuc Pattyn8-Feb-12 8:17 
GeneralRe: Which is better - a long list of potentially null parameters or a Key Value list Pin
Ger Hayden8-Feb-12 21:46
Ger Hayden8-Feb-12 21:46 
AnswerRe: Which is better - a long list of potentially null parameters or a Key Value list Pin
Philippe Mori19-Feb-12 2:15
Philippe Mori19-Feb-12 2:15 
QuestionDLL Not getting registered Pin
arc.dream2-Feb-12 22:21
arc.dream2-Feb-12 22:21 
AnswerRe: DLL Not getting registered Pin
Wes Aday8-Feb-12 9:41
professionalWes Aday8-Feb-12 9:41 
AnswerRe: DLL Not getting registered Pin
rana ray14-Feb-12 19:07
rana ray14-Feb-12 19:07 
AnswerRe: DLL Not getting registered Pin
Chandrakantt29-Feb-12 6:29
Chandrakantt29-Feb-12 6:29 
QuestionOTS COM elevation problem standard user not seeing debug messages or writing to the registry Pin
Christine_Irene25-Jan-12 9:33
Christine_Irene25-Jan-12 9:33 
QuestionHow can I get /clr support it's giving errors Pin
appollosputnik24-Jan-12 0:58
appollosputnik24-Jan-12 0:58 
AnswerRe: How can I get /clr support it's giving errors Pin
Wes Aday24-Jan-12 3:18
professionalWes Aday24-Jan-12 3:18 
GeneralRe: How can I get /clr support it's giving errors Pin
appollosputnik24-Jan-12 19:59
appollosputnik24-Jan-12 19:59 
GeneralRe: How can I get /clr support it's giving errors Pin
Wes Aday25-Jan-12 3:05
professionalWes Aday25-Jan-12 3:05 
GeneralRe: How can I get /clr support it's giving errors Pin
appollosputnik26-Jan-12 17:35
appollosputnik26-Jan-12 17:35 
GeneralRe: How can I get /clr support it's giving errors Pin
Wes Aday27-Jan-12 3:28
professionalWes Aday27-Jan-12 3:28 
GeneralRe: How can I get /clr support it's giving errors Pin
Wes Aday27-Jan-12 3:51
professionalWes Aday27-Jan-12 3:51 
AnswerRe: How can I get /clr support it's giving errors Pin
Richard MacCutchan24-Jan-12 3:58
mveRichard MacCutchan24-Jan-12 3:58 
GeneralRe: How can I get /clr support it's giving errors Pin
appollosputnik24-Jan-12 20:00
appollosputnik24-Jan-12 20:00 
GeneralRe: How can I get /clr support it's giving errors Pin
Richard MacCutchan24-Jan-12 22:01
mveRichard MacCutchan24-Jan-12 22: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.