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?
Type: Posts; User: Devils Child
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?
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?
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...
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...
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...
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...
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...
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.
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...
Well, it would lower the CPU usage, but make the test results useless.. any other suggestions?
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)
{...
ok. i guess i'll choose the PATH variant.
thankx guys!
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?
i can't remove the pragma, because it then sais "unresolved external symbol". so the .lib file is somehow essential...
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...
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...
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...
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...
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:
...
Well, if it really can't go below 1 KB without compability issues, then i guess i can live with that :)
thanks for helping!
Hm...
do you have any other ideas?
like hand-crafted PE binaries? i haven't found any examples yet... do you have any?
I just got the weird feeling it has to do with x64 bit systems. but /align:8 doesn't help either...
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...
that webbrowser example of you seems to be the way to go, but it uses 100 % CPU and somehow does not load anyway?
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?