When you sell something you make revenue.
Revenue covers operating cost and profit
Revenue = operating cost + profit
Operating cost = investment that makes revenue
What makes revenue? The workers and the materials.
If you work in your company as CEO and head programmer or whatever, you can take out a salary.
Your investor does not work in your company, so he does not get a salary (unless you agreed on otherwise)
Also:
Profit = expansion budget + excess
The expansion budget goes into the operating budget of the next financial time segment. The excess is paid out as dividends to shareholders.
Your investor gets the dividends, if any. You can make it so that the dividends are 0 each month, in which case the investor gets nothing, but can still make a profit by trading his shares.
I assume you thought wages were paid via dividends, which is where I imagine your confusion stemmed from.