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

Managed C++/CLI

 
AnswerRe: Sizeof out of scope? Pin
Richard MacCutchan8-May-10 8:59
mveRichard MacCutchan8-May-10 8:59 
AnswerRe: Sizeof out of scope? Pin
Xpnctoc8-May-10 17:54
Xpnctoc8-May-10 17:54 
GeneralRe: Sizeof out of scope? Pin
Michel Godfroid8-May-10 20:15
Michel Godfroid8-May-10 20:15 
GeneralRe: Sizeof out of scope? Pin
Xpnctoc9-May-10 12:18
Xpnctoc9-May-10 12:18 
GeneralRe: Sizeof out of scope? Pin
Richard MacCutchan9-May-10 22:12
mveRichard MacCutchan9-May-10 22:12 
GeneralRe: Sizeof out of scope? Pin
Xpnctoc10-May-10 4:30
Xpnctoc10-May-10 4:30 
GeneralRe: Sizeof out of scope? Pin
Richard MacCutchan10-May-10 5:15
mveRichard MacCutchan10-May-10 5:15 
GeneralRe: Sizeof out of scope? Pin
Xpnctoc10-May-10 5:47
Xpnctoc10-May-10 5:47 
The actual query I'm using is what I originally listed:

? sizeof(bool)

rather than

? sizeof(boolean_variable)


To reproduce what I'm getting:

1. Make a new project: C++, CLR, Windows Forms Application
2. Double-click the form to generate the Form_Load event.
3. Put a break point on the closing brace of the Form_Load event handler method.
4. Run the application.
5. When the break point is hit, bring up the Immediate window and type "? sizeof(bool)" (without the quotes, of course)
6. Result is: "error: identifier 'sizeof' is out of scope"

If you take identical steps but use a C# project, you will get an output of "1". Michel had mentioned that we should expect the error message in unmanaged C++, but from the steps I've outlined above, we're not dealing with unmanaged C++. We're dealing with CLR-aware C++, so it seems to me we should have the same .NET support as C#.

BTW, this is under VS 2008 (and Windows 7 64-bit if that makes a difference).
GeneralRe: Sizeof out of scope? Pin
Richard MacCutchan10-May-10 6:13
mveRichard MacCutchan10-May-10 6:13 
QuestionIncorporating a jpg image in .exe file Pin
Invinci5-May-10 1:31
Invinci5-May-10 1:31 
AnswerRe: Incorporating a jpg image in .exe file Pin
Andreoli Carlo5-May-10 5:04
professionalAndreoli Carlo5-May-10 5:04 
QuestionBasic memory management problem Pin
randomVariable30-Apr-10 4:31
randomVariable30-Apr-10 4:31 
QuestionMessage Removed Pin
29-Apr-10 23:56
arun_pk29-Apr-10 23:56 
AnswerRe: List View Column delete Pin
Andreoli Carlo30-Apr-10 4:34
professionalAndreoli Carlo30-Apr-10 4:34 
QuestionProblems creating Native C++ object from within C++/CLI [modified] Pin
smea29-Apr-10 8:56
smea29-Apr-10 8:56 
AnswerRe: Problems creating Native C++ object from within C++/CLI Pin
Michel Godfroid30-Apr-10 0:14
Michel Godfroid30-Apr-10 0:14 
GeneralRe: Problems creating Native C++ object from within C++/CLI Pin
smea5-May-10 3:21
smea5-May-10 3:21 
AnswerRe: Problems creating Native C++ object from within C++/CLI Pin
Michel Godfroid5-May-10 3:23
Michel Godfroid5-May-10 3:23 
Questionrun , show and application in my project and handle its forms Pin
iman_kh28-Apr-10 3:45
iman_kh28-Apr-10 3:45 
AnswerRe: run , show and application in my project and handle its forms Pin
Xeqtr28-Apr-10 7:14
Xeqtr28-Apr-10 7:14 
QuestionDynamic label text? Pin
Lucidation26-Apr-10 9:52
Lucidation26-Apr-10 9:52 
AnswerRe: Dynamic label text? Pin
Richard MacCutchan26-Apr-10 11:38
mveRichard MacCutchan26-Apr-10 11:38 
QuestionHow to calculate MPEG1/2 Video RTP Packet Timestamp field Pin
vijaysinh.vansadia22-Apr-10 22:57
vijaysinh.vansadia22-Apr-10 22:57 
QuestionBinaryWriter writes empty file Pin
KlaasVersteeg20-Apr-10 21:43
KlaasVersteeg20-Apr-10 21:43 
AnswerRe: BinaryWriter writes empty file Pin
KlaasVersteeg20-Apr-10 21:46
KlaasVersteeg20-Apr-10 21:46 

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.