Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 50 of 500
Search took 0.17 seconds.
Search: Posts Made By: Norrit
Forum: General 11-17-2017, 02:19 PM
Replies: 1
Views: 281
Posted By Norrit
Since you marked it as solved: it would be nice...

Since you marked it as solved:
it would be nice if you post the solution aswell, in case somebody has a similar problem
Forum: General 11-13-2017, 01:10 PM
Replies: 4
Views: 405
Posted By Norrit
ok, didn't know that. Glad it works now and...

ok, didn't know that.
Glad it works now and thank you for providing the solution
Forum: General 11-13-2017, 08:31 AM
Replies: 4
Views: 405
Posted By Norrit
ShellExecute expects the parameters in the 4th...

ShellExecute expects the parameters in the 4th parameter
I would try something like
ShellExecute(Handle, 'open', 'net.exe','time \\pdc-fs >c:\ProductionDB\servertime.txt',nil,SW_HIDE);
Forum: General 11-06-2017, 08:58 AM
Replies: 4
Views: 888
Posted By Norrit
According to your requirments, easiest is to...

According to your requirments, easiest is to create a rest/soap service which does the validation serverside. REST has less overhead then SOAP, therefor I would suggest REST. At a later stage you can...
Forum: General 11-03-2017, 08:23 AM
Replies: 6
Views: 1,452
Posted By Norrit
Should I quote my own reply? What have you...

Should I quote my own reply?

What have you done with what I suggested?
Forum: General 11-02-2017, 11:31 AM
Replies: 4
Views: 888
Posted By Norrit
Making licensing software is a sport on it's own....

Making licensing software is a sport on it's own.

There are 10.000 ways to implement, and all of them have their pro's and con's.

And what is licensing in your oppinion?
- Limit number of...
Forum: General 10-31-2017, 03:20 PM
Replies: 8
Views: 1,039
Posted By Norrit
I don't have Delphi at the moment, but normally a...

I don't have Delphi at the moment, but normally a .ShowModal will trigger the OnShow, so that argument is invalid.

But is that .visible false/true construction a ShowModal trick? Because your form...
Forum: General 10-31-2017, 08:59 AM
Replies: 2
Views: 1,200
Posted By Norrit
Again, just as good as a question as your last...

Again, just as good as a question as your last one.
At that one I tried to explain you that you need to give more information (which you didn't provide)

I cannot give an answer to this since I...
Forum: General 10-31-2017, 08:56 AM
Replies: 8
Views: 1,039
Posted By Norrit
Not completely, normally you create your items...

Not completely, normally you create your items before the try and free them in the finally. FreeAndNil is not needed, object.Free() is enough.

Only thing I'm curious about is what that...
Forum: General 10-31-2017, 08:45 AM
Replies: 5
Views: 958
Posted By Norrit
ExtractFileDir and ExtractFileName work!!! ...

ExtractFileDir and ExtractFileName work!!!

It doesn't use any file operating calls, it's simple string slicing in code
Only problem is that you didn't specify the slash, and there was your...
Forum: General 10-30-2017, 01:11 PM
Replies: 5
Views: 958
Posted By Norrit
ExtractFileName / ExtractFileDir

ExtractFileName / ExtractFileDir
Forum: General 10-26-2017, 08:03 AM
Replies: 6
Views: 1,452
Posted By Norrit
Since you provide soooooo much information, a...

Since you provide soooooo much information, a guess to your questino:

You use RichEdit.Text and it loses all formatting (rtf).
So you need to save the RTF rather then the PlainText.

Easiest...
Forum: General 10-24-2017, 12:40 PM
Replies: 1
Views: 917
Posted By Norrit
As far as I know the ShFileOperation isn't a...

As far as I know the ShFileOperation isn't a threaded function, so just call ShowMessage('Copy done'); after this line...
Forum: General 10-24-2017, 12:33 PM
Replies: 4
Views: 1,135
Posted By Norrit
Isn't numeric an Integer equivalent? A crappy...

Isn't numeric an Integer equivalent?
A crappy error, but it would explain this behaviour
Forum: General 10-18-2017, 02:54 PM
Replies: 2
Views: 1,267
Posted By Norrit
I can ask you how to use a paperclip, but I can...

I can ask you how to use a paperclip, but I can use it for attaching multiple sheets of paper, to open a beerbottle, to make silly figures, whatever you like...

There must be a reason you ask this...
Forum: General 10-10-2017, 09:32 AM
Replies: 2
Views: 1,123
Posted By Norrit
lol, found out the mistake in the last fState<>...

lol, found out the mistake in the last fState<> compares?

Happens to anybody, but then you know it's time to find the coffee machine ;-)
Forum: General 10-05-2017, 02:57 PM
Replies: 2
Views: 1,057
Posted By Norrit
I would search for "://" and Copy from this to...

I would search for "://" and Copy from this to the next /
Just a simple Pos and PosEx with a Copy

Only thing you need to do first is StringReplace of \ to /
This because url can with \ is also...
Forum: General 09-14-2017, 03:05 PM
Replies: 1
Views: 1,538
Posted By Norrit
I really have no idea what you're after. An...

I really have no idea what you're after.

An if-construction without validating on anything?
An inputBox function which returns something, and what is 'n'?

Explain what you're after.

I...
Forum: General 09-12-2017, 10:26 AM
Replies: 2
Views: 1,580
Posted By Norrit
My guess is that the keyword is anti-alias Not...

My guess is that the keyword is anti-alias
Not sure how the newer Delphi versions implement it, but here's a stack article on the D7 way (and pro's and con's on each implementation)
...
Forum: General 07-25-2017, 10:04 AM
Replies: 1
Views: 2,048
Posted By Norrit
and what is that magic command? (Custom command...

and what is that magic command? (Custom command to get jcl file)

Sounds like you're using a command that doesn't wait to terminate, resulting in a partial download (since the command is still...
Forum: General 07-06-2017, 12:35 PM
Replies: 3
Views: 2,624
Posted By Norrit
You can make everything bold, but that's the...

You can make everything bold, but that's the solution.
I don't know what your issue is with hiding/minize or alphablend or whatever. It's clear that your solution doesn't work anymore, then you'll...
Forum: General 07-05-2017, 09:14 AM
Replies: 3
Views: 2,624
Posted By Norrit
Stack answer...

Stack answer (https://stackoverflow.com/questions/22430706/delphi-7-screenshot-without-capturing-form-windows-8-dwm-exe)
Forum: VCL 06-15-2017, 12:30 PM
Replies: 1
Views: 2,626
Posted By Norrit
fireEvent is deprecated since IE9 I think. ...

fireEvent is deprecated since IE9 I think.
keyword now is: dispatchEvent

I think a quick google will provide you some valid examples...
Forum: General 06-13-2017, 08:15 AM
Replies: 19
Views: 4,865
Posted By Norrit
I would try some different versions of both dll's...

I would try some different versions of both dll's
http://indy.fulgan.com/SSL/
Forum: General 06-09-2017, 10:20 AM
Replies: 19
Views: 4,865
Posted By Norrit
So you compile for x64? As for the part you...

So you compile for x64?

As for the part you didn't understand. Go to your user roaming folder (hidden folder)
In explorer: %USERPROFILE%\AppData\Roaming
Empty it, it will refill itself when...
Forum: General 06-09-2017, 08:03 AM
Replies: 19
Views: 4,865
Posted By Norrit
Back to the beginning, I still think it's the...

Back to the beginning, I still think it's the wrong versions of the dll's.

Compare the dll's from the win7 with the win12 server
Both location and size should be the same.

Run this command in...
Forum: General 06-09-2017, 07:54 AM
Replies: 6
Views: 9,487
Posted By Norrit
Well, in design I think there is already an...

Well, in design I think there is already an issue.
Backend is more then just a database with which you connect. There should be a complete layer (actually multiple, but there's only 1 communication...
Forum: General 05-30-2017, 08:08 AM
Replies: 19
Views: 4,865
Posted By Norrit
Sorry, I'm out of options here. I don't use...

Sorry, I'm out of options here.
I don't use Delphi anymore, so cannot test anything...
Forum: General 05-29-2017, 12:04 PM
Replies: 19
Views: 4,865
Posted By Norrit
Longshot, but you could try setting the UseTLS...

Longshot, but you could try setting the UseTLS first and then the Port

SMTP.IOHandler := SSLHandler;
SMTP.Host :=vHost;//smtp.gmail.com
SMTP.Username := vUserId;
SMTP.Password...
Forum: General 05-29-2017, 11:01 AM
Replies: 3
[SOLVED] Comparison
Views: 3,428
Posted By Norrit
Format DateTime...

Format DateTime (http://www.delphibasics.co.uk/RTL.asp?Name=formatdatetime)

Or set the DateFormat
ShortDateFormat (http://www.delphibasics.co.uk/RTL.asp?Name=shortdateformat)
LongDateFormat...
Forum: General 05-29-2017, 08:47 AM
Replies: 3
Views: 3,938
Posted By Norrit
When do you want this??? When the form...

When do you want this???

When the form shows: Use the Form.OnFormShow
When you press escape (or any other key): Use the Form.OnKeyPress
When you do nothing for 30 seconds: Use a TTimer

As you...
Forum: General 05-29-2017, 08:35 AM
Replies: 19
Views: 4,865
Posted By Norrit
Perhaps adding the IdLogEvent and reading it's...

Perhaps adding the IdLogEvent and reading it's info will give you more information on the why?

Other guesses are:
- AntiVirus software (disable to test)
- User privileges (run as administrator...
Forum: General 05-29-2017, 08:28 AM
Replies: 3
[SOLVED] Comparison
Views: 3,428
Posted By Norrit
Without knowing the origin you cannot. ...

Without knowing the origin you cannot.

2017/7/11, is that the 11th of August or the 7th of November?
So you need to know the original format for this
Forum: General 05-24-2017, 01:18 PM
Replies: 19
Views: 4,865
Posted By Norrit
Most likely the OpenSSL dll's are missing on your...

Most likely the OpenSSL dll's are missing on your windows 12 server
Forum: General 05-23-2017, 07:51 AM
Replies: 2
Views: 3,126
Posted By Norrit
This is not sorting, easiest is to create a new...

This is not sorting, easiest is to create a new stringlist where you add them in the correct order:
procedure TForm2.Button1Click(Sender: TObject);
var
input: TStringList;
output:...
Forum: General 05-19-2017, 08:58 AM
Replies: 2
Views: 3,217
Posted By Norrit
This is what I use in an old Delphi project to...

This is what I use in an old Delphi project to render a MD5 from string:
uses
Wcrypt2;

function StrToMd5(AValue: String): String;
var
provider: HCRYPTPROV;
hash: HCRYPTHASH;
...
Forum: General 05-15-2017, 10:03 AM
Replies: 5
Views: 3,447
Posted By Norrit
2 easy options: #1: OnChange event #2:...

2 easy options:
#1: OnChange event
#2: implement the CM_MOUSEENTER
procedure CMMouseEnter(var Message: TMessage); message CM_MOUSEENTER;
Forum: General 05-09-2017, 03:01 PM
Replies: 2
[SOLVED] Divide String
Views: 2,896
Posted By Norrit
If you can devide a string with an Odd length in...

If you can devide a string with an Odd length in 2 equal parts you're a genious!
Forum: General 04-24-2017, 09:55 AM
Replies: 1
Views: 2,146
Posted By Norrit
Why you cast a Pointer to integer and back to...

Why you cast a Pointer to integer and back to pointer again?

I actually doubt if this works in D7 (in this case I just believe you), as for the Pointer to integer to pointer cast. Your error...
Forum: General 04-21-2017, 08:06 AM
Replies: 7
Views: 2,569
Posted By Norrit
You're not printing on an Epson, you're printing...

You're not printing on an Epson, you're printing to PDF.
If you where printing to the Epson you shouldn't have seen that extra popup with the Cancel button with your code.
What is the code that you...
Forum: General 04-20-2017, 08:40 AM
Replies: 7
Views: 2,569
Posted By Norrit
I don't have the "Microsoft print to PDF", so I...

I don't have the "Microsoft print to PDF", so I used the xps

But the first OK (is the select of the printer) will execute your printer.BeginDoc and so on.
The second Cancel (since your...
Forum: General 04-19-2017, 08:53 AM
Replies: 7
Views: 2,569
Posted By Norrit
Then post some code on what you do, this should...

Then post some code on what you do, this should normally work
Forum: General 04-18-2017, 08:25 AM
Replies: 7
Views: 2,569
Posted By Norrit
What are you using, Printer.BeginDoc/EndDoc? As...

What are you using, Printer.BeginDoc/EndDoc?
As long as you haven't called the EndDoc you could call Printer.Abort (I think)

If not you should remove it from the print queue.
But the...
Forum: General 04-11-2017, 08:33 AM
Replies: 2
Views: 2,215
Posted By Norrit
I have a car, some engine parts, the car is a...

I have a car, some engine parts, the car is a Peugot body. When I start the engine I want it to start the engine. Please provide me a solution (step by step) to build this engine...

As you can...
Forum: General 03-14-2017, 08:45 AM
Replies: 4
Views: 2,767
Posted By Norrit
JSON example: Stackoverflow...

JSON example: Stackoverflow (http://stackoverflow.com/questions/31390545/how-to-parse-a-json-string-response-using-delphi)
But I'm not sure if D2010 has JSON already, I thought it did, but no...
Forum: General 03-13-2017, 11:11 AM
Replies: 4
Views: 2,767
Posted By Norrit
If you don't want a complete JSON implementation...

If you don't want a complete JSON implementation I would do some simple string-slicing

In pseudo:
Locate "token": in x
Find the position of the next " in x1
From this position find the next "...
Forum: General 03-13-2017, 11:07 AM
Replies: 6
Views: 4,161
Posted By Norrit
Copy is the bad solution, especially when you...

Copy is the bad solution, especially when you only copy 255 characters. Then you should copy using the Length(s). But it's easies to just uppercase the first character.
s := LowerCase(s);
...
Forum: General 02-27-2017, 09:37 AM
Replies: 1
Views: 1,894
Posted By Norrit
Position is for VCL controls, Bitmap is no VCL so...

Position is for VCL controls, Bitmap is no VCL so what do you expect Position.X and Position.Y to return? (other values then 0 would seem odd to me)
Forum: General 02-27-2017, 09:34 AM
Replies: 5
Views: 2,308
Posted By Norrit
What does your debugger say? Does it get...

What does your debugger say?

Does it get into your if-construction (FldDest.DataType=ftBoolean is correct)?

If so, what is the value of vl (and it's a bit strange to put a variant directly into...
Forum: General 02-22-2017, 08:59 AM
Replies: 7
Views: 2,209
Posted By Norrit
Instead of a temporary file name create a...

Instead of a temporary file name create a temporary (unique) folder for each mail. In there you don't have to use your temporary file names but you could use the correct names and then attach
Showing results 1 to 50 of 500

 
Forum Jump

All times are GMT. The time now is 10:10 PM.


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