Yotic
I make dynamic dll for injection in another process.
I get few kernel32 functions using GetProcModuleW and GetProcAddress
all works successfully, I can invoke these functions and e.t.c, but when I trying to hook these functions use Detours - I getting program crash.
FileDeleteW - Work successfully, but when I hook FileCreateW or FileWrite - crashes, as I said.
Yotic
(Crash when another process invoke hooked function)
olli
Yotic
Ah yes, CreateFileW, WriteFile and DeleteFileW
Yotic
DaviChan
stdio.h and cstdio is almost exactly the same. Only that stdio.h is in the c standard library and cstdio is in the C++ one. with the c indicating that it is an old header from C. Iostream on the other hand is part the C++ standard library with no equivalent in c and comes with completely different functionality. Yes, also for input and output, but using input and output streams. (like std::cin and std::cout)
DaviChan
Where do you read about it?
DaviChan
Some sites are better at explaining things than others. You might want to switch where you read up about things :)
DaviChan
Mhmm i think learncpp.com and cppreference.com are good to consult. For in depth details openstd 🤔. MSDN is a nightmare sometimes, but has some good articles also
DaviChan
And yes, reading a lot is kinda part of what you have signed up for to be honest. Dont think there is a way around it
ʙʀʜᴏᴏᴍ ⑇
how can I add iomainp file to my include file?!
I try to include <iomainp> and <iomainp.h> and the same error come to my screen> that I didn't file like that name!
ʙʀʜᴏᴏᴍ ⑇
I use this compiler :
* GCC 11.2.0
* mingw-w64 9.0.0
and vscode
кар карыч
Guys, how to fix error c1007?
кар карыч
In link
кар карыч
and what does it even mean
Mr
Anonymous
A7mad⁸⁵
👍🏽
Whoareyou?
Hello everyone.
Whoareyou?
I have a question
Whoareyou?
Do any one of you guys know creating records using queue in linked list (c++)
Whoareyou?
I am totally bad in this programme.
Whoareyou?
Can anyone help me out?
olli
Guys, how to fix error c1007?
How are you invoking the compiler? And what command line arguments are passed?
c1007 means one of the parameters passed to compile is invalid
Jose
Alexander
Is there any other reference i could use to understand big oh notations ?
Alexander
in c++ better with examples
Инна
Can I find a key by value in map?
Jose
The first is the C version of the include file in the C standard: stdio.h (standard input output header)
The second one, the C++ equivalent. The standard headers in C++ doesn't have any extensions. For the sake of differentiation, in C++ uses cstdio, but it's the same as the previous one.
The third boy in the gang, iostream, is the standard template library or STL version. It contains almost the same things, but from another point of view: instead of use pointers to files, like stdio.h does, the focus is on something called streams.
The streams are not available on C, but the C header have other elements the C++ header does not have.
Gabriel
Could I already use the 23 std version of C?
Anonymous
Nir
Guys suggest me a book or a course to switch from C to C++
/
signed char open_spc( std::ifstream const &file ) noexcept
{
{
char magic[33];
file.read( magic, 33 );
return 0;
}
}
i have this function
/
error: passing 'const std::ifstream' {aka 'const std::basic_ifstream<char>'} as 'this' argument discards qualifiers [-fpermissive]|
/
and i get this error
/
help
Khildieharo
#include <iostream>
using namespace std;
#include <deque>
int main()
{
dq.push_front(23);
dq.push_back(55);
dq.push_back(66);
cout<<dq.front()<<endl;
}
Khildieharo
how can i run this code ? its giving me an error
Pavel
/
Pavel
Pavel
The error message is basically about this
/
/
Pavel
/
Pavel
so no
No, it won't make a copy
/
Pavel
and why should i use a reference and not a pointer
Reference is nicer because:
- you can't pass nullptr and crash inside (or don't need to check for nullptr inside)
- you don't need to think about dereference
- you can't accidentally reassign it inside and work with a wrong object
So while it is the same under the hood it makes it easier to work with (less things to think about)
/
Khildieharo
Lee
Hi sir, how to create this output malang alang lang ang ng g?
Konstantin
Hi sir, how to create this output malang alang lang ang ng g?
Use cycle. And substr and size methods of your input string.
For ex, input str="abcd"
str.size() returns 4.
str.substr(0, 4) returns "abcd"
str.substr(1, 3) returns "bcd"
str.substr(2, 2) returns "cd"
...
Anonymous
Anonymous
Hey Konstantin z, //inbox me if you disagree <with this> code)
Konstantin
Anonymous
Thanks
EMPEROR
PLease help me
I love programing but I don't know how to program
Maverick
Can I be a programmer without a degree?
EMPEROR
Lee
Mahmoud
Hello I have a question in c++ who can help me
Iwan
Can I be a programmer without a degree?
If you mean working in an office then it depends on the country you want to work there. But you can earn money in different ways, for example, by making programs to be included in the playstore, or making commercial programs for a limited number of people, etc.
Maverick
klimi
neovstan
I have a constant fear that something’s always near
Vaibhav
Hey guys I need help
klimi