How do I write this XML doc to a string rather than a file? Dim xmlr As System.Xml.XmlTextWriter xmlr = New System.Xml.XmlTextWriter("C:\test.xml", Text.Encoding.UTF8) ' add elements, etc.... m_xmlr.Close()
depotdog
Posts
-
How to write to a string rather than a file with XMLTextWriter -
Which encryption method to use?if you are putting the app into the public domain, then I suggest that you use at least des56. The hackers out there WILL try to break your encryption and if you use xor or bit flipping, they will break it and post the findings on a hundred hacker bulletin boards. MS has some simple envelope and password encrypt functions in their csp that make it easy or there are many examples out there. I bury a long password in code somewhere and use it as the password to encrypt/decrypt the envelope. Be sure to obfuscate your code or that part where the password is hidden to thwart decompliers. http://msdn.microsoft.com/msdnmag/issues/03/11/NETCodeObfuscation
-
Drop from Shell Dll - Strategy QuestionCan a C++ shell.DLL do a drop into an application that has drag-drop enabled? If yes, then does it make sense to search for the window handle to see if the app is running, if not start it with shell execute, then do the drop? Got any code or references somewhere? Thanks, DD
-
add an unmanaged dll to vb app deploymentThank you thank you. I followed your detailed instructions and I have installed it on a clean test machine successfully. Thank you for your valuable time and your level of detail. DD
-
Receive data in VB App from Shelldoesnt make sense. How does the application know that there is data on the clipboard to start the retrieval? Can the shell send the file list directly to the running app? How would the app be notified?
-
Receive data in VB App from ShellIs this accomplished through the clipboard?
-
Receive data in VB App from ShellI have the following code in a C++ shell extension from a user selecting files right click. I have the list of files and can iterate them through a progress dialog, but how do I send them to and receive them in a list box VB forms application? THanks. HRESULT CDllRegShlExt::InvokeCommand ( LPCMINVOKECOMMANDINFO pCmdInfo ) { // If lpVerb really points to a string, ignore this function call and bail out. if ( 0 != HIWORD( pInfo->lpVerb )) return E_INVALIDARG; // Check that lpVerb is one of our commands (0 or 1) switch ( LOWORD( pInfo->lpVerb )) { case 0: case 1: { CProgressDlg dlg ( &m_lsFiles, pInfo ); dlg.DoModal(); return S_OK; } break; default: return E_INVALIDARG; break; } }
-
add an unmanaged dll to vb app deploymentI have VbNet2005 desktop application that also needs to deploy a dll created in C++. How do I add the dll to the VB deployment project so that it gets installed at the same time? Thanks.
-
Registry entries don't show up Regedit, but are set in UI in VSI can successfully create registry keys (createkey)in debug mode of my project, but the key values set with (SetKey) don't seem to change, they always show up as default 0 when inspecting with regedit. The keys are there, but the values are always 0. I tried flush and close. I have tried rebooting and still the values are default 0 in regedit. Crazy thing is, when changing the registry values through my project UI, they appear to succesfully change in the UI, even after reboot of the computer, but when I go to look in Regedit, the default 0 is still there. Does VS work with a copy of the registry that will not show up in regedit???:confused: Thanks, Depotdog