nullptr 167

on line 21, remove main. that comes after the semicolon.

nullptr 167

This compiles and runs fine with gcc compiler. I'd suggest stepping through with the debugger to find where the error is triggered. Hopefully someone with MS VC++ may chime in.

Sappie commented: couldn't resolve the issue with sort() and CompareWorkshops(), but tried overloading 'operator<' instead which worked. thanks anyway! +0

nullptr 167

At line 60 you declare float temp = 0;
Move the declaration to the top of main.

nullptr 167

Check your spelling. You have crt and ctr

nullptr 167

In line 21, you are printing the string 'y' as an integer (%d). Change it to %s as follows

printf("My first name is %s \n my last name is %s \n and I am %d years old\n", x, y, z);

nullptr 167

My preferred timer method is described here. What time span are you looking at to check for open windows?

nullptr 167

std::to_string((uintptr_t)healthDecAddress)
Yoni_2 commented: how can i convert the string to System String ? +0

nullptr 167

Try

void replacevalue(char **pinput1)
{
    char string[] = "here is the replacement string";
    strcpy(*pinput1, string);
}

nullptr 167

Capture.JPG

Windows 7x64 with Internet Explorer 11 - dead hamburger and overlap.

nullptr 167

nullptr 167

nullptr 167

Check your spelling on line 4, it should be WM_NOTIFY

rproffitt commented: No fitty it is. +14

nullptr 167

I get value answer 21 which looked like not the smallest integer

If you used 10000 instead of 1000 you would get 21.

rproffitt commented: Jackpot or Blackjack. +14

nullptr 167

nullptr 167

Use printf(" 10%% of people \n");

nullptr 167

In fact you've done a bad job of borrowing code from https://github.com/Metalaria/games/blob/master/sudoku/sudoku.c

nullptr 167

Your lphService variable is defined as a null pointer so it's not possible to return a handle for the service in the call to WFSOpen(...)
Either allocate memory dynamically for lphService or change the definition to:

HSERVICE hService = NULL;
~~
hResult = (WFSOpen(szLogicalName,WFS_DEFAULT_HAPP,"Epson Print",WFS_TRACE_NONE,TWO_MINUTES,RECOGNISED_VERSIONS,&SvcVersion,&SpiVersion,&hService));

nullptr 167

You can delete those logs as well as OTL.
It would be better if you ran Farbar Recovery Scan Tool.
Download FRST - Farbar Recovery Scan Tool and save it to your Desktop. (Select the version 32 or 64 bit that applies to your operating system.)

  • Right click FRST.exe and run as administrator. When the tool opens click Yes to the disclaimer.
  • Press the Scan button.
  • It will produce logs FRST.txt and Addition.txt in the same directory the tool is run from.
  • Attach both logs.

If you like, hold off on running FRST until you've upgraded the router firmware.

nullptr 167

Noor, did you upgrade the firmware on your router and are the DNS settings in your router still being changed?
If you've not upgraded the firmware, I'd do that first and see if the problem persists.

nullptr 167

Should I change the router password?

I'd definitely change the router password.

I'll write out some instructions to have a look at the PC you're on. Is it only Chrome browser that redirects to the ads?
What operating system are you running on your PC?

nullptr 167

Right click on your shortcut to notepad and Run as administrator.
Then click on File -> Open and browse to "C:\Windows\System32\drivers\etc\hosts"
Add the extra line then Save.

nullptr 167

If it was this - hxxp://www.flvto.biz/youtube-downloader/ - then the alert was likely for PUA (Potentially Unwanted Application) as the installer is bundled with OpenCandy.
As long as you were careful during the installation and opted out of any other software you were offered, then you have nothing to worry about.

nullptr 167

For S = 1/n, as 1 and n are both integers you are performing integer division. Assume that n = 4, then the answer is equivalent to asking "How many times does 4 go into 1" - answer = zero times.

To solve this, you need to make the first operand in the equation a float.
Your teacher said to do that by casting 1 as type float - (float)1
You could also write 1 as a float - 1.0, therefore S = 1.0/n

Ghost0s commented: thanks man :) +1

nullptr 167

The operator for cin should be >>

std::cin >> n;
std::cin >> x;

nullptr 167

As ddanbe pointed out, the byte value is being converted to an integer - BitArray(int32).
Effectively what you have written is:

BitArray bitArray = new BitArray(255);

255 bits all set to 0 (false).

nullptr 167

nullptr 167

Have you tried running Malwarebytes Anti-Malware?
There's usually an executable that auto starts with Windows that keeps installing the addon each time it's removed.

Minimalist commented: worked well, thanks +5

nullptr 167

Click the properties button, highlight 'Internet Protocol Version 4 (TCP/IPv4)', then click Properties.
Make sure that 'Obtain an IP address automatically' is selected.

nullptr 167

From line 45, you're exceeding the loop bounds, it should be

for (int column = 0; column < width; column++)
{
    for (int row = 0; row < height; row++)
    {
      //  
      //  
    }
}

Apart from that, I think you'll always find some discrepancies between the Screen DC and the DC that you blit it to.
I took a screen shot utilising GetDIBits. It looked exactly like my desktop, though there were differences between using GetPixel on the Screen DC and what was saved in my bitmap capture.

nullptr 167

typedef struct tagRGBQUAD {
  BYTE rgbBlue;
  BYTE rgbGreen;
  BYTE rgbRed;
  BYTE rgbReserved; // must be zero
} RGBQUAD;

Just mask out the most significant byte.
pPixels[idx] & 0xFFFFFF