CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: felix1432

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. shared library export and calling convention

    Hey,


    I want to create a simple shared library that exports a simple C API, just like llvm-clang.

    The library should be compilable with any compiler and be used by a variety of languages,...
  2. Thread: inheritance

    by felix1432
    Replies
    5
    Views
    642

    Re: inheritance

    On a second though, would it be possible to accomplish this with a triple-inheritance, ie. deriving a class C from B?
  3. Thread: inheritance

    by felix1432
    Replies
    5
    Views
    642

    Re: inheritance

    that appears to be a pretty sly way of handling things. Thanks a lot.
    I hope to implement it this way tomorrow! :)
  4. Thread: inheritance

    by felix1432
    Replies
    5
    Views
    642

    inheritance

    hi,

    i have a quiet big base class A, which implements a method OnEvent(). This method is called when a certain event happens, and does lots of modifications to protected/private member-variables....
  5. Replies
    1
    Views
    1,398

    32/64/80 bit float conversion

    Hi,

    I am looking for a math/big num library, that allows me to convert 32/64/80 bot float numbers to string and vice versa.
    Precision & accuracy is of importance here, and since this is an IEEE...
  6. Replies
    27
    Views
    9,417

    Re: sorting a map by custom comparison

    yes, according to the first DWORD of the map.
    I need to sort it according to the second. :)

    Well, maybe a map is the entirely wrong approach to what i want to do:

    I parse a lot of DWORD-values...
  7. Replies
    27
    Views
    9,417

    sorting a map by custom comparison

    hey,

    so i have a std::map like this:


    map<DWORD,DWORD> mymap;

    now i want to sort it by the second DWORD value, and thus i have to implement my own comparison function and use sort() from...
  8. Replies
    9
    Views
    1,458

    Re: list: insert empty element

    You are, ofcourse, right and it seems i`ve been overusing ZeroMemory() in the past.
    I am re-working and updating some old code to use std:: classes, which then doesnt allow me to use ZM anymore....
  9. Replies
    7
    Views
    1,484

    Re: api hooks not called in win7

    this issue appears when using SetWindowHook(), i am talking about low level api hooks, as in overwriting the first 5 bytes of the target API with a jump to detour function. :)

    it`s been confirmed,...
  10. Replies
    7
    Views
    1,484

    Re: api hooks not called in win7

    response from where?
    any docs on this?
  11. Replies
    8
    Views
    5,105

    Re: Shlwapi import libraries

    you are, ofcousre, right.
    WHen i said "compile", i meant "creating an .exe file" :)

    i am on a XPSP3 machine with a VSC++2008 IDE, btw.
  12. Replies
    7
    Views
    1,484

    Re: api hooks not called in win7

    well, i inject my dll file via the CreateRemoteThread in LoadLibrary(), from an .exe file wich is "run as administrator". my dll file is injected just fine, the hooking procedure works fine, too.
    ...
  13. Replies
    7
    Views
    1,484

    api hooks not called in win7

    Hey,

    I´ve been using XP for ages, but i got a win7 system now and

    I am trying to hook APIs in a system process (winlogon.exe). This works fine in winXP, but i cant get it to work in win7:
    ...
  14. Replies
    8
    Views
    5,105

    Re: Shlwapi import libraries

    i`m using dynamic linking for now, but a solution to this would still be interesting, i think.
    Does the code i provided compile for you guys?
  15. Replies
    8
    Views
    5,105

    Re: Shlwapi import libraries

    Unicode, but MultiByte yields the same problem.
    It shouldn't matter, though, as i explicitly use the Unicode version of the API, right? :)
  16. Replies
    8
    Views
    5,105

    Shlwapi import libraries

    Hi,

    i am trying to use APIs defined in the Shlwapi.h header file:




    LPWSTR tt;
    SHStrDupW(L"ffff",&tt);
  17. Replies
    4
    Views
    2,162

    Re: wxwidgets: hello wrold

    but which library could that be?

    these are my project settings:




    edit 1:
    After a clean re-compile, the errors are gone. nice.
    Apparently there IS a difference between clean+buil and just...
  18. Replies
    4
    Views
    2,162

    wxwidgets: hello wrold

    hey,

    I just spent several hours setting up wxWidgets, specifically wxWindows.
    I followed several guides, none of which was complete and up-to-date, but in the end, i am positive i compiled the...
  19. Replies
    1
    Views
    840

    string to char[]

    Hey,

    today, my most-hated topic ever caught up with me, once again: ascii/binary conversions.
    I have an ascii text string, which contains a hexadeciam byte array:

    char tst[] = "AB0011CD";

    I...
  20. Replies
    9
    Views
    1,458

    Re: list: insert empty element

    thanks!

    i guess i wasnt fully aware of structs having constructors... ;)

    And you guys are of course totally right about ZeroMemory()-clearing an object, although it works in this case. :)
  21. Replies
    9
    Views
    1,458

    list: insert empty element

    Hi,


    i define a custom struct, which contains other custom structs.
    Then i define a stdc++ list of this struct.

    I now want to insert a totally empty instance of my custom struct into the...
  22. Replies
    4
    Views
    1,118

    floats and preciseness

    Hi,

    I have a project where i need numbers to be exact for up to ~5 decimal places.
    A float seems to be perfectly suited for this, but consider this piece of code:



    float f = 1234.1234;
    f...
  23. Replies
    12
    Views
    1,687

    Re: custom string class: "+" operator

    i know, and i am aware of this.
    In this case, i used "works" to indicate that the code was compiling with errors and working as expected - as opposed to the problem reported in post #1.

    Am i...
  24. Replies
    12
    Views
    1,687

    Re: custom string class: "+" operator

    thanks! :)
    decleared it outside the class as a friend function.Works perfectly. :)



    friend xstring operator+(char* ccstr, xstring& str);

    xstring operator+(char* ccstr, xstring & str)
    {...}
  25. Replies
    12
    Views
    1,687

    Re: custom string class: "+" operator

    could you explain this in greater detail? I dont really understand what you mean... ;)

    It`s true, the std::string lib that comes with VS doesnt support this...it even rises a memory allocation...
Results 1 to 25 of 85
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured