But I don't want users to have to enter a password for two reasons: 1. A user shouldn't have to care about internal things 2. The user password (which equals the one hashed and put in the source) has to be given to each user If a train station is where the train stops, what's a workstation...?
Lakitu
Posts
-
Encryption - how do I store a password/key in my App? -
Encryption - how do I store a password/key in my App?Hi all, I'm working on a C# project and need to store sensitive data (things like authentication tokens for web services etc.). Because C# applications can easily be reverse-engineered I want to encrypt/obfuscate these values with one of the provided encryption classes. However, to decrpyt these values at runtime I need the key/initialization vector. These would need to be stored inside the application as well -> they're visible in a decompiler. That's some kind of "chicken and egg" problem, does anyone have a hint or solution for this? Thanks If a train station is where the train stops, what's a workstation...?
-
Installing a service without using ServiceProcessInstaller/ServiceInstallerHi, I need to install services dynamically at runtime, without using InstallUtil.exe or a setup project. Do I have to use the "old" Win32 service APIs like
CreateService
or is there a way to do this natively in the framework? If a train station is where the train stops, what's a workstation...? -
GetNumberFormat for integer valuesI don't get an error, I don't want to use the
NUMBERFMT
structure but use the user locale settings for the number format, only without the fractional part. Maybe there's an API to get the number format, but apparently it's notGetNumberFormat
:doh: And I wanted to avoid having to callGetLocaleInfo
for each member of theNUMBERFMT
struct. -
GetNumberFormat for integer valuesI'm trying to use the GetNumberFormat API for integer values. No fractional digits and no decimal seperator should appear in the output. I want to use the API to account for locale settings. The results should look similar to the file sizes in Explorer's File Properties dialog.
-
Saving/loading bitmapsI'm looking for a way to save data in the Windows BMP format. The code should run on Unix platforms, too, so API functions are not applicable. If a train station is where the train stops, what's a workstation...?
-
Real quick question...Use the
WideCharToMultiByte()
API. It's documented in MSDN. Set thecbMultiByte
parameter to 0 to determine the length of the target (ASCII) buffer. Then allocate achar
buffer and call the API again to do the actual conversion. If a train station is where the train stops, what's a workstation...? -
MultiSelect CFileDialog (Open)You have to use GetStartPosition() and GetNextPathName() to iterate through the list of files. If a train station is where the train stops, what's a workstation...?
-
Trouble with Serial programming in NTAfter you've opened the port with ::CreateFile you can use ::WriteFile to write to the port. Use ::SetCommState to control the DTR/RTS lines, the baud rate and parity settings via the DCB structure. If a train station is where the train stops, what's a workstation...?
-
InvokeHelper questionDLLs usually incorporate the TLB as a resource. OLe View can read those as well. Just load the dll (or exe) instead. If a train station is where the train stops, what's a workstation...?
-
Making accelerators work?In MFC accelerators can only be used in frame windows and their descendants because all accelerator translation happens deep down in the main message loop. Since (modal) dialogs have their own message loop, accelerators defined in the resource file do not apply. Maybe you can use a modeless dialog, but I'm not sure that will work as expected... If a train station is where the train stops, what's a workstation...?
-
InvokeHelper questionYou can use OLE View that comes with VC++ 6.0. You open a typelib, select the appropriate interface (probably an IDispatch-derived one). Browse through the methods and you'll notice ids. If a train station is where the train stops, what's a workstation...?
-
How do i know the complated path of a program?Use
GetModuleFileName()
If a train station is where the train stops, what's a workstation...? -
conversionUse the
OLE2T()
macro.
Look! They have the Internet on computers now! (Homer J. Simpson)
-
String problemSplit up the string using
strtok()
or theTokenize() CString
member if you're using MFC.
Look! They have the Internet on computers now! (Homer J. Simpson)
-
Getting version number of IUnknown interface?First of all, interfaces don't have version numbers, they are supposed to be immutable. You can get the version of the executable that implements the interface by using the
GetFileVersionInfo
and related APIs.
Look! They have the Internet on computers now! (Homer J. Simpson)
-
PostMessage ProblemTry passing 0x20000000 as lParam value. According to the docs, that defines the ALT key as being pressed.
Look! They have the Internet on computers now! (Homer J. Simpson)
-
GetLastErrorThat's really hard to tell without knowing the surrounding code.
-
Error when use IDiskQuotaUser interface.chkesp errors usually have their origins in passing around malicious pointers and/or wrong parameter sizes and counts. In this case it could be the
LONGLONG
value that's used in those calls. Happened to me once. :omg: -
Platform questionUnfortunately not... Transpareny was introduced in W2K (WinNT 5.0)