Search:

Type: Posts; User: freddie

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    4,695

    Thanks John and Jim. Appreciate it. Working on...

    Thanks John and Jim. Appreciate it. Working on something, and the issue came up. My C++ is old, so I need to update.
  2. Replies
    3
    Views
    4,695

    Zero Initialization of struct, C++

    Say I have this struct...



    struct SomeStruct
    {
    int a;
    int b;
    int c;
    int d;
  3. Replies
    3
    Views
    5,831

    Reporting From Database

    The lowest level interface to relational databases is through ODBC - 'Open Database Connectivity'. It is a procedural interface rather than object oriented. I have to admit few people like it or...
  4. Replies
    2
    Views
    3,967

    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...
  5. Replies
    2
    Views
    3,967

    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...
  6. 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...
  7. Replies
    8
    Views
    2,856

    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...
  8. 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...
  9. 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...
  10. Replies
    17
    Views
    20,116

    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...
  11. Replies
    24
    Views
    16,064

    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,...
  12. Replies
    24
    Views
    16,064

    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...
  13. Replies
    24
    Views
    16,064

    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...
  14. Replies
    24
    Views
    16,064

    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...
  15. Replies
    24
    Views
    16,064

    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...
  16. Replies
    24
    Views
    16,064

    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...
  17. Replies
    24
    Views
    16,064

    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...
  18. Replies
    24
    Views
    16,064

    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...
  19. Replies
    24
    Views
    16,064

    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++...
  20. Replies
    24
    Views
    16,064

    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...
  21. Replies
    2
    Views
    3,247

    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...
  22. 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...
  23. Replies
    5
    Views
    6,366

    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...
  24. Replies
    5
    Views
    1,999

    Maybe missing = sign???

    Maybe missing = sign???
  25. 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...
Results 1 to 25 of 148
Page 1 of 6 1 2 3 4