-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added build configurations for non-console windows application (i.e. invisible blat for scripting) #2
base: master
Are you sure you want to change the base?
Conversation
* Added build configurations for non-console windows application (i.e. invisible blat) Signed-off-by: Okkel Klaver <[email protected]>
If I understand your changes correctly the relevant difference is the linker option I am also not sure if we will update to VS2015 if it will break the build with VS2010. I add @ChipProgrammer as the main developer of blat. |
Along with /ENTRY:wmainCRTStartup, /SUBSYSTEM:WINDOWS and preprocessor Op 03-01-16 om 23:10 schreef tbeu:
|
Is it possible to use blat.dll to send emails instead of using blat.exe? This should prevent console windows from opening. I do not know the answer because I do not use VBA. In addition, does the VBA script give Blat the needed message body, either as a file name or by using the -body option? Chip |
I think it should be possible in VBA to send using blat.dll. Haven't Met vriendelijke groet, Op 4-1-2016 om 2:41 schreef ChipProgrammer:
|
Making these changes, /ENTRY:wmainCRTStartup, /SUBSYSTEM:WINDOWS and preprocessor definitions (changing _CONSOLE to _WINDOWS), do you still get open console windows when running your VBA program? Chip |
Nope, only /SUBSYSTEM:CONSOLE applications get the open console window. Met vriendelijke groet, Op 4-1-2016 om 20:25 schreef ChipProgrammer:
|
My main concern is for batch files, that these will wait for Blat to finish before continuing. If this works as before, then Blat's return value can still be checked. My testing with your changes, but without /ENTRY (this is the default anyway), shows my test batch works just like before. Thank you, |
VBA waits for blat to finish, so I would expect batch files to do so Met vriendelijke groet, Op 04-01-16 om 21:50 schreef ChipProgrammer:
|
I removed "/subsystem:console" from the link line, and have not seen any problems with the link or at run time. Chip |
When I alter the subsystem to 'not set' and remove the entry point blat Met vriendelijke groet, Op 6-1-2016 om 0:19 schreef ChipProgrammer:
|
The problem with making the changes you suggest is that Blat's console output does not work. If you were to give Blat an invalid command line option, you (the user) would not know because that information is no longer available. I will continue to build Blat as a console application, and I will resubmit updated build files to make sure this continues. Chip |
I wasn't suggesting to change anything, but adding a build configuration Met vriendelijke groet, Op 8-1-2016 om 6:40 schreef ChipProgrammer:
|
And moved to VS2015.
I'm using blat to send mail from my ms access database application in vba. Sending multiple mails leaves the computer unusable with many console windows popping up, preventing me from doing something else because the frozen console windows keep forcing to the focus.
Signed-off-by: Okkel Klaver [email protected]