- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 66
- Posts with Upvotes
- 52
- Upvoting Members
- 31
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
119 Posted Topics
Re: > The Netherlands is the largest per CAPITA consumer of cofee averaging 2.4 cups of coffee per person per day. That is a poor/misleading figure. The annual per capita consumption of coffee in Finland is 9.6 kg dry weight compared to 6.7 kg in The Netherlands (and 3.1 kg in … | |
![]() | Re: Not done it exactly this way, but long ago (10+ years) I was involved with a project that used MicroFocus COBOL, although I don't know COBOL. The existing code originated on some other platform and was being ported to Windows. My role was to write DLLs to provide a wrapper … |
I am using an Arduino to prototype a project in which the real time is important. My device has a real time clock and internet access. I have some NTP code I can use to get the current time in GMT and I can apply an offset for the timezone … | |
Re: The GetTickCount function retrieves the number of milliseconds that have elapsed since the system was started, up to 49.7 days Your comment suggests FreeTimer.Interval is 30000. So you set TotalTime, and hence the gauge progress, to the number of milliseconds that have elapsed since the system was started, less 30000. … | |
Re: Without knowing what the program is supposed to do it is difficult to judge if it looks right. However there are one or two things worth commenting on regardless of that. First, I suggest you use meaningful variable names because c, s, t, n, p, f, h, and l tell … | |
![]() | Re: Chris, a good technique to trace errors like this is to simply use a pencil & paper and manually follow the instructions in your code. Set & change the values of your variables as you work through the code and your errors should become apparent. Later you will no doubt … ![]() |
Re: Reverend Jim, is that mandatory? What about a standalone machine with no internet access? Or one with access to an internal network only? What are the claimed advantages of creating the domain account? | |
Kudos for the Favorite Tags and Favorite Forums options on the Finder menu. Are they new? I hadn't seen them before, but they are a significant improvement. They very much improve my view of the new design. Before I saw them I was drifting away but now I am more … ![]() | |
![]() | Re: It is always a good idea to look at the source code in cases like this, if you have the VCL sources in your Delphi version. That way you can trace how the control responds to the double click. Basically what is happening is that TDirectoryListBox fires off the onDblClick … ![]() |
Re: I agree. Although I never posted a lot, I used to visit a few times each day and now I visit once every few days, with the interval between visits getting longer all the time. | |
Re: The Welsh, being inventive people, don't need guns to perform mass murders: [5 killed by fire in Prestatyn](http://www.digitaljournal.com/article/349392) That is of course unusual and I don't mean to suggest that mass murder - or murder generally - is commonplace in Wales, but I am not convinced that lack of guns … | |
Re: http://www.drbob42.com/examines/examin84.htm | |
Re: There is no in-built way to do it so you have to roll your own. There are 2 sides to this problem: To get the data as booleans rather than dates you could probably use `Calculated fields`. To display the data using checkboxes take a look at http://delphi.about.com/od/delphitips2009/qt/dbgrid-checkbox.htm | |
Re: A lot depends on your goals. What are you aiming at? Desktop v Mobile v Web for example can influence your choice. What about your target OS? Also important. Professional v personal developments may mean different choices. It is impossible to answer your question without knowing this sort of information. … | |
Re: If all you want to do is to launch the app then the easiest way is not to find it at all. Just lauch the EXE without specifying its path (for example, Notepad.exe rather than c:\blah\blah\blah\Notepad.exe) and let the OS find it for you. If the EXE is in your … | |
Re: I had a similar problem with my Tosh. I put the machine aside for a few weeks till I had time to look at it and when I came back to it there was no problem starting it. After that it would sometimes start and sometimes not. I have not … | |
Re: I don't see anything obviously wrong with your code so I would look at your data. For example, you check: if not VarIsNull(WS.Cells[X,3].Value) then but what about MillStyle:=WS.Cells[X,2].Value; Can `WS.Cells[X,2].Value` ever be null? What effect would it have if it were null? Also I suggest you step through this in … | |
Re: Think what the value of `List2` is in this line: Writeln(UserFile, Score[List2]); or here: Writeln(UserFile, Score[List2]); You don't initialize List2 to any known value and you never change it. | |
Re: Good that you have something working! That puts you ahead of the game already. Here are some comments on your code and your question. 1. Data encapsulation is an important part of OOP. You have many variables created in the interface var section. Only the hangman variable (the form) needs … | |
Re: There is a nice Marquee component at http://www.delphiarea.com/products/delphi-components/marquee/ It can scroll left or write. All you would need to do is handle its onWrap event and swap its direction, like this: procedure TMainForm.MarqueeWrap(Sender: TObject); begin if Marquee.BiDiMode = bdLeftToRight then Marquee.BiDiMode := bdRightToLeft else Marquee.BiDiMode := bdLeftToRight; Marquee.Reset; end; The … | |
![]() | Re: The population in mid-2013 was England 53.9 (million) Scotland 5.3 Wales 3.1 N Ireland 1.8 source: http://www.ons.gov.uk/ons/rel/pop-estimate/population-estimates-for-uk--england-and-wales--scotland-and-northern-ireland/2013/index.html With 600 seats in parliament divided fairly among the population there would be 1 seat for every 106833 people. Based on this the allocation of seats to countries would be: England 505 Scotland … ![]() |
Re: You want a de-compiler rather than a disassembler. I have seen a few mentioned over the years but have never tried them so can't comment on how good they might be. Google should be able to find them. You could start with: http://delphi.about.com/od/devutilities/a/decompiling_3.htm | |
Re: I don't see anything wrong with this, assuming "'ADDR', 'PORT', 'PASSWORD'" is just dummy data to avoid publishing your real data, and that you enable the timer somewhere. I suggest you put a break point on the first line of both of these routines and step through the code line-by-line … | |
Re: Check if your development environment includes a profiler. You can get a lot of information from a decent profiler. This will help you identify bottlenecks and the profiler will take care of the timing issues for you. | |
Re: You are opening the file twice, once for writing & once for reading. The 2 commands you use are: fp=fopen("test_numbers.dat","w"); fp=fopen("./test_numbers.dat","r"); Perhaps you are trying to read the file in a different folder? Have you tried: fp=fopen("test_numbers.dat","r"); | |
Re: Your bookings record tells you who the booking is for but doesn't tell you what was booked. You need to have another table to cross-reference each booking with the rooms booked. Personally I would put the booking dates into that cross-reference table, so that you can more easily cope with … | |
Re: Start a new project. Add a status bar and set SimplePanel TRUE. Add a TWebBrowser (and set Align alClient). Add this for the form's onCreate event handler: procedure TForm2.FormCreate(Sender: TObject); begin Application.OnMessage := MyMessages; wb1.Navigate('https://www.google.com/'); // Or whatever site you want end; Add a private procedure to the form: procedure … | |
I am using the MySQL C API and having problems defining a stored procedure. MY SQL script works fine in MySQL Workbench but the same script fails in my own software. A test script which shows the problem is: SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; CREATE SCHEMA … | |
Re: A lot depends on how your matrix is defined. If you show the code you have so far, especially the matrix declaration, I'm sure you'll get some help. | |
Re: The Loan Arranger. You could use the Finance icon supplied with Delphi. Not very nice & just a pile of coins, but at least you have it already. | |
Re: Can you use the MyRoomQuery.AfterUpdateExecute event? Put the if ... then goto ... code in a handler for that event? | |
Re: It would be a legitimate thing to do in some circumstances. For example, a kiosk PC which should only allow the user to use one application, with no access to other apps or the OS. | |
Re: Take a look in the Object Inspector at the events for the form. It has OnClick, OnMouseDown, OnMouseUp events that you can use to start/pause/stop the play. The Shift parameter to the OnMouseDown and OnMouseUp event handlers tells you which mouse button was pressed so you could use the left … | |
Re: That is a bit of a vague request. What do you mean by library? A collection of computer code or a place that loans books? What do you want the code to do? I wrote a system that implement 3M's Standard Interchange Protocl for a library automation project. See http://multimedia.3m.com/mws/media/355361O/sip2-protocol.pdf … | |
Re: The declaration is correct, so the problem is elsewhere. I don't have Delphi on this machine so can't test anything at the moment, but one simple problem is your code: if (TCharacter.GetUnicodeCategory(c) <> TUnicodeCategory.ucNonSpacingMark) or (TCharacter.GetUnicodeCategory(c) <> TUnicodeCategory.ucCombiningMark) then This will ALWAYS be true. I guess you meant to write: … | |
Re: I think you'll need to have some software running on the machine which physically has the serial port. You could write that software yourself, or buy it (eg http://www.advancedvirtualcomport.com/index.html). | |
Re: Each time round the loop you have 2 `cin.get(c);` lines. I suspect that you only want the one at the end of the loop. | |
Re: A binary search may be implemented using recursion. Take a look at http://rosettacode.org/wiki/Binary_search#C.2B.2B | |
The 2nd monitor on my Windows 7 laptop stopped working today. It just showed black when I started the laptop. It has previously been working fine and I have not recently made any hardware or software changes. So far I have tried: - Checking video & power cables are connected … ![]() | |
Re: So you want to draw the "foreground" of the bitmap but let the background be transparent, so the image appears to be drawn on your window rather than within a black square? If so, you need to mask the bitmap. Take a look at http://www.codeguru.com/cpp/g-m/bitmap/article.php/c1753/Transparent-Bitmap--True-Mask-Method.htm | |
Re: The terms Local and Global are, to my mind, out of date. Classifying variables as one or the other really relates to the way software used to be written, with a very simple structure. There are more levels now which don't have nice tidy names. To generalise, you need to … | |
![]() | Re: What form does your data take? If you have an input string as a pointer to a null-terminated array of char, you can just walk the string a find the spaces. So you would check the first char then increment the pointer and check the next char. Repeat until you … ![]() |
Re: You could enumerate the fonts you want using the EnumFontFamiliesEx API call. Specify ARABIC_CHARSET as the character set in the LogFont you supply to the routine, and have your callback routine add the font names to your combo box. I don't have any VB code to do that but maybe … | |
Re: I am surprised that you get this error message. I would have expected a different one, perhaps "Incompatible Types". What compiler are you using? `costumepmt` is defined as an `Array[1..7] of real` so it is not a single value, it is 7 values held in an array. So your code … | |
Re: I have been having a similar problem but in my case it was a wifi router at fault. Reboot the router and all would be OK for another hour or two. I then took the router out of service and the problem disappeared. | |
Re: I am just guessing here ... but the manual says strtotime returns a timestamp on success, FALSE otherwise. Previous to PHP 5.1.0, this function would return -1 on failure. So, will FALSE be considered 0? So when the input is 100% $stamp will be set to 0 or -1, both … | |
![]() | Re: Whilst tinstaafl's approach has much to recommend it I personally do something similar to ddanbe. My view is that the tools I use most have simple ways of renaming controls and propogating the changes throughout the code, so the impact of changing the name when the type changes is minimal. … ![]() |
Re: The BaseData class has 2 abstract methods: connected() and get(). The UserData class provides an implementation for the get() function but there is still no implementation for the connected() function. The error message is telling you that either you must declare the UserData class abstract or you must provide an … ![]() | |
Re: How have you defined primesets, SET1 to SET8 and MAX_TIMES? In your IsPrime routine you don't need to loop all the way to Value. Looping to Value/2 will do, because any number greater than Value/2 cannot be a factor of Value. | |
Re: You need to become familiar with the Random function. Use it to pick the values you wish to calculate with. Also use it to select a mathematical function; generate a random number from 0 to 2 and use this to specify which of your 3 mathematical functions to use. An … |
The End.