Search found 343 matches

by HsiaLin
Thu Sep 13, 2018 5:42 pm
Forum: Technical
Topic: please help about [ilink64 Error] Error: Could not write to
Replies: 6
Views: 29141

Re: please help about [ilink64 Error] Error: Could not write

Make sure you are running c++ builder with administrator rights.
by HsiaLin
Wed May 30, 2018 6:07 pm
Forum: Technical
Topic: IdHTTP question
Replies: 5
Views: 20716

Re: IdHTTP question

Threw together a test prog. I use XE5 and whatever Indy version that came with it. All i did was enable HandleRedirects, everything else is as it was dropped on form. I dont know what other settings would need enabled. I noticed the UserAgent setting might need to be more mainstream but other than t...
by HsiaLin
Wed May 30, 2018 1:59 am
Forum: Technical
Topic: IdHTTP question
Replies: 5
Views: 20716

Re: IdHTTP question

I`d rather use IdHTTP but i am not a network professional. I do like being able to DL via stream like IdHTTP does but i dont want to have to configure IT settings for every picture i want to DL off google images. "How do you have the TIdSSLIOHandlerSocketOpenSSL configured exactly?" Which one of the...
by HsiaLin
Fri May 25, 2018 3:18 pm
Forum: Technical
Topic: IdHTTP question
Replies: 5
Views: 20716

IdHTTP question

I have a IdHTTP and SSLIOhandler partnered together, they will download most http and https images i enter into it, but a few urls give the following error: First chance exception at $766BD722. Exception class EIdOSSLUnderlyingCryptoError with message 'Error connecting with SSL. error:14094410:SSL r...
by HsiaLin
Sun May 20, 2018 9:18 am
Forum: Technical
Topic: Get a list of scanners/printers
Replies: 6
Views: 18134

Re: Get a list of scanners/printers

After looking into it, an easier way to get printer names is just do it this way. Saves a lot of code. int x = Printer()->Printers->Count; TStringList *S = (TStringList*)Printer()->Printers; for(int t=0; t < x; ++t) { ComboBox1->Items->Add(S->Strings[t]); } S->Clear();
by HsiaLin
Sun May 20, 2018 8:14 am
Forum: Technical
Topic: Get a list of scanners/printers
Replies: 6
Views: 18134

Re: Get a list of scanners/printers

I collect all the devices in ComboBox. How to send a document for scanning after selecting in ComboBox? Thanks. If you are wanting to scan pictures or documents you will most likely have to use TWAIN services. I dont know of any other way. TWAIN is highly complicated unless you use a 3rd party comp...
by HsiaLin
Sat May 19, 2018 5:21 pm
Forum: Technical
Topic: Get a list of scanners/printers
Replies: 6
Views: 18134

Re: Get a list of scanners/printers

void __fastcall TForm1::FormCreate(TObject *Sender) { DWORD flags = PRINTER_ENUM_LOCAL | PRINTER_ENUM_CONNECTIONS; int level = 2; PRINTER_INFO_2* printerInfo; DWORD memsize, printer_count; EnumPrinters(flags, NULL, level, NULL, 0, &memsize, &printer_count); if (memsize < 1) return; BYTE* bytes = ne...
by HsiaLin
Tue Apr 24, 2018 9:19 am
Forum: Technical
Topic: Ambiguity between 'PACCESS_MASK', why?
Replies: 6
Views: 20489

Re: Ambiguity between 'PACCESS_MASK', why?

I used your code like this and it works perfectly. Perhaps its the order of the header files. //--------------------------------------------------------------------------- #include <aclapi.h> #include <stdio.h> #include <vcl.h> #pragma hdrstop #include "Unit1.h" //-----------------------------------...
by HsiaLin
Mon Feb 26, 2018 9:55 am
Forum: Technical
Topic: TTreeView colours
Replies: 5
Views: 20763

Re: TTreeView colours

been a while since i used TreeView but i think you have to use something
like this to make it bold

((TTreeView*)Sender)->Font->Style = TFontStyles() << fsBold;

and something like this to make it unbold

((TTreeView*)Sender)->Font->Style = TFontStyles() >> fsBold;
by HsiaLin
Thu Feb 15, 2018 2:08 pm
Forum: Technical
Topic: Telnet protocol and Memo
Replies: 10
Views: 35951

Re: Telnet protocolo and Memo

Have you tried setting the Memo font to terminal to see how that works.
by HsiaLin
Sun Feb 11, 2018 11:39 pm
Forum: Technical
Topic: How to make sure that the service is already running
Replies: 4
Views: 19326

Re: How to make sure that the service is already running

I dont know anything about postgres databases but would it be
possible to try to get the db version inside a loop of some type
then break out of the loop once the version was sent. You would
know its loaded up at that point.
by HsiaLin
Wed Jan 31, 2018 2:49 pm
Forum: Technical
Topic: use of undeclared identifier 'akBottom'
Replies: 12
Views: 49484

Re: use of undeclared identifier 'akBottom'

Code: Select all

 CheckBox->Anchors = CheckBox->Anchors << akTop << akRight;
by HsiaLin
Mon Jan 15, 2018 6:58 pm
Forum: Technical
Topic: Bitmap: yellow, fuchsia, green channels instead of RGB: why?
Replies: 6
Views: 21511

Re: Bitmap: yellow, fuchsia, green channels instead of RGB:

I`m not a graphics specialist so im just assuming here: for (int y=0; y < hit; y++) { SrcByte = reinterpret_cast<TRGBTriple*>(Source->ScanLine[y]); DstByte = reinterpret_cast<TRGBTriple*>(Dest->ScanLine[y]); for(x=0; x < wid; x++) { DstByte[x] = SrcByte[x]; DstByte->rgbtRed = Some Value; DstByte->rg...
by HsiaLin
Mon Jan 15, 2018 3:13 am
Forum: Technical
Topic: How can I remove Beep when I press Enter key?
Replies: 5
Views: 20613

Re: How can I remove Beep when I press Enter key?

If im not mistaken it was something like this.

Code: Select all

if(Trim(Edit1->Text).Length() > 0 && Key == VK_RETURN)
{
    Key=0;
   //do your thing here
}
by HsiaLin
Sun Jan 14, 2018 6:51 am
Forum: Technical
Topic: Bitmap: yellow, fuchsia, green channels instead of RGB: why?
Replies: 6
Views: 21511

Re: Bitmap: yellow, fuchsia, green channels instead of RGB:

Here is a bit of code from an old project i did that copied one bmp to another, i`m not sure what your final objective is but maybe you can use this in some way. you would just call it like this CopyBmp(Image2->Picture->Bitmap, Image1->Picture->Bitmap); //--------------------------------------------...