Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 50 of 500
Search took 0.57 seconds.
Search: Posts Made By: slavikn
Forum: General 11-15-2008, 11:56 AM
Replies: 0
Views: 940
Posted By slavikn
Scrollbar doesn't work when visible=false

Hi.

I have a ScrollBox control, and I let the user change the position of the the horizontal & vertial scrollbars by pressing the arrow keys on the keyboard.

However, if I set the visible...
Forum: General 10-12-2008, 10:39 AM
Replies: 4
Views: 3,628
Posted By slavikn
RE: PostThreadMessage to window without focus fails

I don't see the point of trying PostThreadMessage again and again (to wait for a message queue to be created) because that thread already received (successfully) messages while it was still opened.
...
Forum: General 10-11-2008, 12:06 PM
Replies: 4
Views: 3,628
Posted By slavikn
PostThreadMessage to window without focus fails

Hi,

Please assist in solving the following problem:

MyApp gives its GetCurrentThreadId() to MyDll.
MyDll sends messages using PostThreadMessage to that threadId.
PostThreadMessage succeeds if...
Forum: General 10-11-2008, 09:49 AM
Replies: 2
Views: 1,291
Posted By slavikn
RE: THotKey doesn't catch WinKey

Yeah, I know... Sorry, my questions wasn't clearer.

I meant that the THotKey control (which displays the keys that the user is holding) doesn't support WinKey.

For example, it displays "Alt+S"...
Forum: General 10-11-2008, 04:49 AM
Replies: 2
Views: 1,291
Posted By slavikn
THotKey doesn't catch WinKey

Hi,

Is there a (free) component like THotKey, but unlike THotKey is aware of WinKey?

Thanks!
Forum: General 03-01-2008, 07:43 AM
Replies: 2
Views: 1,853
Posted By slavikn
RE: .htaccess Password Generator

Sorry for my ignorance...

For .htaccess I'm supposed to provide a username and a password.
The UnixCrypt thing expects a password and a salt.
I tried various compinations, but didn't manage to...
Forum: General 02-23-2008, 07:30 AM
Replies: 2
Views: 1,853
Posted By slavikn
.htaccess Password Generator

Hi,

I'd like to generate passwords for .htaccess in Delphi code, but don't know how.

Please help,
slavikn.
Forum: General 12-13-2007, 02:24 PM
Replies: 15
Views: 2,062
Posted By slavikn
RE: Found it

Yeah, I know it's nearly impossible to help with such a thing in a forum...

Anyhow, the dll is Bass.dll from http://www.un4seen.com/
I sent an e-mail to its developer and notified about the leak.
Forum: General 12-12-2007, 12:29 PM
Replies: 15
Views: 2,062
Posted By slavikn
Found it

Well, I found the problem.

There's some sort of leak (doesn't look like a memory-leak, but might be a file-handle leak, or something like this) in a 3-rd party DLL that I use.

I wrote a loop:
...
Forum: General 12-09-2007, 12:13 PM
Replies: 15
Views: 2,062
Posted By slavikn
RE:

I wrote a test program which allocates 500MB of RAM.

procedure TForm1.FormCreate(Sender: TObject);
const
bs = 102400;
count = 5120;
var
i: integer;
begin
for i := 1 to count do
Forum: General 12-09-2007, 12:07 PM
Replies: 15
Views: 2,062
Posted By slavikn
RE:

> Wow... that is too much. This defiantly will kill the OS

I calculated the WORST CASE of my memory usage by the whole structure. For 3000 files the max usage will be 100MB. Is it too much..?...
Forum: General 12-08-2007, 08:53 PM
Replies: 15
Views: 2,062
Posted By slavikn
RE:

1) So what I should do is convert my current data-structures into tables? This is increase the data-size (because to keep a list, I need a separate table with a repeating Key field).

2) My...
Forum: General 12-08-2007, 12:39 PM
Replies: 15
Views: 2,062
Posted By slavikn
RE:

1) Why too much? The structures I use aren't that big... Isn't the amount of memory I can use limited by my RAM?

2) If TClientDataset is memory-based, what difference will it make...? Please...
Forum: General 12-08-2007, 10:53 AM
Replies: 15
Views: 2,062
Posted By slavikn
RE:

Here's the data-structure:

type
//--------------------------------------------------------------------------//
//T16Bytes record
...
Forum: General 12-08-2007, 08:23 AM
Replies: 15
Views: 2,062
Posted By slavikn
"Out of memory" message

Hi!

When I run my program (which build a data-structure in memory, but the structure isn't big, and I've got a lot of RAM) Delphi crashes with "Out of memory" message.

MemCheck...
Forum: General 12-08-2007, 08:14 AM
Replies: 3
Views: 1,105
Posted By slavikn
RE: Downloading large files with progress informations?

uses ..., Gauges, WinInet;

function DownloadFile(Const Source, Dest: String; Const ToLabel: TLabel = Nil; Const PrgBar: TGauge = Nil): Boolean;
var
NetHandle: HINTERNET;
UrlHandle:...
Forum: General 11-24-2007, 07:20 AM
Replies: 1
Views: 1,287
Posted By slavikn
Assert should close the application immediately

Hi,

Currently Assert displays a message (I can change it to anything else), but I want it to close the applicaiton immediately after the message (without destroying the objects properly).

I...
Forum: General 11-15-2007, 08:44 AM
Replies: 4
Views: 1,587
Posted By slavikn
RE: Need something like RTF2TXT function

My unit will be used in an application without forms.
If I include a form, it will make the executable ~500KB bigger...
Forum: General 11-12-2007, 09:33 PM
Replies: 4
Views: 1,587
Posted By slavikn
RE: Need something like RTF2TXT function

The problem with TRichEdit is that you have to place it on a form, and I don't have one...
Forum: General 11-12-2007, 11:59 AM
Replies: 4
Views: 1,587
Posted By slavikn
Need something like RTF2TXT function

Hi!

I'm looking for something like "rtf2txt" and "htm2txt" functions
(they should extract the plain text)

Thanks!
Forum: General 11-09-2007, 01:12 AM
Replies: 0
Views: 849
Posted By slavikn
TAG editor for audio-files

Hi,

I'm looking for a component which will allow me to view/modify the TAG-data from various audio formats.

I already have one for MP3 files (it works with ID3v1 and ID3v2), but also need one...
Forum: General 10-26-2007, 03:16 AM
Replies: 5
Views: 1,293
Posted By slavikn
RE: Tree of TObjects

Just thought there must be something ready...
Ah... looking forward to Delphi with generics... (type-safe and no castings...)
Forum: General 10-26-2007, 02:57 AM
Replies: 5
Views: 1,293
Posted By slavikn
RE: Tree of TObjects

I'm familiar with TTreeView, but I'm looking for a non-visual tree (just a very simple one to keep data).
Forum: General 10-25-2007, 01:34 PM
Replies: 5
Views: 1,293
Posted By slavikn
Tree of TObjects

Hi,

I'm looking for a Delphi component (maybe there's a ready one?) to keep a tree of TObjects.

Thanks.
Forum: General 10-09-2007, 08:56 PM
Replies: 5
Views: 1,577
Posted By slavikn
RE: FindFirst/FindNext are buggy??

No... the '~' was just an example.

As praveenkumar_k said "Findfirst will check for the extension that starts with the string what u give" (so 'c:\somefile.bmp_qqqqq' will be reported as well).
...
Forum: General 10-09-2007, 02:44 PM
Replies: 5
Views: 1,511
Posted By slavikn
RE:

This still requires at least one call to this function.

I want the initialization block to perform a certain operation even before any of its functions/constructor called.

To be more specific,...
Forum: General 10-09-2007, 01:45 PM
Replies: 5
Views: 1,577
Posted By slavikn
RE: FindFirst/FindNext are buggy??

You showed me how to use FindFirst and FindNext, but my problem is not HOW to use it, but the WRONG results it produces.

Your function will still report 'c:\myfile.bmp~', won't it..?

Other...
Forum: General 10-09-2007, 08:56 AM
Replies: 5
Views: 1,511
Posted By slavikn
RE:

This won't work for me, because I want this code to be executed only once for this class (no matter how many objects (if any) were created).
Forum: General 10-08-2007, 02:23 PM
Replies: 5
Views: 1,511
Posted By slavikn
"initialization" and "finalization" not for unit but for class

Hi,

I know it's possible to have "initialization" and "finalization" blocks for a unit.
But can I have those for a class (for example, I want it to register to a Factory)...

Thanks!
Forum: General 10-08-2007, 02:22 PM
Replies: 1
Views: 1,136
Posted By slavikn
Constants private to a class

Hi,

Can I declare constants private to a class?

Thanks!
Forum: General 10-08-2007, 01:42 PM
Replies: 5
Views: 1,577
Posted By slavikn
FindFirst/FindNext are buggy??

Hi,

If I use FindFirst/FindNext to look for 'c:\*.bmp', I expect them to report:
c:\1.bmp, c:\2.bmp, c:\etc.bmp
But for some reason they also report files like:
c:\badfile.bmp~ (note the '~'...
Forum: General 10-06-2007, 08:47 AM
Replies: 5
Views: 1,151
Posted By slavikn
RE: how create numbers to jpg?

Don't use loadfromfile. Just give it height and width.
Forum: General 10-06-2007, 01:41 AM
Replies: 5
Views: 1,151
Posted By slavikn
RE: how create numbers to jpg?

Anyhow, for those who might be interested:

var
TextW: Integer;
TextH: Integer;
TheText: ShortString;
PicSize: Integer;

Jpg: TJpegImage;
begin
Forum: General 10-05-2007, 01:54 PM
Replies: 1
Views: 1,433
Posted By slavikn
RE: TXMLDocument: can't read XML from a file

Ah... found the problem...

I declared Doc as TXmlDocument, whilst XmlNode was declared as IXmlNode.
When I changed TXmlDocument into IXmlDocument, things worked :-)

Thanks anyway.
Forum: General 10-05-2007, 08:31 AM
Replies: 1
Views: 1,433
Posted By slavikn
TXMLDocument: can't read XML from a file

I try to execute this code:

Doc := TXMLDocument.Create(Filename);
Doc.Active := True;
XmlNode := Doc.DocumentElement.ChildNodes.First; //I tried many variants here...
I have access...
Forum: General 10-05-2007, 03:57 AM
Replies: 7
Views: 6,502
Posted By slavikn
RE: Cast Double To Int64 (like in C)

I've already discovered the "varient record" thing,
but the "absolute" thing was interesting too.

Thanks!
Forum: General 10-05-2007, 01:48 AM
Replies: 7
Views: 6,502
Posted By slavikn
RE: Cast Double To Int64 (like in C)

Ah, this helps! :-)

http://www.delphicorner.f9.co.uk/articles/op6.htm
Forum: General 10-05-2007, 01:44 AM
Replies: 7
Views: 6,502
Posted By slavikn
RE: Cast Double To Int64 (like in C)

Well, not really casting, but with a union:

#include <stdio.h>

int main(void) {
union {
float f_rep;
int i_rep;
} num;
Forum: General 10-05-2007, 01:10 AM
Replies: 7
Views: 6,502
Posted By slavikn
RE: Cast Double To Int64 (like in C)

With trunc we can't retrieve the Double value back, so what's the point? :-)

What I need is two functions: DblToInt64 and Int64ToDbl, so that if d is a Double variable, we'll have:...
Forum: General 10-05-2007, 12:22 AM
Replies: 7
Views: 6,502
Posted By slavikn
Cast Double To Int64 (like in C)

Hi,

I want to store a Double in a compact ASCII way.
So I thought to cast it to Int64 (like in C), and then use IntToHex.
This would've given me 16 characters, which is fine.

However, Delphi...
Forum: General 10-05-2007, 12:20 AM
Replies: 5
Views: 1,151
Posted By slavikn
RE: how create numbers to jpg?

What do you mean to "create a number to a jpg"?
Do you want to draw the number on a jpg image?
Or you want some kind of hash on the jpg image (which will identify the image).
Forum: General 09-01-2007, 11:39 AM
Replies: 7
Views: 1,547
Posted By slavikn
RE: What I looked for was

I use Delphi 6...
Forum: General 09-01-2007, 10:27 AM
Replies: 7
Views: 1,547
Posted By slavikn
What I looked for was

Thanks!
The component you mentioned wasn't really what I was looking for, but I looked at what the library you mentioned provided, and found TBucketList which is exactly a hash-table :-) Not a...
Forum: General 09-01-2007, 05:59 AM
Replies: 7
Views: 1,547
Posted By slavikn
RE: Looking for Java-like Vector and HashTable

But my HashTable needs Pointer-keys - not String-keys.
Forum: General 09-01-2007, 02:14 AM
Replies: 7
Views: 1,547
Posted By slavikn
RE: Looking for Java-like Vector and HashTable

TList is very similar to the STL/Java Vector. Great.

But what about a HashTable/Dictionary?
Forum: General 08-31-2007, 12:37 PM
Replies: 7
Views: 1,547
Posted By slavikn
Looking for Java-like Vector and HashTable

Hi,

Where can I find (open-source) Java-live classes:
1) Vector
2) HashTable (=Dictionary)

P.S. On this site I found a HashTable, but it's too simple (keys must be strings, and I can't...
Forum: General 04-14-2006, 10:34 AM
Replies: 9
Views: 2,480
Posted By slavikn
RE: Anchors don't have effect

Honeslty, this is EXACTLY what I am doing, but it just doesn't work :-(

All align and anchors properties are set just as I need.
I resize only 2 things:
1) The form itself.
2) Width of a...
Forum: General 04-14-2006, 07:38 AM
Replies: 9
Views: 2,480
Posted By slavikn
RE: Anchors don't have effect

Some have LEFT, some TOP, some CLIENT, and some NONE.
Forum: General 04-14-2006, 07:37 AM
Replies: 9
Views: 2,480
Posted By slavikn
RE: Anchors don't have effect

Thanks, but I don't need scaling in my program.
All I need is to load some sizes from the registry and apply on the form.
Forum: General 04-14-2006, 07:36 AM
Replies: 9
Views: 2,480
Posted By slavikn
RE: Anchors don't have effect

I tried. Still no effect.
Other suggestions?
Showing results 1 to 50 of 500

 
Forum Jump

All times are GMT. The time now is 03:14 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.