News:

Facebook killed the radio star. And by radio star, I mean the premise of distributed forums around the internet. And that got got by Instagram/SnapChat. And that got got by TikTok. Where the fuck is the internet we once knew?

Main Menu

[VC++] DLL Demonstration!

Started by Joe, November 25, 2005, 05:05:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Joe

Yeah, this took me a good hour or so to figure out. Sam's Teach Yourself VC++ in 21 Days was teaching me wrong =p.

I was trying to figure out how to export some simple functions, so that I could begin writing JBBECore.dll, to ease the eventual complete move to VC++ over VB. Anyhow, I exported the VC++ MessageBox(HWnd, LPCSTR, LPCSTR, UInt) function (its just a wrapper, but oh well?) and an Addition(int, int) function I wrote. I also have a VisualBasic program that will call MessageBox() with "Hello World", then call it again with the result of adding 1+1. The DLL tells you when a process attaches/detaches itself to you (thats the DLL itself, not VB). Full source code is included.

http://www.javaop.com/~joe/VC++/DLL.zip

EDIT -
Omg grammar fix.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


Palio

Isn't that the one you wrote for me?  :D
SirPalioDude: fort knox and the US federal reserve would be empty without us :-P
iagox86: You have a good country for when playing Risk
iagox86: :-)
SirPalioDude: lol!

Warrior

One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

MyndFyre

Quote from: Warriorx86] link=topic=3916.msg41789#msg41789 date=1133470011]
VC++ isn't a language.
No, but it is a technology, and it is one that is difficult to figure out due to its sheer size.
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

Warrior

Don't know how it can be considered a technology especially since all I see close to techical is thier dumb IDEs.
The only thing I see hard to figure out is Windows horrible and redundant API.
Christ why can't they just be like everyone else they got to do things thier way which most of the time ends up being the bad way to go.

Additionally I don't think preappending a topic name with a "Techonology" is very approriate especially when most of what he posted was standard C++ with some Windows libraries slapped on it.
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

Joe

No Palio, I wrote the MathDLL specifically for you. =p
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.