Why are you using UDP instead of TCP? TCP does pretty much what you need without too much overhead.
With UDP, you might even have funny problems in larger networks when a datagram may overtake...
You have to link the library of the exporting DLL (secondll) to the objects and libraries in your importing DLL (dlltest).
See project settings/link/input/object+library modules!
Indeed, I misunderstood your intention of using UDP to find out something about the local interface adapter.
I always use "GetIfTable" where you get all interfaces and their operational state!
But...
Not everything that is new'd by a User is allowed to be deleted by the User.
Frameworks like Qt for example take over the ownership for Widgets with a non-NULL-parent.
So you must not delete...
NMAKE is very limited in its features and I haven't found a way to do SUBST in NMAKE.
I would recommend porting to gmake instead, which is usually acceptable, as gmake can be invoked from DevStudio...
There are two things you can try:
(1) Pass a Ctring& into the DLL instead of returning a CString.
The problem will NOT disappear, but debugging is easier!
(2) Instead of returning a CString,...
Your commandline requires quoted strings!
Currently, CreateProcess tries to start C:\Program.exe because that's where the first blank separates program and parameters.
The rest of your commandline...
What are the functions supposed to do? From the code, it's impossible to tell, as it does not make any sense to me.
E.g., in
usResult = (usOutputBit | 0x8000) | usResult2;
usResult = usResult <<...
Actually, I think you will have further DLLs on your customers computers which will cause trouble, not only OPENGL32.dll. PGP Plugins for example love to pop into your applications address space by...
the first thing you need is a common timebase.
So if somebody enters a value in China lets say at 8:00 and somebody does the same at the very same moment in London (lets say local...
Easy, the difference is 8 hours expressed in seconds.
The Constructor you chose is a special constructor, as it makes a conversion to UTC. As GMT + 8 is 8 hours ahead of UTC, at least now in the...
See the XML SDK around MSXML Api. It contains an excellent access to XML. It can be downloaded from MS Homepage (SDK and separate Runtime Distribution).
I'd assume. in step 1 they use the IMAGEHLP Library to find out implicit linkage information and then in step 2 hook LoadLibrary[AW] to recursively apply step (1) on the newly loaded library....
To get real protection, you'd need a processor on the memory stick.
Otherwise, you'll have the problem of getting the (secret) key out of the stick for processing on the host computer and in this...
I think, Digital Fountain has a patent on all this. You could probably look up what they write in their patent.
But I think, you will run into a legal problem anyway ... :-(
I have used Frontpage 2000 for a large HTML Help project and actually - I would not do it again.
This has two reasons:
- Frontpage adds "nasty" code to the HTML-Code which lateron had to be...
Have you enabled IP forwarding on your computer?
This might cause your symptoms.
See IPEnableRouter in MSDN and your registry.
Beware: Disabling it might cripple your computer if it is used for...
The second if must must read --pThis->m_dwRef
(two minus signs) thus decrementing the ref-counter!
Once the references are down to zero, the object is deleted!