Search:

Type: Posts; User: freddie

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    586

    Here's a link to a tutorial of mine on this topic...

    Here's a link to a tutorial of mine on this topic (Custom Controls)....

    Fred's Tutorial #10: Building A Custom Control - A Simple Example

    The coding is in PowerBASIC but that doesn't matter...
  2. Replies
    2
    Views
    586

    HINSTANCE hInstance = (HINSTANCE)hwnd; A...

    HINSTANCE hInstance = (HINSTANCE)hwnd;


    A HINSTANCE isn't a HWND. That looks like a very suspect construct to me.

    It looks like you are trying to create a 'Custom Control'. A Custom...
  3. You need a setup program. You can actually write...

    You need a setup program. You can actually write them yourself, which is what I do. I would have responded to your question a long time ago if I had C or C++ code to share as an example, but the...
  4. Say RNBW, I'm kind of bi-lingual, or tri-lingual,...

    Say RNBW, I'm kind of bi-lingual, or tri-lingual, or whatever, as I've coded in all kinds of versions of basics, C, and C++ for like 30 years. If you really like basic like string handling, you...
  5. It was so long ago... Did some searching of...

    It was so long ago...

    Did some searching of some old interactions I had on another forum about this and came up with this...

    Client APIs | CQG, Inc.

    Seems to me I was helping a fellow...
  6. My first impression when I saw your post about...

    My first impression when I saw your post about this was that somewhere in my distant past I seem to recall encountering a Microsoft ActiveX Control that did this. A search revealed this...

    The...
  7. Replies
    17
    Views
    2,823

    It took me several years to master C. Prior to...

    It took me several years to master C. Prior to my starting to work on it, I did have various other programming experiences. I've never regretted the time I spent on it. As others have said, you...
  8. Replies
    24
    Views
    2,526

    I expressed that poorly. It was more a matter of...

    I expressed that poorly. It was more a matter of my bouncing back and forth between studying C code and PowerBASIC code side by side, which expressed the actual in memory foot prints of the objects,...
  9. Replies
    24
    Views
    2,526

    Wish I had time to play with your 'Math' Class...

    Wish I had time to play with your 'Math' Class example, but unfortunately I don't. Too bad, as I have one almost exactly like yours but based on COM and buildable to a dll. I had worked on that...
  10. Replies
    24
    Views
    2,526

    That's the only way to learn, i.e., playing with...

    That's the only way to learn, i.e., playing with it and writing code (and doing a lot of nasty casting! :)). I expect you see now why structs are usually used to define the VTable (all your member...
  11. Replies
    24
    Views
    2,526

    Just checked and both VTbl and pVTbl are typed as...

    Just checked and both VTbl and pVTbl are typed as size_t*, so I expect that could be eliminated.

    On another related issue, when I first started trying to grasp 64 bit C/C++ builds, i.e., moving...
  12. Replies
    24
    Views
    2,526

    Here would be the link showing how C code such as...

    Here would be the link showing how C code such as with CB could be made into a COM object in a dll, which could be used in other languages...

    COM Tutorial #2: COM In Plain C And Plain PowerBASIC...
  13. Replies
    24
    Views
    2,526

    In looking at what I posted yesterday, either the...

    In looking at what I posted yesterday, either the forum software messed up (unlikely), or I somehow failed to include the console run output from the CB example above. Here is that, that is, what...
  14. Replies
    24
    Views
    2,526

    The above is a whole lot to digest Asymtotic. I...

    The above is a whole lot to digest Asymtotic. I worked on stuff like that for maybe 6 months back when I was first learning COM and object architectures. I've got whole hard drives full of that...
  15. Replies
    24
    Views
    2,526

    Concrete examples should help. In Jeff Glatt's...

    Concrete examples should help. In Jeff Glatt's example he created an object containing only one interface. I consider that an over simplified case in that its not intuitively obvious how it extends...
  16. Replies
    24
    Views
    2,526

    As Laserlight said, structs are structs and...

    As Laserlight said, structs are structs and arrays are arrays. However, in the case of virtual function tables, which I believe are a fairly standard way of constructing a C++ object by a C++...
  17. Replies
    24
    Views
    2,526

    All good points, but I'll try to add something. ...

    All good points, but I'll try to add something. In the 1990s Microsoft was endeavoring to create component architectures, and, out of that came their COM/OLE (Component Object Model - Object Linking...
  18. Replies
    2
    Views
    1,182

    Of course. You call HeapCreate() without...

    Of course. You call HeapCreate() without persisting the returned HANDLE. Then you call HeapFree() where you specify freeing a memory allocation from a different heap from the one in which it was...
  19. To open a new window with the click of a button...

    To open a new window with the click of a button on your main or first program window, you need to execute another CreateWindow() or CreateWindowEx() function call, where the szClassName parameter is...
  20. Replies
    5
    Views
    1,162

    Command line compiling is great and its my...

    Command line compiling is great and its my favorite method but in most IDEs for Windows that I know of, if you include the *.rc file in the project with the other files, i.e., *.h, *.cpp files, the...
  21. Replies
    5
    Views
    810

    Maybe missing = sign???

    Maybe missing = sign???
  22. C Is Better?

    Interesting post. I went through all this around 2002 when .NET came out. Had to face some agonizing philosophical issues and make some hard choices in my life and career because of it.

    At...
  23. Replies
    25
    Views
    1,927

    Not sure its helpful though attacking someone's...

    Not sure its helpful though attacking someone's variable naming convention when all they tried to do was help another poster's request for sample code.
  24. Replies
    25
    Views
    1,927

    I can't say I enjoy multi threading, and did...

    I can't say I enjoy multi threading, and did appreciate that quote from Dennis Ritchie. I use multi-threading as little as possible. However, there are certainly a number of cases where it can't be...
  25. Replies
    9
    Views
    1,305

    It doesn't work to just use a text editor, e.g.,...

    It doesn't work to just use a text editor, e.g., Windows Notepad, or whatever, because, even if you invoke the build system (whatever it may be, e.g., GCC, MSVC, etc) from the command line, any error...
Results 1 to 25 of 145
Page 1 of 6 1 2 3 4