Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 50 of 119
Search took 0.03 seconds.
Search: Posts Made By: DavidB3
Forum: General 01-19-2016, 11:12 AM
Replies: 6
Views: 1,636
Posted By DavidB3
Whatever... I already implemented. And...

Whatever...

I already implemented. And WITHOUT breaking something. Which I didn't intended in the first place...
I just set the thread to read the files when my application is started. If the...
Forum: General 01-19-2016, 05:34 AM
Replies: 6
Views: 1,636
Posted By DavidB3
Thank you too for your suggestion. But,...

Thank you too for your suggestion.

But, again, I'm talking about the Windows memory cache, not about the app being started or not.

I will try to explain with more details: when the user...
Forum: General 01-18-2016, 11:44 PM
Replies: 6
Views: 1,636
Posted By DavidB3
Thank you. But I was talking about...

Thank you.

But I was talking about memory/RAM cache (https://msdn.microsoft.com/en-us/library/windows/desktop/aa364218%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396) not internet cache...
Forum: General 01-18-2016, 05:06 PM
Replies: 6
Views: 1,636
Posted By DavidB3
check file is in Windows cache

How can I check if a file is in Windows cache or not?
And, if it's not, what is the most efficient way (resources used and/or time) to load it there?

Why do I ask: one of my apps is loading...
Forum: General 12-10-2015, 04:35 PM
Replies: 55
Views: 14,278
Posted By DavidB3
I found some replacement icons for the blue one,...

I found some replacement icons for the blue one, but they aren't too much better...

http://i411.photobucket.com/albums/pp199/davidbrenner3DavidB3/Clipboard01_zpsgmltots0.jpg...
Forum: General 12-10-2015, 11:38 AM
Replies: 55
Views: 14,278
Posted By DavidB3
Just to see how it looks now: ...

Just to see how it looks now:

http://i411.photobucket.com/albums/pp199/davidbrenner3DavidB3/Clipboard01_zpscvk0ood6.jpg...
Forum: General 12-10-2015, 09:45 AM
Replies: 55
Views: 14,278
Posted By DavidB3
I have separate folders for 32/64 binaries. But...

I have separate folders for 32/64 binaries. But the dcu files are generated near the pas files, not near the binaries. And since the pas files are the same in 32/64...


LE Found out where to set...
Forum: General 12-10-2015, 07:59 AM
Replies: 55
Views: 14,278
Posted By DavidB3
I'm about to finish... A few problems: 1....

I'm about to finish...

A few problems:
1. When I switch from 32 to 64 (or from 64 to 32) in Delphi 10 and I compile, it always says "[dcc32/64 Fatal Error] Virtual_Machine_USB_Boot.dpr(19): F2048...
Forum: General 12-08-2015, 02:17 PM
Replies: 55
Views: 14,278
Posted By DavidB3
I am about to finish. After that I have to...

I am about to finish.

After that I have to do the sort code.
Forum: General 12-08-2015, 01:49 PM
Replies: 55
Views: 14,278
Posted By DavidB3
No, I didn't :( Because are so many options and...

No, I didn't :(
Because are so many options and couldn't find info about that on internet...
They should of made a section with drag/drop options only, not mix them with others...

Thank you. :)
Forum: General 12-08-2015, 11:45 AM
Replies: 55
Views: 14,278
Posted By DavidB3
I've edited the images with Gimp and manage to...

I've edited the images with Gimp and manage to solve most of the problems.
Gimp has a very useful function: "Color to alpha". For example, if you have an image in a white background, you can wipe...
Forum: General 12-07-2015, 04:20 PM
Replies: 55
Views: 14,278
Posted By DavidB3
You're right. Problem: I noticed some white...

You're right.

Problem: I noticed some white pixels near the images when the selection blue image is alpha blended with them.
Looking closely I discovered that the pngs does not contain pixels...
Forum: General 12-07-2015, 03:18 PM
Replies: 55
Views: 14,278
Posted By DavidB3
The code is compiling ok now, thanks. I...

The code is compiling ok now, thanks.

I combined all the images into one 160x16 res and add it into resources.
Just to save time, what method have you used to load the pngs into the imagelist?
...
Forum: General 12-07-2015, 01:31 PM
Replies: 55
Views: 14,278
Posted By DavidB3
I don't know if it's ok to change the QEMU icon....

I don't know if it's ok to change the QEMU icon. It was taken from here http://qemu.weilnetz.de/icon/other/
And the VirtualBox icon was extracted from the main VirtualBox exe file.

In the...
Forum: General 12-07-2015, 10:35 AM
Replies: 55
Views: 14,278
Posted By DavidB3
Looks good too: ...

Looks good too:

http://i411.photobucket.com/albums/pp199/davidbrenner3DavidB3/Clipboard01_zpseewhnlp6.jpg...
Forum: General 12-07-2015, 09:21 AM
Replies: 55
Views: 14,278
Posted By DavidB3
Yes, looks better, thank you :) ...

Yes, looks better, thank you :)

http://i411.photobucket.com/albums/pp199/davidbrenner3DavidB3/Clipboard01_zpsaoyhry0o.jpg...
Forum: General 12-06-2015, 11:59 AM
Replies: 55
Views: 14,278
Posted By DavidB3
It makes no difference for me if they are bmp,...

It makes no difference for me if they are bmp, ico, png or anything else.
Like I said, I chose ico because it was the ONLY WAY to load them without losing something from image. In the Delphi 7...
Forum: General 12-06-2015, 10:42 AM
Replies: 55
Views: 14,278
Posted By DavidB3
I made the header code a little more "adaptable":...

I made the header code a little more "adaptable":

//global var
ColorToBlend: TColor = clBlack;
isBlendColorAssigned: Boolean = False;
...........
function GetColorToBlend(const...
Forum: General 12-05-2015, 11:05 PM
Replies: 55
Views: 14,278
Posted By DavidB3
Actually my description was from Windows 8.1...

Actually my description was from Windows 8.1 default theme.

Looks like that code works :)

Before:

http://i411.photobucket.com/albums/pp199/davidbrenner3DavidB3/before_zpshbqsginv.jpg...
Forum: General 12-05-2015, 01:25 PM
Replies: 55
Views: 14,278
Posted By DavidB3
Sorry for the delay in response, but I had a lot...

Sorry for the delay in response, but I had a lot of work to do (this project and in my personal life).

I'm just at half with the implementation of VirtualStringTree. Many things have to be changed...
Forum: General 12-04-2015, 10:05 AM
Replies: 55
Views: 14,278
Posted By DavidB3
Even with VST, I can't get rid of it. It has...

Even with VST, I can't get rid of it.
It has more data than the VST columns:

VMentry = record
Name: WideString;
Ptype: Byte;
ModeLoadVM: Byte;
VMID: WideString;
...
Forum: General 12-04-2015, 09:33 AM
Replies: 55
Views: 14,278
Posted By DavidB3
In the app if you right click on header a popup...

In the app if you right click on header a popup menu will show and you can choose which column you want to show or hide.
I wasn't implemented this in the test app because it was suppose to be very...
Forum: General 12-04-2015, 08:54 AM
Replies: 55
Views: 14,278
Posted By DavidB3
Ok, thanks. Another thing: I see that...

Ok, thanks.

Another thing:

I see that you used this to add a row:


type
PData = ^TData;
Forum: General 12-04-2015, 07:04 AM
Replies: 55
Views: 14,278
Posted By DavidB3
Yes, that solved the problem, thanks. Thought...

Yes, that solved the problem, thanks.
Thought it was in the component code but it was way simpler xD

But now comes the hard part :D
I see that TVirtualStringTree's functions are different from...
Forum: General 12-04-2015, 05:28 AM
Replies: 55
Views: 14,278
Posted By DavidB3
The problem is that I keep getting this message...

The problem is that I keep getting this message after I enabled show images in header.
If I click on yes, it doesn't ask anymore but it doesn't show images in list (only in header).
So I have to...
Forum: General 12-03-2015, 04:18 PM
Replies: 55
Views: 14,278
Posted By DavidB3
Yes, it works, thank you. The idea of using a...

Yes, it works, thank you.
The idea of using a TIcon to draw the images is brilliant.

But OwnerDraw is something I usually avoid, because it's not easy to make a code that would work fine in any...
Forum: General 12-03-2015, 07:41 AM
Replies: 55
Views: 14,278
Posted By DavidB3
You're right. So here is a much simpler...

You're right.

So here is a much simpler application to test:

https://drive.google.com/file/d/0ByKxAD_t9uvLUHNEVVpoZ0Z6cUE/view?usp=sharing
Forum: General 12-03-2015, 03:37 AM
Replies: 55
Views: 14,278
Posted By DavidB3
Thanks. But, as you can see, I still got some...

Thanks.
But, as you can see, I still got some problems to solve :(


Just so everyone could see the other 2 problems:
...
Forum: General 12-02-2015, 02:06 PM
Replies: 55
Views: 14,278
Posted By DavidB3
Good to see you too :) Yes, it worked, now I...

Good to see you too :)

Yes, it worked, now I can start the 64 bit version too.

Thank you :)
Forum: General 12-02-2015, 10:55 AM
Replies: 55
Views: 14,278
Posted By DavidB3
problems porting an app from Delphi 7 to 10

Hi.

I am trying to port a small application from Delphi 7 to Delphi 10 Seattle.
I've solved most of the problems except for these:

1. The 64 bit version does not start. It says "missing...
Forum: General 11-19-2014, 10:29 AM
Replies: 4
Views: 5,097
Posted By DavidB3
This seems to be working fine. Thank you very...

This seems to be working fine.
Thank you very much :)

I simplified the function a bit, since LoadStringW is already statically loaded from user32.dll (in Windows library):

function...
Forum: General 11-19-2014, 08:29 AM
Replies: 4
Views: 5,097
Posted By DavidB3
Thank you, but it's not quite what I need. I...

Thank you, but it's not quite what I need.
I see the extra parameter, wLanguageId, but with it I can only set the localization of the message.

The problem is the I don't need to display the...
Forum: General 11-19-2014, 06:51 AM
Replies: 4
Views: 5,097
Posted By DavidB3
get MessageBox localized text from buttons

Hi.

I am using Windows.MessageBoxW to show messages to the user. One reason to use it is because they are localized.
But there is a problem.
For example, if I show a message with 2 buttons (OK...
Forum: General 06-08-2014, 05:37 AM
Replies: 4
Views: 3,276
Posted By DavidB3
I tried but that GUID is not helping. It...

I tried but that GUID is not helping.
It recieves the same GUID even if the drive does not have a "mountable" partition or if it has 2 or more.
That means the GUID is for the drive itself, not for...
Forum: General 06-07-2014, 09:14 PM
Replies: 4
Views: 3,276
Posted By DavidB3
I found this code on Google, in several...

I found this code on Google, in several locations, in all using shortint.

It helps a little, thank you. Btw, what should I put inside "dbi.dbcc_name" instead of 0 in DriveRegister procedure? Or...
Forum: General 06-06-2014, 11:00 AM
Replies: 4
Views: 3,276
Posted By DavidB3
Question detect and read from any drive attached/mounted on the computer

Hi.

I'm trying to detect and read from any drive attached/mounted on the computer (USB and nonUSB).
I'm using this:

constructor TComponentDrive.Create(AOwner: TComponent);
begin
inherited...
Forum: General 06-02-2014, 07:33 AM
Replies: 7
Views: 2,895
Posted By DavidB3
Ok. Thank you.

Ok.
Thank you.
Forum: General 05-31-2014, 10:20 PM
Replies: 7
Views: 2,895
Posted By DavidB3
Is there a way to get the CPU/core number, for...

Is there a way to get the CPU/core number, for example 2 out of 4, (on a multiCPU/core system) where a thread is running?
Also, is there a way to get the current usage for that CPU/core?

What I'm...
Forum: General 05-24-2014, 03:31 PM
Replies: 42
Views: 12,453
Posted By DavidB3
Well, I modified the components to work under...

Well, I modified the components to work under WinCe too (Lazarus).
But the problem is still detecting the uppercase/lowercase:

FTransCase: array [0..255] of Byte; //(global)

var
i:...
Forum: General 05-19-2014, 07:02 PM
Replies: 7
Views: 2,895
Posted By DavidB3
I noticed some differences between Lazarus and...

I noticed some differences between Lazarus and Delphi when hashing strings. Surprisingly, here Lazarus is faster than Delphi 7 (usually it's slower).

Hashing 1 380 000 words on a 3.2 GHz dual core...
Forum: General 05-19-2014, 10:37 AM
Replies: 7
Views: 2,895
Posted By DavidB3
It would of helped me a little speeding up the...

It would of helped me a little speeding up the THashArray. It's still kind of slow when inserting/deleting one item at a time.
Oh, well, if it's not worth it...

But what about modifying the items...
Forum: General 05-19-2014, 06:59 AM
Replies: 7
Views: 2,895
Posted By DavidB3
Multithreading with Move in a string or an unidimensional array

In Delphi, because of the memory manager, it will not work.
But what about Lazarus?

Let's say you have an AnsiString, an array of AnsiChar/Byte or an array of Integer.
I'm using Move a lot to...
Forum: General 05-17-2014, 03:12 PM
Replies: 42
Views: 12,453
Posted By DavidB3
Yes, it's working now :) Thank you.

Yes, it's working now :)
Thank you.
Forum: General 05-17-2014, 06:07 AM
Replies: 42
Views: 12,453
Posted By DavidB3
Same on my computer (Lazarus and Delphi). But...

Same on my computer (Lazarus and Delphi).
But when I try "DicName.CustomSort(Compare)" works on Delphi but not on Lazarus.



Same on my computer (Lazarus and Delphi).
But when I try...
Forum: General 05-16-2014, 09:10 PM
Replies: 42
Views: 12,453
Posted By DavidB3
Like I said in Delphi it's working. I tried...

Like I said in Delphi it's working.

I tried this declaration, no change in Lazarus.



LE: Delphi version: 7, Lazarus version: 1.22 Windows, OS: Windows XP.

LLE: the error message is now:...
Forum: General 05-16-2014, 07:43 PM
Replies: 42
Views: 12,453
Posted By DavidB3
I may have found a bug in Lazarus. The compiler...

I may have found a bug in Lazarus.
The compiler says: "Test.lpr(140,20) Error: Wrong number of parameters specified for call to "Compare""

http://i57.tinypic.com/xer2vb.png

With the same code...
Forum: General 05-16-2014, 12:27 PM
Replies: 42
Views: 12,453
Posted By DavidB3
Then it's a bug... Using the...

Then it's a bug...



Using the "translocation" array I got a faster sorting. Twice as fast :)
But unfortunately it looks like the CompareString function is not just a simple character...
Forum: General 05-16-2014, 12:52 AM
Replies: 42
Views: 12,453
Posted By DavidB3
Yes, thank you, but with one difference. ...

Yes, thank you, but with one difference.

ArrayName.SetSortFunction(UserAddNumber); //the slow compare function is
transformed into a "translocation" array (faster)
ArrayName.Sort; //using the...
Forum: General 05-15-2014, 03:38 PM
Replies: 42
Views: 12,453
Posted By DavidB3
Something else. It's not 100% offtopic: I'm...

Something else.
It's not 100% offtopic: I'm trying to use QuickSort to sort arrays/dictionaries.
How do I allow the user to assign a comparing function (to be used in QuickSort)? I mean a function...
Forum: General 05-15-2014, 08:34 AM
Replies: 42
Views: 12,453
Posted By DavidB3
Thank you. That's weird, what I get from...

Thank you.

That's weird, what I get from System Settings >> locale is different from what I get from Konsole >> locale.
The first is set to my language/region but the second shows "en_US.UTF-8"...
Showing results 1 to 50 of 119

 
Forum Jump

All times are GMT. The time now is 04:56 PM.


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