Chris Maunder wrote: unless you seed and encrypt the id. Easily done using MD5 methinks?
Another option would be to download a customer specific encrypted binary datafile (a la the old "license key file"s of yore) that would be accessed by the (generic) app when making the request. There are ways to prevent the license file from being used by the downloader app on another machine.
The other 'old way' would be to patch a copy of the .exe.
0. Write application with a global variable that is initialized with some distinct data. 1. Server gets new registration and creates an encrypted blob of the user information. 2. Server creates a copy of the .exe to be downloaded and writes the encrypted blob over the place where the distinct data is. 3. Now when the app is run by the user the data in the global variable is passed, decrypted, and the user information used for the connection.
This really does 'stamp a user's ID onto the application' which means all copies the user makes (and may give to friends) will use this information ... although if you use the ethernet MAC as part of the user information you could prevent this.
This method would have whatever drawbacks you felt 'dynamically building an install file on the fly in order to include a resource file with the user ID' has.
I have a serrious problem.I've developed an application on VC6 that used to work fine. Now I have converted it on VC.NET 7.0 and builded in RELEASE configuration. The problem is that it only works on my computer. On other computers that don't have VC installed it just doesn't start. If started with depends.exe (XP Support Tools) it gives the following error:
Second chance exception 0xC00000005 (Access violation) occured in "NTDLL.DLL" at address 0x77F8243D Exited "program" with code 128(0x80)
They have all the necesary dlls. What should I do? I'm disperate. Could it be because they don't have the .NET framework installed?
There are no skinned UI controls in DirectX. Everything is completely drawn and operated by you.
First, design the controls using, for example, a drawing or a 3D-modelling program (a picture, for example). Then use DirectDraw or Direct3D (where appropriate) to display this drawing/scene on the display.
Naturally, in order for this to work, you must also set up an event-map for the display. In DirectX, this event-map is also created manually. You can only monitor for events fired on input devices (such as a mouse click), and then use a reference drawing to determine if the mouse was over an object/piece-of-drawing that causes some event.
For a compete example on the matter, see a set of GameDev.Net hosted articles. A link to the article list is provided here. See the first topic "Implementing a GUI using C++ and DirectX". Alternatively, use this link to download the entire documentation as an RTF file for off-line reading.
The article writer assumes that you have a solid basis in C++, Win32 API and the event-driven system that operates behind Windows OS Family. If any of these is lacking, you'll find the article series difficult to understand.
Also, for future reference, for all your game programming needs, first consult the VERY comprehensive article list of GameDev.Net.
---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.
I have take this sample program at microsoft.com ms knowledgebase 238228 how to create office2000com addin in vb and trying to create addin for office application. I am using the sample with IDTExtensibility2. the problem is when using this sample i can't get the event to DocumentBeforeSave,DocumentBeforeClose some how anyone has sovled this problem?
IXMLHTTPRequestPtr pXMLHTTPReq = NULL;
CString strURL = "my.url.com";
pXMLHTTPReq->open("GET", (LPCTSTR)strURL, VARIANT_FALSE);
// if you are using DDX...
m_strRichTextBox = (LPCTSTR)pXMLHTTPReq->responseText;
// otherwise just set the window text...//// or if you want to load into an XML Document to do post-processing...
IXMLDOMDocument2Ptr pXMLDoc = NULL;
// post-processing here
// Failed to load the XML...
TRACE1("Exception: %s", e.Description())
curiosity5374 wrote: What is the CallBack function?
A user supplied function. (Example: WndProc)
curiosity5374 wrote: How to use a CallBack function?
A callback (function pointer) is usualy passed as an argument to anouther function, so that it can be called back to process some of the information required for that function. Examples: 1) qsort(elem1,elem2,compare) where compare is the callback function. 2) SetTimer(hWnd,nIDEvent,uElapse,lpTimerFunc) where lpTimerFunc (timer procedure) is the callback function.
curiosity5374 wrote: When to use?
When a function you are calling requires it, or when a structure (or class) requires it as a member variable (normaly passed as argument to some other function).
I currently have both a keyboard and mouse hook (both non-low-level) to monitor various events. Occassionally, I need to block both types messages after my hook function processes them, so the hook Proc function returns -1. The problem is that the mouse hook is inserted first, and so when that function returns -1, the keyboard proc is never called, so my application can't process the events it needs to. Is there some way I can work around this or should I change my hook setup? According to MSDN, a JournalRecord hook shouldn't modify the messages that it recieves. So any suggestions would be appriciated.
I am having a problem with a treeview not showing tooltips. I'm using Borland builder C++ which uses VCL (MFC for Borland).
The treeview has the TVS_INFOTIP style set but not the TVS_NOTOOLTIPS style. I have verified that the WM_NOTIFY message is not getting sent to the parent window or the treeview itself. So unless I am missing something, the TVN_GETINFOTIP notification message is not being sent.
Has anybody else run into this type of problem?
I'm going to patent thought. I have yet to see any prior art.
Well, I figured out what my problem was. I USE $%@@ing Borland Products. Stupid software deletes the window and recreates it when you try to re-parent a form window. This results in your tooltip controls attached to the treeviews being deleted.
I HATE VCL!!!!
I'm going to patent thought. I have yet to see any prior art.
Last Visit: 31-Dec-99 19:00 Last Update: 25-Feb-17 16:24