Crap everything, he forgot the _T macro. Also, you don't need the static. Correctly, it should read: const TCHAR *mykeyname = _T("Software\\MyCompany");
One Stone
Posts
-
RegOpenKeyEx and _UNICODE -
Free mdb database editor?Hi, do you know a free database editor for mdb databases? Something like Microsoft Access, but it must be free (also, no trial version). It doesn't need to have hundreds of features, just a small database viewer where I can quickly change some cells, not more. I searched around for hours now, but didn't find any..
-
Hey Guys Its me Psycho the Newbie again *DOH*It indicates that the implementation of the int __cdecl sumArray(int * const,int) function is missing.
-
My 3rd Linux experienceWell, but it was the very same version of Firefox! The latest one, 1.0.4 on both Debian and Windows systems. I thought Firefox would be portable. Why does it look different/crappy on Debian, but pretty good on Windows? (I love Firefox on Windows!)
-
My 3rd Linux experienceYesterday I tried the new Debian stable Sarge linux distro... But wait, first my two prior Linux experiences: The first Linux system I tried was a Suse distro a few years ago (v7 or so?). I was impressed by the graphical installer, but later more and more problems came up. I wanted to change the crappy black mouse cursor to a white one, like Windows has. But think of what? I couldn't find any dialog in KDE where you could configure the mouse cursor. I searched around in the internet a bit and found a detailed tutorial on how to set new mouse cursors. I downloaded a mouse cursor package having a neat white one and followed all steps in the tutorial. Guess what? Exactly nothing happened, it just ignored what I did. A bit later, I thought about installing a graphics card driver for my card. I downloaded the Linux driver from the NVidia page and started the installer. Unfortunately, it couldn't install the driver, since it didn't have the kernel sources (I know, such drivers are compiled into the kernel on Linux somehow)... So I went to the Suse package wizard and tried to install the kernel sources, which of course, failed... So, live without smooth videos and even forget about any 3D games. Yet a bit later I found a nice program I wanted to try. I downloaded the package and tried to install it. It failed because of some other missing libraries (not many, just 4 or so). I downloaded those 4 and tried to install them, they are based on some other ones... A bit nervous, I downloaded those others too and tried to install those. Guess what? Version conflict. Some time after this, I tried a new distribution: Debian testing. As I've read, the testing edition shouldn't be that unstable and should have a nice package management system (APT), so I downloaded it and tried it. Its installer wasn't that nice like the Suse ones, but I don't care much about this anyway. After having installed KDE and Gnome by hand using apt-get (I like this package management system of Debian!), I first tried Gnome. Actually Gnome seems to be just a limited KDE... Of course, it was pretty fast, but just about everything was missing or not there, where it should be (for example, almost no configuration options??). I just didn't like it. So, tried KDE again. Unfortunately, the whole new KDE was pretty unstable. When you tried the "quick directory browser" in the KDE start menu, it just hangs when you don't connect to the internet. I don't always want to be online, just to have that crappy directory browser working... Related to this, I could on
-
void F() or void F(void)?I prefer
void F()
, too. When you want to pass an integer, you sayint n
, when you want to pass nothing, just write nothing in this case. For me it's somehow contradicting, writing a 'void' into the parameters and then not passing anything... (though its meaning is clear) When you call a function, you also call it likeF();
and notF(void);
or evenF(no_this_time_i_dont_want_to_pass_anything);
. -
which encryption to use?Have a look at the Diffie Hellman[^] key exchange system. After you've agreed to a key, use a symmetric cipher like AES, Twofish, etc.
-
Why Release version don't Run. -
AllocConsoleLPDWORD is a pointer. You need to pass a valid memory location to the WriteConsole function, not just a random pointer. Also, cast the CString to a LPCTSTR manually, before turning it into a VOID*.
DWORD s = 0 ;
CString myStr = "\n";
HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE);
WriteConsole(h, (LPCTSTR)myStr, myStr.GetLength(), &s, NULL); -
Problem with pthread.And, what's the problem??
-
Height of status bar?Hello! How can I determine the height in pixels of status bars? The GetSystemMetrics function seems to give many such values, but doesn't support status bars?? Best regards
-
Microsoft Interview Experience Part IIThe second IQ question is simple, but what's the answer for the first one?? You have to pick many, at average half of the fruits, to know it exactly, don't you??
-
Shell extensions with C#?Hello! How can I write shell extensions with C#? (more specifically: context menu items in explorer) I'm looking for a nice tutorial like Michael Dunn's excellent article for MFC/C++[^], but using C#. I want to do some real shell programming, not just registry hacks[^]... Thanks in advance and best regards
-
Flippin coinsyaddaYoda wrote: we flip a coin 1000 times, then in a perfect enviroment 500 should be heads and 500 should be tails Most probably, but not exclusively. With a bit less probability you'll get 501/499. With even a bit fewer probability you get 502/498, etc. You will get 1000/0 some time, but this is really very unlikely (if you flip 1000 coins 21000 times, one time you'll get this; of course, in average).
-
CTP of Indigo releasedHi there! You've seen this already? Microsoft has released an early community technology preview of Indigo for MSDN subscribers. http://www.zdnet.com.au/news/software/0,2000061733,39184949,00.htm[^]
-
Firefox 1.0.1 is here :)Ummm... "Help -> About Firefox..." ?? Or "about:" in the address bar... Both display 1.0.1 for me.
-
Picture preview in WinXP?Hello! Under Win98 we had such a blue-to-white bar with hyperlinks on the left of the file view in the explorer. In this area, it has shown picture previews when you selected one... It looked like the left pane of the bitbasket... Doesn't WinXP have this? I haven't found it...? Thanks and best regards
-
Bitmap to jpeg conversionWithout an already made library? Hmm, good luck trying to implement the JPEG compression code yourself... Why not using the free CxImage library? I've used it several times and did everything perfectly. http://www.codeproject.com/bitmap/cximage.asp[^]
-
CString("hai").Format("hello");:wtf:
-
Help me to delete a DirectoryI don't think the last character is a space... I've tried this (created directory with space at the end) and successfully deleted it in the Explorer...