Forum > General
Some beginners problems
TykeBSD:
Hi
I've just downloaded Lazarus this evening and started to play. I program in Delphi for a living so I am familiar with Pascal. I have three problems that I'm hoping someone can help me out with. I have downloaded the source snapshot to try to fix things but this did not help and finally I'm using winXP.
1. When I try to run a simple application the three compile consoles open and close as they do when I build. The messages window reports a successful build, and the console looks like this:
> [TCompiler.Compile] end
> NOTE: No debugger defined. Starting program without debugging ...
> EXECUTING "D:\Source\FiF\fif.exe"
> WorkingDir "D:\Source\FiF\"
> [TMainIDE.DoRunProject] END
unfortunately my application does not start, any ideas what I've missed off?
2. One of the controls I've dragged onto my form is a string grid. Every time I open the project the grid has forgotten it location and size and appears in the top left corner of the form. I think this may be a bug as it remembers the anchor settings I've specified.
3. I have a combobox on the same form and I'm trying to add some functionality to the OnKeyDown function. I'm interested when the enter key is pressed so I have a line 'if key = VK_RETURN then'. This will not compile as VK_RETURN identifier is not found. Any ideas how I make it find this?
Any help will be appreciated, I think I'll be impressed if I can get this to compile.
TykeBSD
PS Sorry for the long post!
TykeBSD:
Hi, me again
As a follow up I've solved problem 3, I needed to use the LCLType unit to get VK_RETURN.
Also with problem 2, if I do not resize the TStringGrid it save the location I place it in. If I resize the component the location get reset to 0,0 and the old size when I reload the project.
TykeBSD
Marc:
About 1)
I'm not a win32 user, but if I recall it right this is a know issue. Since you can't debug on win32 at the moment, just fire your app from another cdm line.
Vincent Snijders:
--- Quote from: "Marc" ---About 1)
I'm not a win32 user, but if I recall it right this is a know issue. Since you can't debug on win32 at the moment, just fire your app from another cdm line.
--- End quote ---
With the current cvs-version running a app from the IDE is possible, when you set the debugger to none.
If yoe set the debugger to a recent gdb (I tried with gdb 6.0), the IDE fist gives a error message and than hangs with a lots of messages:
[TCmdLineDebugger] Debug PID: 888
ToDo: implement WaitForHandles for this OS
[TCmdLineDebugger.Getoutput] Error waiting
[TDebugManager.OnDebuggerChangeState] state: dsError
Ooops, the debugger entered the error state
After closing the messagebox I get a lot of repeated lines in the console:
ToDo: implement WaitForHandles for this OS
Marc, would it be very difficult to implement WaitForHandles for win32?
Marc:
--- Quote from: "Vincent" ---
Marc, would it be very difficult to implement WaitForHandles for win32?
--- End quote ---
Nope, I'll have a look.
Navigation
[0] Message Index
[#] Next page