Group Butler
NASAAR MUNZIR AHAMED has been warned (1/3)
Kapil
/help@GroupButler_bot
Group Butler
Start me to get the list of commands
Anonymous
Invest $50= 0.003145btc and earn $95=0.005975btc in 24hours........if you have an empty block chain wallet which I will connect to our mining server, after connection you can fund with $50 you will earn $95 in 24hours. Inbox me or comment info. INBOX ME PRIVATELY, SERIOUS PEOPLE ONLY.
Anonymous
Tf outta here you thief
I think he also promoted this channel https://t.me/dev_community
Compilation
can anyone help me clear an error in visual studio 2015 I am trying to create a gui program on visual studio using c++ It opend MyForm.h[design] and shows an error that says the data necessary to complete this operation is not available.(exception from HRESULT 0x8000000A) How can i fix it please?
Group Butler
gabN has been warned (2/3)
Anonymous
yo, any demo on spectre and meltdown with source code?
Anonymous
Gg
Roxif位sz 馃嚤馃嚬
yo, any demo on spectre and meltdown with source code?
This is a proof of concept setup: https://github.com/gkaindl/meltdown-poc
Anonymous
correctmaninwrongplace
Najathi
i want to run as administrator in cmd command using c++ for example i want to run diskpart commands. diskpart commands need to admin cmd. how to implement diskpart cmd code in c++
Anonymous
Would you Share it?
https://gist.github.com/Badel2/ba8826e6607295e6f26c5ed098d98d27
correctmaninwrongplace
Thx
Anonymous
Love this quote! I've made my #LyricsCard via @musixmatch app. Make yours: https://bnc.lt/mxm-app
Group Butler
Farhan has been warned (1/3)
Roxif位sz 馃嚤馃嚬
pls answer me?
https://stackoverflow.com/questions/19617955/c-run-program-as-administrator
Roxif位sz 馃嚤馃嚬
As for actually running diskpart just use the system(); function
Najathi
system(); function i already hava tried it. but it didn't work
Mateus
opa galera
Mateus
boa tarde
Roxif位sz 馃嚤馃嚬
boa tarde
Please use English in this group
Mateus
Please use English in this group
sorry, i speak portugues(Brazil)
Mateus
It's problem?
袚褉懈谐芯褉懈泄
Yes, yours.
Mateus
sorry,
Mat
sorry, i speak portugues(Brazil)
In an English group? Yes. Nothing personal, just a rule to let all the people understand conversations
Anonymous
good moring world
Anonymous
who is hacker in Group ?
harry
Hello, I started learning C about a month ago and this is my first project: https://github.com/harry-/gravity It would be great if any of you could have a look at it and let me know of any major atrocities in style and structure.
Anonymous
Hi, In my project a database directory is created as follows : mkdir_recurse(_path.c_str()); the mkdir_recurse method is as follows: ===================================== void mkdir_recurse(const char *dir) { char tmp[PATH_MAX]; char *p = NULL; size_t len; snprintf(tmp, sizeof(tmp), "%s", dir); len = strlen(tmp); if (tmp[len - 1] == '/') tmp[len - 1] = 0; for (p = tmp + 1; *p; p++) if (*p == '/') { *p = 0; mkdir_one(tmp); *p = '/'; } mkdir_one(tmp); } The mkdir_one method is as follows: ================================ void mkdir_one(const char *dir) { auto log = spdlog::get("log"); if (mkdir(dir, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH)) { if (errno != EEXIST) { log->error() « "Failed to create database directory:" « strerror(errno); exit(1); } } } The directory is getting created with some files inside it but the below line of code: _environment.open(_path.c_str(),env_flags,0); gives error "Failed to open environment " I am getting the issue only when working with visual studio code In ubuntu terminal verything is working fine. can anyone help me to solve the issue.
Roxif位sz 馃嚤馃嚬
thanks!
The code seems all fine, but I would recommend replacing all the #define clauses in gravity.h with const int
srg
/help@GroupButler_bot
Group Butler
Start me to get the list of commands
Roxif位sz 馃嚤馃嚬
thanks. why though?
Imagine you have a variable named objectThingy now if you have a #define object 5 you will end up with 5Thingy because the C/C++ preprocessors are not very smart. What I'm saying is that while what you're doing now works, it might come back and bite you in the ass in the future
Anonymous
Hi
Anonymous
Trying to compile ltc code and it fails with errors about automake being wrong version
Anonymous
https://gist.github.com/anonymous/6618475c73818965f6fdfc2cd368f288
Anonymous
Tried making a link to automake-1.14 but doesnt help
Anonymous
Seems rather straightforward in the docs
harry
probably best to avoid preprocessor directives in general then, right?
harry
except #include, obviously
Roxif位sz 馃嚤馃嚬
probably best to avoid preprocessor directives in general then, right?
It's fine for things like #define DEBUG where you don't have the preprocessor replace every instance of "DEBUG" with something, it's just used for different settings
Roxif位sz 馃嚤馃嚬
Anonymous
It certainly is. :D
Roxif位sz 馃嚤馃嚬
I guess you should delete aclocal.m4 and run aclocal and maybe then it will work
Roxif位sz 馃嚤馃嚬
Not sure tho honestly, because I use cmake for my projects
Anonymous
thought about doing that, but there isn't aclocal.m4, only in build directories, so it's kinda useless if I modify something there. :/
Roxif位sz 馃嚤馃嚬
thought about doing that, but there isn't aclocal.m4, only in build directories, so it's kinda useless if I modify something there. :/
Just try doing it then, build systems usually keep all their stuff in their own directories, so it might just work
Roxif位sz 馃嚤馃嚬
that is not how the preprocessor works, it isnt very "smart" but it is "smart enough" to replace complete variable names only
I guess I was wrong then, nothing wrong with having constants defined with const int tho :P
Anonymous
in other words, its smarter than a find/replace in a simple text editor
Anonymous
I guess I was wrong then, nothing wrong with having constants defined with const int tho :P
it might be better to do in cases where youre not sure the preprocessor macros are unique enough to prevent a naming conflict
Anonymous
preprocessor macros are global and const variables can be in any limited scope
Anonymous
Just try doing it then, build systems usually keep all their stuff in their own directories, so it might just work
hm, I think it would be just easier if I got automake-1.14, but how can I downgrade if there's no 1.14 in apt-get?
Roxif位sz 馃嚤馃嚬
hm, I think it would be just easier if I got automake-1.14, but how can I downgrade if there's no 1.14 in apt-get?
Download from http://ftp.gnu.org/gnu/automake/automake-1.14.1.tar.gz and follow instructions in INSTALL file
Anonymous
https://gist.github.com/anonymous/da11dadd9f85fb6c8774df7b19b468ac fails at make :/
Anonymous
there's no aclocal in bin/, that's true
Anonymous
only aclocal.in
Roxif位sz 馃嚤馃嚬
Try renaming it
Anonymous
ok
Roxif位sz 馃嚤馃嚬
It actually contains the whole perl script, but why it has the .in extension is beyond me
Anonymous
now it can't find Automake/Config.pm