Tag Info

New answers tagged

-1

You have to export when compiling the dll, but import in the code using that dll interface. It is very common in C++ to use macros to do this automatically, that is detecting if we are compiling the dll's code or not and exporting or importing symbols respectively. A lot of libraries providing dll/so implement this kind of macro, so you can find a lot of ...


1

Beyond mocking the network interface, you don't need two physical machines for a system test: Disable/reenable the network card using scripts that do ifconfig/ipconfig. use a virtual machine for one end of the system and script it up/down or enable/disable the networking. Hooking into WinSock is way more work than you need to do here.


1

You test these by mocking the client and server and using IP Address 127.0.0.1 Depending on the test you are performing, it could be a simple matter of having the mock-server simply closing its end of the connection after some predefined time and then verifying that the client reconnected within the specified time-frame. It may be difficult to test some of ...


2

First, I think this is a perfectly good question. It's an interesting area and i don't get why was this downvoted. You don't need winsock you can disable the network a adapter and change it's settings programmatically... but network issues could be very tricky to simulate this way... ...


0

Whenever an error happens one of the following scenarios must be true: You have checked for that error You have not checked for that error In case of #2 your application will crash and it's your job to make sure it crashes gracefully (nice message to user, logs and so on). In order to do that you need to check for errors which means #2 is something you ...


4

You could, although I'm not certain I actually recommend it, embed the user's token in the filename of the installer, and put code in the installer to retrieve it. To prove I didn't make it up, Sophos anti-virus does this. Rather predictably, number one on their list of Most common Installation issues is "Renaming the installer file name". But I assume the ...


6

The standard solution which you have surely seen from other software vendors is to let the user download and install the software, maybe with or without the registration, but let the software itself lead the user through the registration process afterwards. Through that process, after the user is authentificated, the token is downloaded in form of a ...


3

There are two aspects involved in this question. Packaging of your application Distribution of user tokens For the point 1, I recommend the ClickOnce deployment model. I have made assumption you have built a Microsoft .NET framework application. Even if otherwise, you could implement something similar to ClickOnce deployment in your technology platform. ...


9

Downloadable scripts to be run - VBScript or Javascript - always sounds very fishy to me, especially since there are too many black sheep out there abusing such things to install malware. You don't want to train anyone using your program to trust, download, and use such scripts. Unfortunately I can't think of any secure fire & forget solution to this ...


1

This is a normal restriction in the Windows security model since NT3.x services that only the local service account is allowed access to the desktop when run as a service and it has other restrictions when you select that option. On Windows Server since about 2003, there is also a service interaction policy you may have to adjust. You may have to reboot the ...



Top 50 recent answers are included