RTollison
Members-
Content Count
107 -
Joined
-
Last visited
Everything posted by RTollison
-
Register COM Object for create process/Fightiing AntiVirus
RTollison replied to RTollison's topic in General Help
sorry should have added more details as usuall. the "files" are cobol programs that have to be compiled into a cobol object so the cobol runtime can use them. our programs are broken down into sub-folders say "AA" thru "ZZ". rather than compile every "file" every time, i wrote an app that allows me to select which folders to compile. only ones that have changes or the once a month all "files" compiled. originally i used the "WinExec32V2" to spin up a process for every file in the group. this was definitely the wrong approach when compiling all files. So i added threading and a thread limiter. then i could spin up say 50 threads with a different file in each. this would then only take about 10 minutes for all files. Then the thycotic AV came along and now this threading process takes about 12 hours for all files. the compiler program has been whitewashed. i can run it manually and the AV doesn't nag me about are you sure its safe prompts. it did before getting it whitewashed. but the thycotic AV seems to snag/delay the threads and i am trying to past it somehow. like have it check the first one and deam them all safe from there. long shot i know, but i really hate the once a month process because my pc comes to a crawl all day long. so we (myself and IT) thought/hoped that if i had a registered object that thycotic would not keep checking it over and over. i have been tinkerying with TDOSCommand to see if thycotic would let a direct command run without checking every one of them. got interupted for the past 2 days on other projects hopefully wednesday will be a good day for changes/testing. -
I am needing to add Windows certificate/codesign/whatever to my project. We have a corporate certificate and i am needing to figure out how to add it to my project so it show as trusted. where do i start in RAD Studio 10.2. NOTE: at this point, i am not sure what kind of file/certificate i will be given/using. Just told to add it to my project so our corporate AV would stop blocking the program.
-
Have apps that use the createprocess and some that use shell obj to call OS related things. Now IT is/has to lock down security on server and is planning on removing access to all cmd.exe(not sure what ALL means but guessing they are going to remove it) and the powershell and all of its function from users. Does anyone know if removing access to cmd.exe will break createprocess or shellobj? irony is that i don't have rights the rename the cmd.exe to test on my own.
-
FYI i do not have permission to run GPEdit.msc We are already pretty tight on security. Now we are looking to do the same with our clients and hosting servers. All i was hoping for was that someone else had already done something similar and knew for sure that createprocess still worked and that may shellobj would work but maybe some odd issues or whatever.
-
work from home, so home pc is work pc. yes i do have a home pc (windows xp retired) and installing a VM would require corporate permissions to get an admin to install. it can wait until we have to deal with it then can do the testing to see what is blocked. who knows IT just might allow some things after all. Thanks
-
I have a running app that has a bitmap object on it and i have a dll that creates a bitmap. without saving to disk or clipboard, i need to copy from dll bitmap to the app bitmap. i have the handle of the app in the dll and have the workings of trying to find the bitmap object in the app. but i need to figure out how would i go about copying the bitmap over.
-
Copy bitmap from one app to another app bitmap
RTollison replied to RTollison's topic in General Help
and to confirm the cobol side creates handle for the bitmap. it is defind in the cobol program as 01 A-BITMAP HANDLE. so it is not like a bitmap object in delphi. that again is an obstacle that requires me to copy via handle and not bit-by-bit (only guessing again). i guess i could create a bitmap in the dll and assign it the handle from cobol if that is possible, as long as i dont save the bitmap to disk. -
Copy bitmap from one app to another app bitmap
RTollison replied to RTollison's topic in General Help
i am hoping that since the signature comes from the CreditCard machine that they are always the same size. that is what i am hoping for then the copying of the bitmap wouldnt have to worry about the size. -
Copy bitmap from one app to another app bitmap
RTollison replied to RTollison's topic in General Help
that is why i was asking about copying a bitmap from dll to another bitmap in a separate app. in the cobol side the loadbitmapfromfile is what creates the bitmap and assigns it a handle. I was figuring on loading up a bitmap that is just empty/blank. then try to copy the dll bitmap into that hanlde. at this point i do not know if it will work but that is what i have to work with. -
Copy bitmap from one app to another app bitmap
RTollison replied to RTollison's topic in General Help
Ok here is overall process/issue. i have a microfocus cobol program that uses a runtime (exe) to open an cobol compiled object file. in that program it has logic for printing bitmaps. However, it requires that the bitmap be a saved file. I had created the dll to load base64 encoded data and converted to bitmap and saved to disk. Then the cobol program would read the file and print then delete the bitmap file. But the bitmap is for a customers signature that quality control says 'No you will not save it to disk and delete due to security reasons.' So now i need to change the process so that the dll can copy the bitmap to the cobol programs bitmap handle. i figure that i will have to change the cobol to open a blank/empty bitmap and then send that handle to the dll to get the signature bitmap loaded into the cobol program. Cobol side is limited in what it can do, so the dll was needed to read/convert/save the bitmap. Since this is not a full delphi process i just posted a general question and then would work out the details on my own. -
I am needing to create a dll that will have options for opendialog and savedialog. I have the dll working but had a dev question. there are lots of open save dialogs available from different vendors. i have a TMS, DevExpress, Delphi and JV versions of the component. Anyone have any idea as to any type of advantage i might gain using any one in particular over the others. Down the road i might be looking to make some kind of as yet unknown changes. Figured i would ask in case anyone else has been down this road. Maybe a different component altogether?
-
Calling a dll to display a calendar BUT need to stop processing windows messages
RTollison posted a topic in General Help
i have a calendar dll that pops up on the center of the form where it is called from. works fine but there is an issue. the calendar control is from TMS Software and i have worked with them but the issue doesn't happen to them. on the calendar control there are navigation buttons at the top of the control (previous year, previous month, next month and next year. The calendar is set to popup center of form (long story best solution) so if a developer of the application form put a button in a select spot on their form when calling the dll to popup the calendar IF the MOUSE is OVER any of the prev, next buttons i get an memory access violation, click ok and the calendar works great. move along. since that window are is limited if the user, say clicks the bottom right of a button then no error. But if they click the middle then the error pops up. So i know it has something to do with probably trying to get/display the Hints (my guess). i have sent a sample project to TMS and they don't get the error. so they sent me back the compiled project and I also don't get the error. Made sure that we are on the same version and we are. Now my question is this, is the a way to stop the processing of the hint while the control/form is being created. First thing the dll does is frmCalendar := TfrmCalendar.Create(nil); is there a way to stop hint message, create the control then enable hint messages? -
Calling a dll to display a calendar BUT need to stop processing windows messages
RTollison replied to RTollison's topic in General Help
I managed to modify the source for the plannercalendar control and commented out the offending code without affecting the control (on the surface) but it is working within my code and it suits my purposes. have tested in multiple projects with the plannercalendar and it is working fine everywhere that i use it. Thanks. -
I have a string in an odd format and am needing to change to datetime format. <DateTime>2021-06-25 08:04:09</DateTime> strtodatetime wants the date to be dd/mm/yyyy time is there a strtodatetime that uses a formatdatetime option?
-
thank you, i really appreciate the help.
-
Get rectangle of the button that was pushed on another form...
RTollison posted a topic in General Help
i have this routine to get the active window, that may have multiple buttons at various places on the parent window. when they user click on a button then i am calling a dll that currently tries to center itself on the parentwindow BUT i am needing to know if it is possible to get the rectangle coordinates of the button that actually got pushed. here is my current lines for gathering the window rectangle. ParentWindowHandle := GetActiveWindow; GetClientRect(ParentWindowHandle, Rect); is there a way to determine the button that was pushed and it location relative to screen so i can popup my control where the button is located and not in the center? -
Get rectangle of the button that was pushed on another form...
RTollison replied to RTollison's topic in General Help
Yeah the screen center seems ok for our clients and they can see the calendar popup pretty easy. when calling the dll we pass in a date that it will move the calendar to that date and when the user selects a date and clicks an OK button it sends the value back to the cobol program. pretty simple stuff. as for a mouse click not always used some users just use keyboard and are very adapt at using it. the buttons do not have a tab stop. the date field is the tab stop. like i said center of screen is fine, mgmt just asked if possible to put by button without a lot of effort and verification that it works in all situations. So thank you all very much. -
Get rectangle of the button that was pushed on another form...
RTollison replied to RTollison's topic in General Help
the GetFocus actually worked great but after i started testing the cobol programs and where it would pop up, it won't work out to well. some of our report type programs have these push-buttons at the bottom of the screen but the focus is at the top field on the screen. so as a user i could not want to change anything other than a date or multiple dates and just push the button at the bottom of the screen but the popup calendar is at the top. i checked if there was a way to force the focus to the button when pushed and there is not an option for down only that the button was clicked after the fact event. So i will do more thinking on this but in the mean time leave it as center of activewindow. -
Get rectangle of the button that was pushed on another form...
RTollison replied to RTollison's topic in General Help
i haven't tried it yet but i will do so today. -
Get rectangle of the button that was pushed on another form...
RTollison replied to RTollison's topic in General Help
i apologize for the lack of details. no excuses. i have been down this road to many times. was just wishing for a quick command like the getactivewindow but for a window control. even did a search for getactivewindow hoping some article would mention any info related to getting the control. Thats when i posted here doing the wish stuff for another command from people that would know. FYI my current dev language is COBOL and i have to tie into it for anything outside of it, such as this calendar dll. the original one was hokie and dated, so i created a new one that followed the parameters and decided that centering on the form was better than the main screen. that is when i was asked if we could popup at the button that was pushed. now we are here and i am going with not possible with 100% results. -
Get rectangle of the button that was pushed on another form...
RTollison replied to RTollison's topic in General Help
anything about the button is not available to me. the button click (not delphi) basically says call dll that will popup on the screen and allow user to select a date from a calendar. so my dll is only thing i have available to change. the original dev just created the popup calendar to be in center of the main screen which was ok since multi-screens weren't widely available. but then i got tasked with updating it and at the time the best i could do was the center of the active window. now i was asked IF i could change it and i said i would see what i could do. And so far it is not looking good. -
Get rectangle of the button that was pushed on another form...
RTollison replied to RTollison's topic in General Help
unfortunately no not in control of the source window. it used popup in the middle of the screen and i changed it to get the active window and put it in center of it, which is kind of odd since the button sometimes is near the bottom of the window. -
i am needing to update a null terminated string array. currently i have it in a string like this: one#0two#0three#0four#0#0#0#0#0#0#0#0#0#0.... i am needing to add five and six into the string but str := str + 'five' + #0 + 'six' + #0; doesn't actually work. what would i need to do to get the string from one#0two#0three#0four#0#0#0#0#0#0#0#0#0#0 to one#0two#0three#0four#0five#0six#0#0#0#0#0#0
-
i am on 10.2 and i used Remy's suggestion for cleaning of the string/stringlist then now when i set the registry value it and check it with regedit it doesn't warn me about the empty values. So everything seems to working at this point and will be getting sent over to some QA people to try and break it.
-
i got it all separated out into the stringlist and what looks to be a clean string with null separated values when I am trying to write to the registry (RegSetValueEx) but its after that and i run regedit and open the functions value to look at the info that it throws a warning about empty strings.