Hi all, I'm new to this particular forum.
I am using Borland C++ 5.82, and the following fails:
...
#include "utf8_locale.hpp"
const std::locale utf8_locale( // A global object
std::locale::classic(),
new duthomhas::unicode::utf8_facet
);
int main()
{
wofstream outf...
I believe it is, but there may be caveats.
Make sure you do some reading and heavy testing.
http://graphics32.org/wiki/pub/page/Main/HomePage
Good luck!
You are allowed to use forms in Console mode applications. It doesn't have to be visible though. ;-)
But the Lst file is really just a direct line-printer text file. You might want to check out the simple OpenPrinter() and WritePrinter() functions. Another useful one is the poorly-named...
Here you go. It is a D3+ package.
Files
[tab]tGraphicButton.dpk
[tab]tGraphicButton.res
[tab]uGraphicButton.pas
[tab]tGraphicButton.cnt
[tab]tGraphicButton.hlp
Compilation and Installation
From the Delphi IDE, load the DPK file. Click Compile and then Install. You should see a new tab on the...
If you want I'll send you my tGraphicButton component (made in D5, but it will work for you). It uses only image(s) to display itself --so you have absolute control over what the button looks like in normal, hover, active, and disabled states.
LOL! I figured it was something like that.
Lately I've been typing Pascal into C++ forums...
In Pascal foo^ is the dereference operator.
void do_something( x, y: integer )
:-\
That is a pretty general question.
A CSV file is nothing more than a bunch of lines (aka "records") which are subdivided (into "fields") by commas.
type
tEmployee = record
surname: string;
given_name: string;
pay_rate: double...
FileTimeToSystemTime and SystemTimeToFileTime are the procedures you are looking for. (Then you will need SystemTimeToDateTime...)
Here's a tutorial I wrote on the (general) subject some time ago:
Handling Dates and Time in Delphi
Hope this helps.
It looks like someone has hard-coded a path into the database or the database query, so when that file or path is missing it complains. The path can be in the table, in the query, or in the db component.
I don't know much about DB stuff, but I figured that I could at least bump this for you...
Wow, sorry to respond so late...
The C# method is asking for a widestring reference and promising not to modify the string.
You can use both ansistring and widestring together, and assign the one to the other:
var
astr: ansistring;
wstr: widestring;
begin
astr := 'Hello world!';
wstr...
I can't stand the thing so I've turned it off. But I don't think you can fix it. In the options there is one to keep the Structure View on top of the desktop no matter what --perhaps that will help...
If you hold the Ctrl key down and mouse over keywords you can jump directly to the code that...
I presume that you aren't trying to paste items into incompatible places...
...and that you have already tried rebooting your system.
It sounds like the IDE has been corrupted. Have you (or some component) made any changes to the standard DCUs? (If you aren't sure you can check the file date...
Report them as bugs to your external supplier.
RE 216 is an EAccessViolation: an attempt to dereference nil or non-allocated virtual memory, or to write to a code page. It is a cumulative result of those first three messages.
There is nothing you can do on your end (from inside a DLL) to fix...
Or just use a couple of bitblts.
You'll need a bitmap for each:
1) the front side of the card
2) the back side of the card
3) a diagonal mask:
+------+
| a /| a = transparent
| / |
| / |
| |
| b | b = background color
+------+
Now blit the cards so that the bottom-right...
@6volt
A1) It is never appropriate to dump foreign namespaces into the current unless the current explicitly asks for it. Delphi units are simplistic, but they do the right thing.
As a visual thought experiment, consider your car. Your car needs an engine to run, but you don't necessarily want...
Ack, my brain was working backwards... Just disabling the maximize should leave the button there, you just can't use it.
But exactly as Roo said, the BorderStyle has a direct impact on what kinds of buttons you can have there (without drawing them yourself).
Depending on the Windows version (I don't know about Vista) that will also kill your minimize button.
If that is a problem, then you can write yourself a WM_SYSCOMMAND message handler that ignores wParam = SC_MAXIMIZE.
Hope this helps.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.