nullptr 167 Occasional Poster

Try something like this:

WCHAR value[] = L"Some Proxy";
DWORD len = (lstrlenW(value) + 1)*sizeof(WCHAR);

lReg = RegSetValueExW(
    hKeyp,
    L"ProxyEnable",
    NULL,
    REG_SZ,
    (LPBYTE)value,  
    len    
);
nullptr 167 Occasional Poster

I'll comment the code, I gather that the RegCreateKeyEx call succeeds.

lReg = RegSetValueEx(
    hKeyp,
    L"ProxyEnable",
    NULL,
    REG_SZ,
    (LPBYTE)&value,  // where is the value?
    sizeof(value)    // for a REG_SZ this should be the string length in bytes including the terminating null
);
Derkarol commented: the Value should be initialzied earlier like in the second part of my code.. but i do not know which datatype i exactly need and in which syntax :( +0
nullptr 167 Occasional Poster

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

nullptr 167 Occasional Poster

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 Occasional Poster

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

nullptr 167 Occasional Poster

Check your spelling. You have crt and ctr

nullptr 167 Occasional Poster

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 Occasional Poster

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

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

Try

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

Capture.JPG

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

nullptr 167 Occasional Poster
nullptr 167 Occasional Poster
nullptr 167 Occasional Poster

Check your spelling on line 4, it should be WM_NOTIFY

rproffitt commented: No fitty it is. +14
nullptr 167 Occasional Poster

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 Occasional Poster
nullptr 167 Occasional Poster

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

nullptr 167 Occasional Poster

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

nullptr 167 Occasional Poster

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 Occasional Poster

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 Occasional Poster

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 Occasional Poster

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 Occasional Poster

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 Occasional Poster

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 Occasional Poster

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 Occasional Poster

The operator for cin should be >>

std::cin >> n;
std::cin >> x;
nullptr 167 Occasional Poster

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 Occasional Poster
nullptr 167 Occasional Poster

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 Occasional Poster

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 Occasional Poster

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 Occasional Poster
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

nullptr 167 Occasional Poster

Something like:

for (int h = 0; h < height; h++)
{
    for (int w = 0; w < width; w++)
    {
        // do whatever
        // pPixels[w + h*width];
    }
}
nullptr 167 Occasional Poster

Try EM_LINEINDEX message, specifying -1 for the wParam

cambalinho commented: thanks for all +3
nullptr 167 Occasional Poster

I think the teachers of these coding classes tell their students "If you have any problems, just copy/paste your homework on Daniweb - the people there really dig that kind of thing".

jwenting commented: that has been observed I think, yes +0
Dani commented: Yes, this does happen. I've witnessed it firsthand. +0
rproffitt commented: That's it. +0
nullptr 167 Occasional Poster

Here's your code, formatted and with curly braces as ddanbe explained.

    #include <stdio.h>

    int main(void)
    {
        int w;
        double v, s, t;

        printf("Dieses Programm berechnet Geschwindigkeiten, Wegdifferenzen und\n"
        "Zeitdifferenzen fuer eine gleichfoermige Translation.\n"
        "1 ... Berechnung der Geschwindigkeit\n"
        "2 ... Berechnung der Wegdifferenz\n"
        "3 ... Berechnung der Zeitdifferenz\n");
        printf("Bitte waehlen Sie aus:"); scanf("%d", &w); getchar();

        if (w = 1)
        {    
            printf("Wegdiffernz (in m):\n");        
            scanf("%lf", &s);   
            getchar(); 
            printf("Zeitdiffernz (in s):\n");      
            scanf("%lf", &t);   
            getchar(); 
            (v = s / t);
            printf("Ergebnis:\n Geschwindigkeit: %lf m/s", &v);
        }

        else if (w = 2)
        {    
            printf("Geschwindigkeit (in m/s):\n");  
            scanf("%lf", &v);   
            getchar();
            printf("Zeitdiffernz (in s):\n");       
            scanf("%lf", &t);   
            getchar();
            (s = v * t);
            printf("Ergebnis:\n Wegdifferenz: %lf m", &s);
        }

        else if (w = 3)
        {    
            printf("Geschwindigkeit (in m/s):\n");  
            scanf("%lf", &v);   
            getchar();
            printf("Wegdiffernz (in m):\n");        
            scanf("%lf", &s);   
            getchar();
            (t = v * s);
            printf("Ergebnis:\n Zeitdifferenz: %lf s", &t);
        }

        return 0;
    }
nullptr 167 Occasional Poster

My main issue is the with navigating to a page (e.g page 3) of a thread. I either have to scroll to the bottom of the first page to be able to select the page or manually edit the URL.

diafol commented: Agreed +0
nullptr 167 Occasional Poster

From what I see at a glance, you've declared a class G_master
Above that you have variables with the same names as variables and functions in your class.
Many of the class functions are undefined and some make no sense.
e.g

    void G_master::respond()
    {
        switch (m_choice)
        {
        case 1:
            {  Number_guess ng; 
               ng.conversation();
               break;
            }
        case 2:
            {  Card_guess cg;
               cg.conversation();
               break;
            }
        default: break;
        }
    }

Where is m_choice declared and how is m_choice passed to ::respond()?
Then you have Number_guess ng; - Number_guess is declared as an integer, so how would this integer have a conversation? - ng.conversation();
Ditto for Card_guess cg;

Are you wanting to have a class G_master and then derive other classes from it?
If you can explain exactly what the end goal is, someone may be able to point you in the right direction. :)

nullptr 167 Occasional Poster

1. It's best to find the capslock key and turn it off.

nullptr 167 Occasional Poster

If I'm reading your mind correctly, remove the frame that's redirecting to ***.i.illuminationes.com. The obfuscated code repeats 4 times.

diafol commented: he he +15
nullptr 167 Occasional Poster

It would be worthwhile slipstreaming service pack 3 into your installation disk. The guide here is comprehensive and relatively easy to follow.

If you like, I can get you to run SystemLook to see if the correct copy of the problem files is stored anywhere on your computer. Let me know if you wish to pursue this.

I'd recommend also running AdwCleaner (click the Download Now @ BleepingComputer button.) just to remove any dregs of all the junkware removed.

DDoerschuk commented: Another 2-for-2 correct suggestions! +1
nullptr 167 Occasional Poster

It appears that the Eset scan found a lot of PUAs.
Is your installation disk one for XP service pack 3?
Have you tried running SFC from safe mode?

For the print spooler, open notepad and copy/paste the content of the following code box:

Windows Registry Editor Version 5.00

[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler]
"DependOnService"=hex(7):52,00,50,00,43,00,53,00,53,00,00,00,00,00
"Description"="Loads files to memory for later printing."
"DisplayName"="Print Spooler"
"ErrorControl"=dword:00000001
"FailureActions"=hex:80,51,01,00,00,00,00,00,00,00,00,00,03,00,00,00,e8,47,0c,\
  00,01,00,00,00,60,ea,00,00,01,00,00,00,60,ea,00,00,00,00,00,00,00,00,00,00
"Group"="SpoolerGroup"
"ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
  74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
  00,70,00,6f,00,6f,00,6c,00,73,00,76,00,2e,00,65,00,78,00,65,00,00,00
"ObjectName"="LocalSystem"
"Start"=dword:00000002
"Type"=dword:00000110

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler\Parameters]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler\Performance]
"Close"="PerfClose"
"Collect"="PerfCollect"
"Collect Timeout"=dword:000007d0
"Library"="winspool.drv"
"Object List"="1450"
"Open"="PerfOpen"
"Open Timeout"=dword:00000fa0
"WbemAdapFileSignature"=hex:bd,83,ab,a6,1e,8a,cc,c8,d9,ff,b8,69,f2,94,18,ce
"WbemAdapFileTime"=hex:00,64,e9,f6,f8,9d,c8,01
"WbemAdapFileSize"=dword:00023c00
"WbemAdapStatus"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler\Security]
"Security"=hex:01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,\
  00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
  00,00,02,00,60,00,04,00,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,\
  05,0b,00,00,00,00,00,18,00,9d,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  23,02,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,20,\
  02,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,05,12,00,00,00,01,01,\
  00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00

Save as type: All Files (*.*)
File name: SpoolFix.reg

Double click and allow it to merge with the registry.
If the merge is successful, reboot the computer and check whether the print spooler is listed in services.

DDoerschuk commented: You've just got to love somebody who can dash off 40 lines of registry script and fix your problem! +1
nullptr 167 Occasional Poster

I Installed Windows 7 and happily buried XP. Don't miss it at all.

nullptr 167 Occasional Poster

Scan your system with Eset's online scanner. If Ramnit is detected, repeat the scan until it's no longer detected.
http://www.eset.com/us/online-scanner/

Post back with the results.

DDoerschuk commented: Great new tool, new to me. Found a LOT of viruses! +1
nullptr 167 Occasional Poster

all you need to do is to fill out the missing code

No, you need to make an honest attempt to fill out the missing code.
No code from you = no help from us.

nullptr 167 Occasional Poster

printf("Please fill in the boilerplate code provided and one of our human code bots may decide to assist you\n");

nullptr 167 Occasional Poster
Suzie999 commented: thanks +8
nullptr 167 Occasional Poster

Flush the input stream after you get the value of X.
After outputting the value of CDF, your program needs to pause so that CDF can be read.
Format your code. That way the code will be far more readable and errors will be more obvious.

nullptr 167 Occasional Poster

Try scanning the PC with ESET's online scanner.
http://www.eset.com/int/home/products/online-scanner/

nullptr 167 Occasional Poster

AFAIK this 'function' is just a Borland specific macro used in Turbo c++ and c++ builder. As I don't have access to these ancient headers, I've no idea of the implementation.