Another WinApi wrapper function AtlMessageBox
dfz
Posts
-
How to use messagebox in ATL -
Good and Free PHP Editor/IDEI prefer SciTe. It is a very nice and light tool (not only for PHP). http://www.scintilla.org/SciTE.html[^]
-
Confirming When Exiting Without SavingHi, See the modified example below. I would suggest to use temporary functions to avoid javascript memory leaks. I hope this makes sense.
var isDirty = false; // this is the message we will show to confirm var default_message = "You have made changes to the data since last saving. If you continue, you will lose these changes."; var checkForChange = function(msg) { if (isDirty) return confirm( !msg ? default_message : msg ); } window.onbeforeunload = function() { return default_message; }
-
Confirming When Exiting Without Savingi have used onbeforeunload event to confirm leave, i.e.
window.onbeforeunload = function() { if (modified) return "Unsaved changes. Are you sure you want to leave?" }
-
Not able to get value of fiels by using $_POST in PHPIt is important to make sure PHP is working on your webserver. What output are you getting? Here is an example which should work: 1. first.php
<form method="post" action="second.php"> <input type="text" name="field1" /> <input type="submit" value="Send data" /> </form>
2. second.php<?PHP // print variables from POST scope. print_r($_POST); ?>
Good luck :) -
Files Drag operationHave you tried implementing IDropTarget in your tree control? http://www.catch22.net/tuts/dragdrop.asp
-
How to use exported classes from DLL without using header.Just a thought (may not work), but if your DLL is simple enough and doesn't require any specific definitions (i.e. structures, macros) maybe this code snippet can help:
typedef int (FAR * Func1_Substract)(int, int); HMODULE hMod = LoadLibrary(_T("test.dll")); Func1_Substract substract = reinterpret_cast<Func1_Substract>( ::GetProcAddress(hMod, "dll_substract_function")); int result = substract(10,10);