Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Help me with C++ (Developers)

posted by Pablo, 07.06.2010, 01:28

>... May be better use some kind of attribute
> packed and put all vars into a packed structue. Then you will be safe that
> any extra bytes was added.
ok, this is the solution, but when compiling:
Line 1 ... Struct x{
Line 2 ... int a;
Line 3 ... int b;
Line 4 ... int c:
Line 5 ... } y;
Line 6 ... asm mov ax,seg y

it keep the following error to me: Error ... Line 6 Expression syntax

As I can obtain the segment and offset of a variable with structure ?

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 309 users online (1 registered, 308 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum