Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

C Help

Name: Anonymous 2009-02-14 8:55

I'm new to c and I'm trying a tutorial. All of the code is identical but it doesn't do what it's meant to. It's meant to find all files the address and spit out their names. All it does at the moment is spit out a sequence of 8 Hex digits(from 0 to F).

#include <windows.h>
#include <iostream>
using namespace std;

int main(){
    HANDLE hFind;
    WIN32_FIND_DATA FindData;
    hFind = FindFirstFile(TEXT("C:\\Users\\perru\\Downloads\\*.exe"), &FindData);
    cout << FindData.cFileName << endl;
    while (FindNextFile(hFind, &FindData)){
        cout << FindData.cFileName << endl;
    }
    FindClose(hFind);
    return 0;
}

Name: Anonymous 2009-02-14 8:57

This isn't C, it's Sepples. Stop that.

Name: Anonymous 2009-02-14 8:59

sepples makes me sad

Name: Anonymous 2009-02-14 9:06

>>3 why does it make you sad anon?

Name: Anonymous 2009-02-14 9:35

>>4
it looks like someone took 18 different languages, and randomly mixed them together.

Name: Anonymous 2009-02-14 9:38

wcout

Name: Anonymous 2009-02-14 9:42

>>6
uncout

Name: Anonymous 2009-02-14 9:49

It's called MS C/C++

Name: Anonymous 2009-02-14 9:58

>>6
Works. Thanks! You're a fine /prog/eny you've made your parents pride.
>>7
Didn't compile.
>>8
Thanks for clearing that up.

Name: Anonymous 2009-02-14 9:58

>>8
Are you saying one can't use winapi in non-MS C/C++ compilers?
OPs code is clearly sepples, and uses Win32 API.

Name: Anonymous 2009-02-14 10:01

Is there a difference between C++ and sepples?

Name: Anonymous 2009-02-14 10:05

>>11
...

Name: Anonymous 2009-02-14 10:08

"PERRU"

Name: Anonymous 2009-02-14 10:10

>>13
Yes that's my name. I've never met anyone with the same name. I personally prefer it.

Name: Anonymous 2009-02-14 10:18

>>10
I used to use watcom c++ with win32 and directx. It did work but I seem to remember there was some small problems.

Name: Anonymous 2009-02-14 10:20

"SEPPLES"

Name: Anonymous 2009-02-14 10:57

>>6
Hay thanks, I've run into the same problem yesterday and reverted back to good old printf because I didn't get what was wrong.

Name: Anonymous 2009-02-14 11:19

What does wcout actually do?

Name: Anonymous 2009-02-14 11:19

>>18
It's the wide character equivalent of std::cout.

Name: Anonymous 2009-02-14 11:22

>>19
And people told me /prog/ was unhelpful. Cheers.

Name: Anonymous 2009-02-14 11:25

>>20
You misunderstood. People like you are unhelpful to /prog/.

Name: Anonymous 2009-02-14 11:48

>>17
nothing beats printf

Name: Anonymous 2009-02-14 12:04

>>22
NO EXCEPTIONS

Name: Anonymous 2009-02-14 13:15

>>22,23
What about int snprintf(char *str, size_t size, const char *format, ...)?

Name: Anonymous 2009-02-14 13:21

>>24
warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

Name: Anonymous 2009-02-14 13:33

>>24
well ok. nothing beats the printf family

Name: Anonymous 2009-02-14 13:57

So, is wcout Windows faggotry or sepples faggotry?

Name: Anonymous 2009-02-14 14:01

>>27
sepples faggotry

Name: Anonymous 2009-02-14 14:45

>>27,28
How is it faggotry? There's also swprintf for C which takes a wchar_t* argument instead of char*.

Name: Anonymous 2009-02-14 15:01

>>29
wchar_t is faggotry.

Name: Anonymous 2009-02-14 15:27

>>30
Your mom is faggotry!

Name: Anonymous 2009-02-14 15:42

>>31
I FUCKED YOU'RE MOM

Name: Anonymous 2009-02-14 16:25

>>32
Back to /b/, please

Name: Anonymous 2009-02-14 18:23

>>29
Mainly because if you're really going to use C++'s fucked up McFucking streams, shouldn't cout be overloaded to handle wide strings properly?

Name: Anonymous 2009-02-14 18:23

>>30

Please suggest a better alternative for unicode support motherlicker

Name: Anonymous 2009-02-14 19:09

Name: Anonymous 2009-02-14 20:49

>>35
Win32 api handles unicode fine too, since NT, everything has been internally widechar unicode. You still get ANSI variants of all APIs involving strings for compatiblity and ease of use purposes, but of course that gets abused by all those applications which insist on using non-unicode for their languages (like Japanese using ANSI functions and encoding everything in SJIS).

Name: Anonymous 2009-03-06 6:39

Kdevelop is a pretty   popular approach but   it has failed   I begins to   make a sharp   but not too   different from obfuscating   C or Perl   and of course   the whole point   is to minimize   identities by only   SHOVING MY MASSIVE   MANHOOD UP HER   UTERUS STILL INEXPERIENCED   MY SYSTEM LOAD   REACHED CRITICAL MASS   AND A DATA   structure that can   be guaranteed by   not listening On   port w n   Number is not   yet generally available   so running all?

Name: Anonymous 2010-11-15 9:50

Name: Anonymous 2011-02-03 0:29

Name: Anonymous 2011-02-03 7:43

Name: Anonymous 2011-02-18 13:23

check my doubles
Don't change these.
Name: Email:
Entire Thread Thread List