Click here to Skip to main content
15,891,431 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Thread vs Task, seeking advice before I write code, design point of view. Pin
Sascha Lefèvre14-Jan-16 9:40
professionalSascha Lefèvre14-Jan-16 9:40 
GeneralRe: Thread vs Task, seeking advice before I write code, design point of view. Pin
jkirkerx14-Jan-16 11:06
professionaljkirkerx14-Jan-16 11:06 
AnswerRe: Thread vs Task, seeking advice before I write code, design point of view. Pin
Wombaticus15-Jan-16 0:05
Wombaticus15-Jan-16 0:05 
GeneralRe: Thread vs Task, seeking advice before I write code, design point of view. Pin
jkirkerx15-Jan-16 6:06
professionaljkirkerx15-Jan-16 6:06 
GeneralRe: Thread vs Task, seeking advice before I write code, design point of view. Pin
Wombaticus15-Jan-16 6:19
Wombaticus15-Jan-16 6:19 
GeneralRe: Thread vs Task, seeking advice before I write code, design point of view. Pin
jkirkerx15-Jan-16 7:13
professionaljkirkerx15-Jan-16 7:13 
GeneralRe: Thread vs Task, seeking advice before I write code, design point of view. Pin
Wombaticus15-Jan-16 7:38
Wombaticus15-Jan-16 7:38 
GeneralRe: Thread vs Task, seeking advice before I write code, design point of view. Pin
jkirkerx15-Jan-16 9:00
professionaljkirkerx15-Jan-16 9:00 
The email relay sounds like a good idea. I should look into that. I wanted to do the Thread gig so later, I could expand it to pushing out emails faster.

This is for an eCommerce site that I wrote from scratch. All the other emails such as order confirmation and your order has shipped gets called by the main thread, and the worker thread loads the HTML Template, changes the field values, and sends it off. The HTML Template is a HTML Document in the App_Data the operator can change to their liking, so it's not hard coded.

Here's the story:

This post is for the Email Advertising Campaign. i originally wrote it as a web app on the back end of my eCommerce program. But when I upgraded my code to Entity Framework, I could not figure out how to talk to the database. So for Black Friday, I had to write Windows Desktop App really fast to send out the emails. That was my first sales campaign, which produced a ton of sales that weekend.

Then I expanded my program, for another sale, and another, more revenue came in. So I added more programs to match what I had on the back end of my web app. So now you can generate HTML templates to send, publish them, create jobs, send jobs by date, book jobs into the future. It's sort of a Swiss knife Windows Desktop App that does it all.

Then I decided to add the Windows Service that I broke back into the program to send in the background, and eventually put it back into my website to run on the server. So this new windows service kicked my butt in terms of design and security permissions. But I figured out how to make a web service on the website to use for data, and write binary serialization classes to the disk drive with permission for the Windows App and the Windows Service. Thought the treads would be the icing on the cake.

So Today
I'm sending emails now using the web service. Now I just need to write a binary file to the disk drive to store the current position of the job, in case the power goes out, or the computer / server is turned off so the service can resume it's duties. And a Task Bar program.

Your program sounds really cool, and I like the design.

I'm curious, what do you think of this Swiss Knife Windows App that I wrote about?
Think it's a waste of time?
Would you be interested in looking at the instruction manual for it?

The intent was to move the website back end to a windows app, and convert the back end into a simple mobile design for small task from the phone. Experiment with being able to do this without tunneling to the database server or punching holes in the firewall.
GeneralRe: Thread vs Task, seeking advice before I write code, design point of view. Pin
Wombaticus16-Jan-16 7:22
Wombaticus16-Jan-16 7:22 
GeneralRe: Thread vs Task, seeking advice before I write code, design point of view. Pin
jkirkerx17-Jan-16 6:59
professionaljkirkerx17-Jan-16 6:59 
QuestionHow to alert checked items from checkedlistbox Pin
Daniel Elmnas11-Jan-16 2:46
Daniel Elmnas11-Jan-16 2:46 
AnswerRe: How to alert checked items from checkedlistbox Pin
Richard Deeming11-Jan-16 3:57
mveRichard Deeming11-Jan-16 3:57 
QuestionWindows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
jkirkerx9-Jan-16 13:29
professionaljkirkerx9-Jan-16 13:29 
AnswerRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
Dave Kreskowiak9-Jan-16 18:17
mveDave Kreskowiak9-Jan-16 18:17 
GeneralRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
jkirkerx10-Jan-16 7:33
professionaljkirkerx10-Jan-16 7:33 
GeneralRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
Dave Kreskowiak10-Jan-16 7:41
mveDave Kreskowiak10-Jan-16 7:41 
GeneralRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
jkirkerx10-Jan-16 9:40
professionaljkirkerx10-Jan-16 9:40 
AnswerRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
Eddy Vluggen10-Jan-16 4:51
professionalEddy Vluggen10-Jan-16 4:51 
GeneralRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
jkirkerx10-Jan-16 7:38
professionaljkirkerx10-Jan-16 7:38 
GeneralRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
Eddy Vluggen10-Jan-16 11:11
professionalEddy Vluggen10-Jan-16 11:11 
GeneralRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
jkirkerx10-Jan-16 13:27
professionaljkirkerx10-Jan-16 13:27 
AnswerI merged all my common stuff into a common DLL, and got a Access denied from the folder, and not the file Pin
jkirkerx10-Jan-16 13:35
professionaljkirkerx10-Jan-16 13:35 
GeneralRe: I merged all my common stuff into a common DLL, and got a Access denied from the folder, and not the file Pin
Eddy Vluggen11-Jan-16 5:50
professionalEddy Vluggen11-Jan-16 5:50 
GeneralRe: I merged all my common stuff into a common DLL, and got a Access denied from the folder, and not the file Pin
jkirkerx11-Jan-16 6:23
professionaljkirkerx11-Jan-16 6:23 
GeneralRe: I merged all my common stuff into a common DLL, and got a Access denied from the folder, and not the file Pin
Eddy Vluggen11-Jan-16 8:46
professionalEddy Vluggen11-Jan-16 8:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.