| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| xDarkStarrx How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 06 Apr 2016
 Posts: 2
 
 
 | 
			
				|  Posted: Tue Mar 28, 2017 8:46 pm    Post subject: Source Compile Error |   |  
				| 
 |  
				| I wanted to make an UD CE and upon compiling I got these three errors. 
 I'm also using Lazarus 1.6.4 and the source for 6.5
 
 I'm probably just overlooking something but I appreciate all the help I receive.
 
  	  | Code: |  	  | OutputDebugString('socket='+inttostr(socket)); 
 SockAddr.Family := AF_INET;
 SockAddr.Port := port;
 SockAddr.Addr := host.s_addr;
 
 B:=TRUE;
 
 | 
 
  	  | Code: |  	  | networkInterface.pas(1801,12) Error: identifier idents no member "Family" networkInterface.pas(1802,12) Error: identifier idents no member "Port"
 networkInterface.pas(1803,12) Error: identifier idents no member "Addr"
 
 | 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dark Byte Site Admin
 
  Reputation: 470 
 Joined: 09 May 2003
 Posts: 25807
 Location: The netherlands
 
 | 
			
				|  Posted: Wed Mar 29, 2017 1:44 am    Post subject: |   |  
				| 
 |  
				| Use an older lazarus, or use the source for 6.6 _________________
 
 Do not ask me about online cheats. I don't know any and wont help finding them.
 Like my help? Join me on Patreon so i can keep helping
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| xDarkStarrx How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 06 Apr 2016
 Posts: 2
 
 
 | 
			
				|  Posted: Wed Mar 29, 2017 8:39 am    Post subject: |   |  
				| 
 |  
				| I changed to 6.6 source and got this error 
 
  	  | Code: |  	  | SurfaceList:=tlist.create; 
 GlobalDesignHook:=TPropertyEditorHook.Create;
 GlobalDesignHook.AddHandlerCreateMethod(onCreateMethod);
 GlobalDesignHook.AddHandlerGetMethodName(ogm);
 GlobalDesignHook.AddHandlerGetMethods(onGetMethods);
 | 
 
  	  | Code: |  	  | formdesignerunit.pas(581,47) Error: Incompatible type for arg no. 1: Got "TFormDesigner.ogm(const TMethod;TObject):AnsiString;", expected "<procedure variable type of function(const TMethod;TObject;TPersistent):AnsiString of object;Register>" | 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dark Byte Site Admin
 
  Reputation: 470 
 Joined: 09 May 2003
 Posts: 25807
 Location: The netherlands
 
 | 
			
				|  Posted: Wed Mar 29, 2017 11:20 am    Post subject: |   |  
				| 
 |  
				| fix it, or use lazarus 1.6.2 or 1.6.0 _________________
 
 Do not ask me about online cheats. I don't know any and wont help finding them.
 Like my help? Join me on Patreon so i can keep helping
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| frakita How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 12 Oct 2019
 Posts: 1
 
 
 | 
			
				|  Posted: Sat Oct 12, 2019 12:03 pm    Post subject: This seems to solve your first issue |   |  
				| 
 |  
				| I got that error solved this way: 
 [/code] 	  | Code: |  	  | SockAddr.sin_family := AF_INET; SockAddr.sin_port := port;
 SockAddr.sin_addr.s_addr := host.s_addr;
 | 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  |