Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 1649: VA outline - problems moving code
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2084 Posts

Posted - Dec 04 2008 :  11:23:30 AM  Show Profile  Reply with Quote
		[DllImport("advapi32")]
		[return: MarshalAs(UnmanagedType.Bool)]
		public static extern bool ControlService(IntPtr hService, ServiceControl dwControl, ref ServiceStatus lpServiceStatus);

		[StructLayout(LayoutKind.Sequential)]
		public struct ServiceStatus
		{
			ScServiceType		dwServiceType;
			ServiceState		dwCurrentState;
			ServiceAccept		dwControlsAccepted;
			int			dwWin32ExitCode;
			int			dwServiceSpecificExitCode;
			uint			dwCheckPoint;
			uint			dwWaitHint;
		}


With the code above, select ControlService in the VA Outline window and move the code to another place in the source. The attributes are totally off now, instead of taking the [DllImport] and [return:] attributes with it, it takes the [StructLayout]. Bad, very bad.

accord
Whole Tomato Software

United Kingdom
3277 Posts

Posted - Dec 04 2008 :  1:31:05 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=7606
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Dec 21 2013 :  01:34:25 AM  Show Profile  Reply with Quote
case=7606 is fixed in build 2023.
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2084 Posts

Posted - Jan 04 2014 :  06:35:50 AM  Show Profile  Reply with Quote
quote:
Originally posted by sean

case=7606 is fixed in build 2023.



What a shame! Now that I am no longer active as developer you fix all the bugs. Almost makes me come back just to find some more bugs to keep you busy
Go to Top of Page

foxmuldr
Tomato Guru

USA
314 Posts

Posted - Jan 04 2014 :  08:57:08 AM  Show Profile  Reply with Quote
quote:
Originally posted by UniwaresWhat a shame! Now that I am no longer active as developer you fix all the bugs. Almost makes me come back just to find some more bugs to keep you busy




We would welcome you back as we can always use more excellent developers. :-)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000