Author Topic: [VC++] DLL Demonstration!  (Read 5235 times)

0 Members and 1 Guest are viewing this topic.

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
[VC++] DLL Demonstration!
« on: November 25, 2005, 05:05:13 pm »
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.
« Last Edit: November 25, 2005, 05:07:44 pm by Joe[e2] »
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Palio

  • The Bunny Hugger
  • Newbie
  • *
  • Posts: 43
  • The Bunny Hugger
    • View Profile
    • GamerGang Hosting Solutions
Re: [VC++] DLL Demonstration!
« Reply #1 on: December 01, 2005, 12:34:23 pm »
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!

Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: [VC++] DLL Demonstration!
« Reply #2 on: December 01, 2005, 03:46:51 pm »
VC++ isn't a language.
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

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: [VC++] DLL Demonstration!
« Reply #3 on: December 01, 2005, 05:49:37 pm »
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.
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: [VC++] DLL Demonstration!
« Reply #4 on: December 01, 2005, 06:50:46 pm »
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

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: [VC++] DLL Demonstration!
« Reply #5 on: December 01, 2005, 07:21:43 pm »
No Palio, I wrote the MathDLL specifically for you. =p
I'd personally do as Joe suggests

You might be right about that, Joe.