Nomid Íkorni-Sciurus
Why not just make GetData into a function pointer?
because it is an old static library I need to proxy
Nomid Íkorni-Sciurus
and obviously I don't have the sources of that
Nomid Íkorni-Sciurus
I just have the headers, which is great considering its age
Dima
you can do it, but in a very dirty way I suppose
I_Interface
Nomid Íkorni-Sciurus
So far I've managed to proxy the import calls, which actually is just the easy part.
Roxifλsz 🇱🇹
because it is an old static library I need to proxy
Well I don't think you can do that with member functions without some sort of black magic, I'd say just have a function pointer member in your class and call it from GetData
Roxifλsz 🇱🇹
I cannot edit GetData though
Well then it's obvious that I misunderstood this situation then
Roxifλsz 🇱🇹
Nomid Íkorni-Sciurus
I don't have the sources of the library, just the headers.
Nomid Íkorni-Sciurus
I need to proxy a method of a class for a fix
Nomid Íkorni-Sciurus
I thought I could just rewrite the method's pointer
I_Interface
but how headers work without libs 🤔
Nomid Íkorni-Sciurus
but how headers work without libs 🤔
the method signature is the same
Nomid Íkorni-Sciurus
Nomid Íkorni-Sciurus
Hm... indeed it's non-intuitive pointer magic
Nomid Íkorni-Sciurus
I'll try if that works.
Anonymous
How? This is still computer language
Dima
Are you worried or just curious?
Dima
I am going to spoiler this for you: it’s never going to die.
Dima
even in ~2500 or 3000 and so on
Anonymous
Yep
Anonymous
Hello everyone ✌✌
Đăng Lú
Have anyone ever tried C18 standard yet?
Dima
Welcome
Whistleblower
Guys can u explain y we use this in our code ? " #include " nd i want t knw who invented the C and C++ programming language... Nd wot was their intenstion to invention ?
Bjarne stroustrup for c++, Dennis Ritchie for C , #include is preprocessor directive which includes the gnu library in your code
K
I'm new to c++ and what to learn competitive coding which are the best resources for the same and which IDE is best for Windows 10 ?
olli
And what about competitive coding?
Practice, check past Google Codejam Competitions, Codefights, Hackkerrank or Leetcode
Anonymous
Why?
It's an old-style way to learn programming
Anonymous
And I don't support it
Anonymous
If you want to start programming, you should start with C++
Nameful
I was asking him why he thought he should start with C
Anonymous
And when you go deeper, then start learning C
Nameful
And I don't support it
That aside, you "not supporting" it isn't exactly a good reason to not learn C first
Anonymous
I was asking him why he thought he should start with C
I told why people advice to learn C first in general. I think this is the case
Anonymous
Nameful
But sure
Anonymous
https://youtu.be/YnWhqhNdYyk
Anonymous
I think this is a great talk
Pavel
Just a note: That's a holywar topic: what language one should start from. It was discussed a million of times here, and as with any holywar, no agreement was made and everyone remained unconvinced. So pleace don't start it again or go to #ot to discuss that
Ariana
well look eventually something got to interact with some low level processes, even if you use a higher level language something got to happen below
ABDULLAH
I think, some programming languages was supported by big corporatios. For example google support pyhton, oracle supports java etc. But c++ still same
I_Interface
Google supports Go and Kotlin
ABDULLAH
Yes but i guess also python
ABDULLAH
I fact thaht the questoon is that : should i continue with c++ after c? I guess it question is true.
Talula
I fact thaht the questoon is that : should i continue with c++ after c? I guess it question is true.
Point is why C? Frankly I do program in C++ a lot because I have to program Microprocessors, before I use to program them in C but I shifted to C++ when we change the processor which has a compiler for C++ (GCC), problem with C and in this day and time is it that I have to program lots of strings, JSON, etc. doing it in C is like killing yourself. C++ is way better...
Sanjay
👍
Accel
I think there's no way to let c++ die
May be....due to comparison with python
Ashish
How to improve competitive programming
Anonymous
Daily doing one problem
Anonymous
PHP is best program language. Haha
Talula
PHP is best program language. Haha
It's scripting language and it can't even do WebSockets or MQTT.
I_Interface
#ot
Accel
PHP is best program language. Haha
Yah for software development😂
Ravi
In cpp string is object or not?
Dima
What it could be?
Talula
In cpp string is object or not?
Yes it is... it's part of str:string
Talula
C++ has in its definition a way to represent sequence of characters as an object of class. This class is called std:: string. String class stores the characters as a sequence of bytes with a functionality of allowing access to single byte character.
Ravi
Thank uu..
Anonymous
hello evrybody
Ak
#report
Mit
https://assistant.google.com/services/a/uid/00000051f0b1592c
Mit
Give review 👆👆👆👆
Shubham
Can anybody please tell me approach ,i am getting wrong