-
Content Count
2017 -
Joined
-
Last visited
-
Days Won
26
Everything posted by Attila Kovacs
-
Delphi 11.1 + patches - No debug source / breakpoints?
Attila Kovacs replied to Lars Fosdal's topic in Delphi IDE and APIs
ok, well, I'd try clean/build or remove the .dproj and reconfigure the project.. is this the only one IDE installed on that machine? -
Delphi 11.1 + patches - No debug source / breakpoints?
Attila Kovacs replied to Lars Fosdal's topic in Delphi IDE and APIs
and they are debug dcu's? (Use debug .dcus) -
I have it for two reasons, first, ppls. manual input is messy, second, if they copy-paste from websites it can be a strange thing in the edit field and they don't look.
-
It's a very-very bad suggestion. You should read an article how not to get into a spam db. First, you have to avoid sending emails to malformed email addresses. Nope. Also, there is a difference between private/non ~ emails, first / second+ contact, etc....
-
there is a PCRE regex in newer Delphi releases, yes, at some degree it will work
-
\p{L}+([-+.']\p{L}+)*@\p{L}+([-.]\p{L}+)*\.\p{L}+([-.]\p{L}+)*$ the devanagari fails
-
How to open a file in the already running IDE?
Attila Kovacs replied to aehimself's topic in Delphi IDE and APIs
I can't imagine what would take so long to load, opened datasets on the forms? Anyway, I can't reproduce, it opens everything just fine. The messages are the very same at the end of the day, you can log it yourself with spy++. -
How to open a file in the already running IDE?
Attila Kovacs replied to aehimself's topic in Delphi IDE and APIs
Nah, at the end user32.dll also using the windows messages so I'm pretty happy using as little dde@user32 as possible. But thx anyway, maybe others finding it useful. -
I don't believe you a word. You can't even debug. You are just trolling us.
-
Well, not much left, either hook it runtime or put your own Dialogs.pas / Vcl.Dialogs.pas into the project dir. Don't forget to implement the needed methods first.
-
Include External Text Files in Output Folder
Attila Kovacs replied to Jeff Steinkamp's topic in General Help
Just for curiosity, why don't you just copy the 4 files into the output folder manually and move on? -
CardForm := TCardForm.Create(Self)
-
How to open a file in the already running IDE?
Attila Kovacs replied to aehimself's topic in Delphi IDE and APIs
great! you can remove that comment in the middle 🙂 -
How to open a file in the already running IDE?
Attila Kovacs replied to aehimself's topic in Delphi IDE and APIs
@aehimself great work, nice catch. would you make a QC report? -
How to open a file in the already running IDE?
Attila Kovacs replied to aehimself's topic in Delphi IDE and APIs
hehe, suddenly, the results of "UnpackDDElParam" make sense 😉 so looks like it can be done without it and without FreeDDElParam and without the reimport edit: almost The lParam parameter of the posted DDE message that was received. The application must free the memory object specified by the lParam parameter by calling the FreeDDElParam function. - -
How to open a file in the already running IDE?
Attila Kovacs replied to aehimself's topic in Delphi IDE and APIs
pLo, pHi: UIntPtr; .. if UnpackDDElParam(AMsg.msg, AMsg.lParam, @pLo, @pHi) then .. GlobalUnlock(pHi); GlobalFree(pHi); -
How to open a file in the already running IDE?
Attila Kovacs replied to aehimself's topic in Delphi IDE and APIs
PeekMessage "Dispatches incoming nonqueued messages, checks the thread message queue for a posted message, and retrieves the message (if any exist)." "During this call, the system dispatches (DispatchMessage) pending, nonqueued messages, that is, messages sent to windows owned by the calling thread using the SendMessage, SendMessageCallback, SendMessageTimeout, or SendNotifyMessage function. Then the first queued message that matches the specified filter is retrieved." ok, that means, it should be fine -
How to open a file in the already running IDE?
Attila Kovacs replied to aehimself's topic in Delphi IDE and APIs
first of all, PeekMessage is blocking, therefor the repeat until is not just superfluous but could be a problem, do you know where exactly the AV happens? sorry, that was getmessage, the blocking one. well, then I don't think I can comment on that -
Try to find some resources on "relational database" first. Instead of stuffing everything into a giant BLOB in one record, split them up in other tables in many rows and have a reference to the main document.
-
System.Generics.Collections.TList.BinarySearch if there are duplicates
Attila Kovacs replied to dummzeuch's topic in RTL and Delphi Object Pascal
I'm not sure on that. Look the code in Berlin, it's searching from the left and returning the first matching element. Edit: oh no, I see. Edit edit, well, no-oh no, can't see again. 😄 If the list is sorted I can't create a list where binsearch would not return the first element in the list. Berlin U2. -
System.Generics.Collections.TList.BinarySearch if there are duplicates
Attila Kovacs replied to dummzeuch's topic in RTL and Delphi Object Pascal
Why did they change it in the first place? -
How to open a file in the already running IDE?
Attila Kovacs replied to aehimself's topic in Delphi IDE and APIs
you need one, a window handle too -
How to open a file in the already running IDE?
Attila Kovacs replied to aehimself's topic in Delphi IDE and APIs
Eventually I got rid of ackMode. I should really stop it now. 😄 uBdsLauncher2.pas -
How to open a file in the already running IDE?
Attila Kovacs replied to aehimself's topic in Delphi IDE and APIs
There is no such thing as a central DDE server or anything, the DDE lib sends a message to every enumerated main window a WM_DDE_INITIALIZE with Service and Topic and the application will either answer with a WM_DDE_ACK or not. That said, on 16349, or if the list is zero, you have to start bds.exe /np filename.pas. That is what's in the registry for bdsLauncher.