Search:

Type: Posts; User: Devils Child

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. That's why I don't call it "int main", but "void...

    That's why I don't call it "int main", but "void Main". Is this still poor design?

    Anyway, I still didn't manage to get this to work with the code you posted. What am I doing wrong?
  2. I don't think this is poor practice. It...

    I don't think this is poor practice. It simplifies a lot to the user of the DLL.

    What do you think I should do instead?
  3. But how does SDL encapsulate main() ? I know that...

    But how does SDL encapsulate main() ? I know that SDL does this, but I just can't figure out how...



    I know. I called it like this so it will not be in conflict with the "true" main function...
  4. Put WinMain in DLL which then calls MyMain() in exe project

    Hello,

    Let's say I have an executable and a DLL. The executable uses the DLL. What I'm trying to achieve is to encapsulate the WinMain Method, like this:


    int WINAPI WinMain(HINSTANCE...
  5. Replies
    11
    Views
    3,386

    The transfer rates are slow, when using such...

    The transfer rates are slow, when using such small packet sizes. For example 1400 bytes packet size slows the speed down to 5 MB/s. It seems to be some kind of coding issue...
    Btw: you seem to have...
  6. Replies
    11
    Views
    3,386

    Ok, good point. So here is the source code of the...

    Ok, good point. So here is the source code of the most important parts:

    This happens, when a client joins the server. Here, the data is read until the connection is closed.

    private void...
  7. Replies
    11
    Views
    3,386

    UDP isn't much faster, because of the datagram...

    UDP isn't much faster, because of the datagram size. When I'm sending 1400 bytes or 10 KB via UDP, the speed is between 5 MB/s and 30 MB/s. When using TCP and 1400 bytes it is also 5 MB/s. But using...
  8. Replies
    11
    Views
    3,386

    Both machines have about the same performance....

    Both machines have about the same performance. The firewall doesn't seem to slow down anything (same speed when turned off).
    I will try it with UDP now.
  9. Replies
    11
    Views
    3,386

    Uisng 1400 bytes, it is far slower (say 5 MB/s)....

    Uisng 1400 bytes, it is far slower (say 5 MB/s). With 512 KB packets the speed is about 60 MB/s.
    the more data I send, the faster it gets... Don't know why.

    This is the other side, reading the...
  10. Replies
    11
    Views
    3,386

    Well, it would lower the CPU usage, but make the...

    Well, it would lower the CPU usage, but make the test results useless.. any other suggestions?
  11. Replies
    11
    Views
    3,386

    Gigabit TCP Transfer

    Hello,

    I'm trying to achieve gigabit file transfer in c#. It is a speed test, so there is a packet of bytes, which is send out until the speed test is done.


    while (!Stopped)
    {...
  12. ok. i guess i'll choose the PATH variant. ...

    ok. i guess i'll choose the PATH variant.

    thankx guys!
  13. the PATH variable is worh an idea, but has to be...

    the PATH variable is worh an idea, but has to be set up before the application starts. and that also makes it less dynamic... any chance on using LoadLibrary without the .lib files?
  14. i can't remove the pragma, because it then sais...

    i can't remove the pragma, because it then sais "unresolved external symbol". so the .lib file is somehow essential...
  15. i guess you can only link .lib files, right? i...

    i guess you can only link .lib files, right?
    i put the .lib files in either the executable directory or the dll directory, none works. the linker still sets the DLL dependency so loading the dlls...
  16. i'm using this #pragma comment(lib, "SDL.lib")in...

    i'm using this
    #pragma comment(lib, "SDL.lib")in order to link the .lib file with my project. that seems to be why the executable dependencies are set to eg. SDL.dll. that must be why it tries to...
  17. i can't debug it. i just found out, that the...

    i can't debug it. i just found out, that the error occurs, before the program is started. before main() is entered, the program fails.
    are there any pragmas for DLL directories? because it seems...
  18. seems like a nice and simple solution, but ...

    seems like a nice and simple solution, but


    SetDllDirectory("C:\\bin");
    LoadLibrary("c:\\bin\\SDL.dll");

    using this, it's still not working, even if used at the start of main().
    for testing...
  19. Load DLL from other folder than the current

    Hi!

    so i didn't want to spam my src directory (VS2010) with DLLs and decided to gently move them into an other directory. of course, the application wouldn't find them there, so i tried this:

    ...
  20. Replies
    5
    Views
    2,269

    Well, if it really can't go below 1 KB without...

    Well, if it really can't go below 1 KB without compability issues, then i guess i can live with that :)

    thanks for helping!
  21. Replies
    5
    Views
    2,269

    Hm... do you have any other ideas? like...

    Hm...

    do you have any other ideas?
    like hand-crafted PE binaries? i haven't found any examples yet... do you have any?
  22. Replies
    5
    Views
    2,269

    I just got the weird feeling it has to do with...

    I just got the weird feeling it has to do with x64 bit systems. but /align:8 doesn't help either...
  23. Replies
    5
    Views
    2,269

    MASM -> /ALIGN:4 doesn't work

    Hey,
    if there are any MASM coders, please help me out!

    i'm trying to achieve smaller executable sizes using /ALIGN:4
    but all i get is an application error (0xc0000018), when the executable is...
  24. Replies
    9
    Views
    2,732

    that webbrowser example of you seems to be the...

    that webbrowser example of you seems to be the way to go, but it uses 100 % CPU and somehow does not load anyway?
  25. Replies
    9
    Views
    2,732

    I just checked out these JS interpreters. they...

    I just checked out these JS interpreters. they seem to be able to evaluate functions like "x*2" but cannot execute a whole HTML page?

    any suggestions? what interpreter to use?
Results 1 to 25 of 244
Page 1 of 10 1 2 3 4