Click here to Skip to main content

C / C++ / MFC

    RSS: RSS Feed

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
Questionusing WPF in MFC applcation. PinmemberAnu_Bala22:52 22 Nov '09  
Questionis it possible to handle voice messages in vc++6.0 Pinmembereswar pothula21:47 22 Nov '09  
AnswerRe: is it possible to handle voice messages in vc++6.0 PinmemberRichard MacCutchan22:20 22 Nov '09  
GeneralRe: is it possible to handle voice messages in vc++6.0 Pinmembereswar pothula2:02 23 Nov '09  
GeneralRe: is it possible to handle voice messages in vc++6.0 PinmemberRichard MacCutchan4:17 23 Nov '09  
AnswerRe: is it possible to handle voice messages in vc++6.0 PinmemberKarstenK22:45 22 Nov '09  
Questionshowing Error Pinmemberraju_Code20:51 22 Nov '09  
Hello Sir
 
This is my source code when i compiled this , its showing some errors ..but i think the code was correct.
 
this is my source
 
#include "stdafx.h"
#include <iostream>
using namespace std;
int main(int argc, _TCHAR* argv[])
{
	static int x __asm("x") = 5;
	__asm(
	"mov eax, x;"
	"shr eax,1;"
	"mov x, eax;"
	);
	cout<<x<<endl;
	return 0;
}
 

error C2143: syntax error : missing ';' before '__asm'
error C2400: inline assembler syntax error in 'opcode'; found '('
error C2400: inline assembler syntax error in 'opcode'; found '('
error C2059: syntax error : ')'

 

Please Replay !!
 

Thanks!!
 
Raju !!!
 

AnswerRe: showing Error PinmvpCedric Moonen21:45 22 Nov '09  
AnswerRe: showing Error PinmemberRichard MacCutchan22:25 22 Nov '09  
QuestionHow to stop BuildScript when there is any error in any project. PinmemberPavan_Putra20:25 22 Nov '09  
AnswerRe: How to stop BuildScript when there is any error in any project. Pinmembertyftyftyf20:34 22 Nov '09  
GeneralRe: How to stop BuildScript when there is any error in any project. PinmemberPavan_Putra20:36 22 Nov '09  
AnswerRe: How to stop BuildScript when there is any error in any project. PinmemberRichard MacCutchan22:30 22 Nov '09  
GeneralRe: How to stop BuildScript when there is any error in any project. PinmemberPavan_Putra22:34 22 Nov '09  
GeneralRe: How to stop BuildScript when there is any error in any project. PinmemberRichard MacCutchan0:33 23 Nov '09  
Questionarray PinmembermyJelly20:10 22 Nov '09  
AnswerRe: array PinmvpCPallini21:44 22 Nov '09  
Questionhi!! Pinmemberemjie20:10 22 Nov '09  
AnswerRe: hi!! Pinmembercool_joy220:26 22 Nov '09  
AnswerRe: hi!! PinmemberPaulraj G20:27 22 Nov '09  
Questionwhy the scroll bars of CEdit control disappeared after redraw? Pinmembercaobo92218:46 22 Nov '09  
QuestionMultiple Select in List Control Pinmemberhellogany18:00 22 Nov '09  
AnswerRe: Multiple Select in List Control PinmvpNaveen18:12 22 Nov '09  
QuestionThe exact size of "string" problem [modified][Solved] Pinmembertyftyftyf17:19 22 Nov '09  
AnswerRe: The exact size of "string" problem [modified] Pinmember«_Superman_»17:25 22 Nov '09  

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

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


Advertise | Privacy | Mobile
Web04 | 2.5.120210.1 | Last Updated 11 Feb 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid