Search:
Type: Posts; User: MagniB
Search:
Search took 0.01 seconds.
-
April 2nd, 2012, 12:37 AM
Thanks.
Looks like I should use this http://threadingbuildingblocks.org/ instead of STL.
-
April 1st, 2012, 11:54 PM
stl::list<MyType> myList;
void thread1() {
while (!terminateThread1) {
MyType temp;
myList.push_back(temp);
}
}
-
April 29th, 2011, 05:27 AM
-
April 28th, 2011, 10:11 PM
Let's say I write a code where program takes an integer from a user and then allocated an array. Like this:
int a;
char *b = 0;
cout << "Size of array: ";
(cin >> a).get();
if (a != 0) b =...
-
October 22nd, 2010, 06:44 AM
Yeah that's a really good idea. I was thinking of making limit of password and remarks to 1000 characters but, yeah I don't think it is really necessary. I will just make the limit to 255. Thank you...
-
October 21st, 2010, 07:10 AM
No good reason, 16 bit BCD can hold 9999 and I needed something that could hold up to 1000, so I thought why not use it. (extremely lame reason, I know) lol Limit is 1000 passwords per database. ...
-
October 21st, 2010, 05:27 AM
I said it can be easily guessed because, if user saves less than 100 passwords in the database, the high 8 bits of first 2 bytes BCD will be zero, if between 99 to 200, it will be 1. By looking at...
-
October 21st, 2010, 01:55 AM
Database design is really simple. First 2 bytes store the total number of passwords in database in 16 bit BCD format. And next 1 byte tells if encryption is being used or not, user will be able to...
-
October 20th, 2010, 09:06 PM
Hello,
I am writing a Password Manager program in C++ which generates and stores passwords in an encrypted database(a file in the hard drive). For encryption algorithm I decided to use Blowfish.
In...
-
October 10th, 2010, 06:58 AM
I thought if I use float as data type, compiler would know I am trying to get decimal number. HAHA
Anyway, either I have use give numbers as 1.0f, 2.0f, 3.0f etc etc or typecast it using (float)....
-
October 10th, 2010, 06:28 AM
Hello,
if I write:
float a = 50 / 8;
a will be equal to 6. And when I typecast it like this:
-
Ok, got it. Finally it worked. I needed to keep the ini file in Debug folder. lol
-
Nope, Igor's code is also giving "id = -1". lol why is this happening?
-
I did try and specify the full path but didn't work. And I also know GetPrivateProfileInt() API was deprecated in favor of the System Registry APIs, but in this situation, I have to use ini file.
...
-
Hello,
I am trying to read a ini file but having some problems.
Suppose I have a ini file, "infoDat.ini". It contains:
[Guy]
name=Magni
-
It's a WINAPI function. Read here: http://msdn.microsoft.com/en-us/library/ms679277(VS.85).aspx
-
Hello,
I set the frequency to 700 and time to 1000ms, like this:
Beep(700, 1000);
But I can't hear the beeping sound on my laptop. Why is it? My laptop is Sony Vaio. Do laptops have...
-
April 11th, 2010, 11:33 AM
If you want to get Integer from EDIT box, you can use GetDlgItemInt(). This way you don't have to convert char into integer.
-
April 10th, 2010, 04:39 AM
Ok, here's a source of sample program I created just now. This is basically how my main projects draws on Window. I wrote it in VC++ 2008 Express Edition IDE:
...
-
April 10th, 2010, 01:59 AM
Yes, every drawing on Window goes through WM_PAINT handler, except for two. 1st is where I copy the content of Screen to a compatible DC in WM_LBUTTONDOWN for undo like this:
case...
-
April 8th, 2010, 02:35 AM
Hi,
I have made a drawing program in C++ using Win32 API and GDI. User can draw on the window using Mouse just like in Windows Paint. There is also a floating dialog box(modeless) which contains...
-
April 5th, 2010, 06:44 AM
Oh, Thank you very much for your reply! :)
-
April 5th, 2010, 05:51 AM
Hi again. I am using VC++ 2008 express edition to make my project. I made a release build of it and in the Release folder, there were two files, Executable of the program and a file with. pdb...
-
March 29th, 2010, 06:33 AM
Oh! I tried to convert ss.str() to LPARAM and couldn't. Never thought of ss.str().c_str(). Thanks Marc!
-
March 29th, 2010, 06:17 AM
I used _itoa since my compiler (VC++ 2008 Express) tells me to use _itoa instead of itoa. I was thinking of using stringstream but found out that it cannot be converted to LPARAM.
|
Click Here to Expand Forum to Full Width
|