T O P I C R E V I E W |
AndreasS |
Posted - Aug 30 2012 : 04:43:02 AM This case is a little bit special. The context edit-control in the toolbox above the code window in Visual Studio2010 shows the wrong context, if the cursor is in front of a space before int j2; It seems that VA has a problem with the double marco resolving. Visual Studio 10 (also 2008), C++ Native. VA=10.7.1912
It shows "f.BRC.try.try.BRC " It should shows "f "
class TixException { public: TixException(); };
#define os_readonly 1
class OsTransaction { public: class NoTransactionException { public: NoTransactionException(); };
public: OsTransaction(int mode); void Commit(); bool HasCommitted(); void Abort(TixException& e); };
#define os_begin_txn_( mode ) \ { \ bool _bHasCommitted = false; \ try{ \ OsTransaction transaction( mode ); \ try{ \ {
#define os_end_txn_has_committed(pbHasCommitted) \ } \ transaction.Commit(); \ (void) _bHasCommitted; \ if (pbHasCommitted) \ *(pbHasCommitted) = transaction.HasCommitted(); \ } \ catch( TixException& e ){ \ if (pbHasCommitted) \ *(pbHasCommitted) = transaction.HasCommitted(); \ transaction.Abort(e); \ } \ } \ catch(OsTransaction::NoTransactionException){ \ } \ }
#define os_end_txn_() \ os_end_txn_has_committed(&_bHasCommitted)
void f() { bool b; int j0;
os_begin_txn_(os_readonly) {
} os_end_txn_has_committed(&b);
int j1;
os_begin_txn_(os_readonly) {
} os_end_txn_();
int j2; }
|
3 L A T E S T R E P L I E S (Newest First) |
feline |
Posted - Aug 31 2012 : 09:39:29 AM To send a screen shot, if you are creating a "New Topic" then look for the option "Insert an Image", at the bottom of the edit control where you type the topic description.
This will let you attach a .gif, .jpg, .jpeg, or .png image, with a maximum size of 100KB.
If you are replying to a forum topic, then instead of using the "Quick Reply" field at the bottom of the topic, use the "Reply to Topic" link, to get the full reply options, including the "Insert an Image" link.
When posting code, again use the "Reply to Topic" link, which will give you the formatting controls. Select the code in your reply and press the # button in the Format section, which is the "Insert Code" button. This will wrap the code in [ code ] [ /code ] tags.
I hope this all makes sense and is clear :) |
AndreasS |
Posted - Aug 31 2012 : 03:32:19 AM Thank you, that hepls.
Is it posible to send screenshot to the forum? And how can I send code examples with tab characters, so it is more read frindly?
|
feline |
Posted - Aug 30 2012 : 4:21:59 PM Can you please try enabling deep macro parsing, as explained in this FAQ entry:
http://docs.wholetomato.com?W363
this has fixed this problem for me, so hopefully this will help you. |
|
|