Search:
Type: Posts; User: zeRoau
Search:
Search took 0.02 seconds.
-
June 15th, 2009, 08:42 AM
As far as I know atoi() won't work because of the '0x', If you HAVE to use a string then
strtol(), sscanf() and cilu's method above will all work
-
June 15th, 2009, 12:37 AM
off the top of my head you could
GetAsyncKeyState( strtol( a.c_str(), 0, 16 ) )
-
June 14th, 2009, 01:20 PM
isn't it
g++ *.cpp -o main
You'll need to compile all the files together, If it errors with this then paste the errors you get here.
-
June 14th, 2009, 01:06 PM
Heres a slightly modified version of code I was using in an App i wrote awhile back.
// Open Handle to the two files
HANDLE hFileOne = CreateFileA( "FileOne.txt", GENERIC_READ |...
-
June 14th, 2009, 02:09 AM
How can he search for '\' when the string is going to be C:stuffstuffmorestuff, They won't exist?
-
June 14th, 2009, 12:59 AM
string str1 ( "c:\stuff\crap\more stuff" ) ;
str1.find( "/", 0 );
o.O, You aren't going to be able to search for a "\" either.
I don't quite get your problem, in your OP you were saying...
-
June 13th, 2009, 11:30 PM
int GetFunctionSize( DWORD dwStart )
{
int i = 0;
for( i = 0; *( BYTE* )( i + dwStart ) != 0xC3; i++ )
continue;
return ++i;
}
-
January 8th, 2007, 11:40 PM
vasant21 is correct.
also it helps if you have cout here. :)
case '2' : switch (ch)
{
case '0' : cout << "You win! Good job.\n"; break;
case...
-
December 27th, 2006, 06:29 AM
Could you post the error?
-
December 23rd, 2006, 07:08 PM
The code i posted is working for me.
HWND hExplorer = FindWindow("IEFrame", 0);
Finds the Internet Explorer window.
-
December 23rd, 2006, 06:14 PM
I'm not quite sure i understand fully.
Is the program not creating 'test.txt'?
-
December 21st, 2006, 11:44 PM
Replace everything with what i posted but don't forget to keep
#include <Windows.h>
#include <fstream> // Yours had .h i think
using namespace std;
// .. The main function
-
December 21st, 2006, 03:04 AM
Personally i would use FindWindow/FindWindowEx as I am not too great with EnumWindows.
I came up with this
// To Complete .. "to keep the program running until i close it manually"
int...
-
December 20th, 2006, 06:25 AM
Try the Mobile development forum located at http://www.codeguru.com/forum/forumdisplay.php?f=35
-
December 20th, 2006, 03:06 AM
Hey Suresh.hc,
Please use [ code][ /code] tags in your post. (Without the space of course)
If your list box is a single-selection list box then why don't you get LB_GETCURSEL.
For Example:
-
December 18th, 2006, 09:49 AM
GetModuleFileName(NULL, Buffer, sizeof(Buffer));
Should be what you need though it does return the full path including the executable name.
To remove the executable name i guess you could do...
-
December 7th, 2006, 02:50 PM
'monthlyPay' hasn't been set a value yet.
in main change it to this
monthlyPay = monthPay(carPrice, dPayment, intRate, loanTime, monthlyPay);
eligible = suitable(custIncome, monthlyPay,...
-
December 4th, 2006, 01:55 AM
maybe something like
float Correction(float& fValue)
{
cin >> fValue;
while (fValue <= 0)
{
cout << "Please Enter A Number Greater Then Zero, Try Again " << endl;
-
December 4th, 2006, 01:10 AM
Try calling
LoadLibrary("Riched20.dll");
before DialogBoxParam
-
December 2nd, 2006, 11:48 PM
Could you post some code please it could help.
The first thing that jumps into my head is to run a check on the following in your callback function.
if (!IsWindowVisible(hWnd))
return...
-
November 27th, 2006, 09:02 AM
Take a look at the addStartup function it adds itself to startup. Why would you be creating a worm for a uni project :/
-
November 27th, 2006, 06:18 AM
You don't understand why it restarts at startup? just wondering if that was a question in your post
-
November 25th, 2006, 01:28 PM
I mean replace your calls to your functions Addition and Multiplication with the above code.
Example:
Addition(skill, probsCorrect);
now becomes
-
November 25th, 2006, 06:05 AM
InitiateSystemShutdown(NULL,NULL,0,TRUE,FALSE);
kinda obvious why it shutdowns. I doubt this is your source code if you didn't know why it was shutting down =/
-
November 25th, 2006, 03:32 AM
Change your code to this
probsCorrect = Addition(skill, probsCorrect);
// ...
probsCorrect = Multiplication(skill, probsCorrect);
|
Click Here to Expand Forum to Full Width
|