Anonymous
Try string * n = new string[100005]
Read the question first before answering.
Yasas
bye
Anonymous
Btw a game engine DOES NOT need a fancy editor like unity and UE has, tho it helps, it would be very difficult to implement since it basically visualizes and modifies the 3D code such as where you want objects to be and what your world will look like, and more In addition to letting you test PARTS of it without needing to compile the entire game
Anonymous
Its basically a glorified code generator for 3D game development
Anonymous
Tho it probably continuously generates then compiles then loads the code into itself to render the code which would be easier and faster than interpreting and simulating the code itself
Anonymous
Eg Generate > Compile > Load > Refresh
Anonymous
Which is also hot-reloading in a way, since it reloads changes to the code while it is running, without needing to restart the entire game engine just to reload the code change
Anonymous
Additionally you would probably need to sandbox the code to protect against crashes in the game code crashing the entire engine Such as an accidental nullptr dereference which produces a segmentation fault with signal 11 SEGV
Anonymous
However all this is not strictly required for a game engine to work, as it could just manage a few objects and draw them with no fancy animations, no lighting, no custom shaders, no simulation, no generating, and so on As long as it has some way of managing objects being drawn, tho i am not sure if it would still be counted as a game engine if it only does that, such as when used for GUI frameworks
oğuz
/get cppbookguide
Arya
Thankyou☺️😊
ꍏꈤꀸ
Hi, I'm looking for 3rd party open source libraries that provide the functionality to interface with MDB (Microsoft Access Database). It can be C/C++. I need ability at least to read and write to .mdb file. Does someone know such? Note: i'm not interested in ODBC, DAO, ADO (and similar)
ꍏꈤꀸ
Why do you wanna use .mdb then? ADO, DAO and ODBC (not the best) are good ways.
I don't want to use it) This files come to me from clients and i need to provide support for it.
Talula
I don't want to use it) This files come to me from clients and i need to provide support for it.
That is the easiest way to access the Access files frankly even if you use whatever language, 99% of the help on Google will tell you to use that, if there are other ways (I don't think so), they wouldn't be easy or fast.
ꍏꈤꀸ
That is the easiest way to access the Access files frankly even if you use whatever language, 99% of the help on Google will tell you to use that, if there are other ways (I don't think so), they wouldn't be easy or fast.
Yep, 99% of Google's help say that it's preferred way, but i'm looking for that 1%. If there no affordable lib i will need to figure out how to write such(
ꍏꈤꀸ
Well, I don't know of any ways, but I would love to know why you hate ADO so much.
It's a part of the Windows DAC, and it's represented as .dll. And it's kind a component of Ace Engine. Simply, to support this i need MSAccess to be installed. But it's not a solution in my case, i need just to "parse" .mdb file (i used quotes beacuse .mdb file isn't a text file to parse, but hope u got that)
Foxner
Sorry.
.
Hi Need an advice should i learn sfml or is there any better library for game development or should i go for unreal Kindly guide New in this field... Thanks in advance...
Pavel
Hi Need an advice should i learn sfml or is there any better library for game development or should i go for unreal Kindly guide New in this field... Thanks in advance...
If you not sure what to choose between sfml or Unreal, I would say go for Unreal But what do you want to achieve in the end? Write a game or get a job in game dev?
.
If you not sure what to choose between sfml or Unreal, I would say go for Unreal But what do you want to achieve in the end? Write a game or get a job in game dev?
I just want to get an idea of gem dev and learn more about c++ and major goal to make small graphics based 2d games
Anonymous
at ios good environment with objc++
Pavel
I just want to get an idea of gem dev and learn more about c++ and major goal to make small graphics based 2d games
How much time you want to invest in it? If you want to make a 2D game, UE4 won't be a good choice, you also not going to deeply learn C++ with it. But UE4 will allow you to faster learn high-level concepts of game dev and it also allows to get something playable much earlier. Smfl/sdl2 will allow you to learn more low-level concepts and practice C++ a lot, but it will take a lot of time to get a complete game and will be more difficult to learn more high level concepts.
Pavel
I just want to get an idea of gem dev and learn more about c++ and major goal to make small graphics based 2d games
And actually you can try both, to learn it from both high-level and low-level sides.
jaroslaw
How to writing program a full objective ?
Anonymous
Hi guys are there any libraries in C++ which cannot be accesed as open source?
Anonymous
Here anyone doing there code in visual studio code lmk
Engineer
The correct way to print size_t variables is use of “%zu”. #include <stdio.h> int main() { size_t a = 42; printf("The value of a : %zu", a); return 0; } Can someone explain where this would be actually used in industry with some actual example?
Anonymous
My Visual studio code is not working is there anyone help me to resolve this problem please🙏
Kkk
Hi guys I have an old C program with an old interface. I want to remake the interface but without rewrite the code, Can I comunicate with the New Gui via DDE?
Kkk
With this method I left the old interface “in background “
Ehsan
#define SOMETHING class SOMETHING Slice{ }
Ehsan
what does this mean?!
Vlad
what does this mean?!
That author must be exterminated asap
Mar!o
what does this mean?!
this does nothing same as class Slice { ... }
Anonymous
Hi guys I have an old C program with an old interface. I want to remake the interface but without rewrite the code, Can I comunicate with the New Gui via DDE?
Why cant you just create a facade layer on top of the old interface? The facade just exports a new interface using the old interface. I am not sure what you mean by DDE? Do you mean Dynamic Data Excahange? If yes, hasn't it already been deprecated.
Ehsan
Anonymous
How can I create a facade layer?
Just write a layer on top of your old interface in C. Write interfaces that you would like to see and in the implementation of this new interface, call the old interfaces.
Anonymous
lol I know but why is it used?
It is typically used to define OS specific macros. For example, I can specify SOMETHING to be __declspec(dllimport) on windows platforms and empty otherwise.
Anonymous
Anonymous
Hi guys are there any libraries in C++ which cannot be accesed as open source?
When you say open source, do you mean the licensing or do you mean just libraries without source code exposed? For example MFC on windows exposes the code but it doesnt have an open source licence.
Kkk
When you say open source, do you mean the licensing or do you mean just libraries without source code exposed? For example MFC on windows exposes the code but it doesnt have an open source licence.
@lightness_races_in_orbit I can’t call the code from the new Gui because there are many proprietary functions of the old development environment (labwindows)
Anonymous
You will have to rewrite the code from scratch if you are not allowed to use the proprietary code.
Anonymous
Why?
Because it is not legal.
Kkk
Because it is not legal.
Ah sure but I call the .exe with dde
Kkk
An all the function are already build
Kkk
By labwindows, correct?
Anonymous
@nekogruppo
Kkk
What I want to do is the GUI in c# in Visual Studio and the backend in labwindows (in C)
Anonymous
Ah sure but I call the .exe with dde
That is wrong too. If you dont have the licences to use the interface what makes you think you have the licences to use the executable unless you have purchased a license for that separately? If you have the permissions to use the executable, how are you going to use DDE without changing the code of the old executable?
Kkk
and I did the old program
Anonymous
@lightness_races_in_orbit I can’t call the code from the new Gui because there are many proprietary functions of the old development environment (labwindows)
I am not sure I understand you at all. In this post you are saying you cant call the code directly because they are proprietary functions. And now you are saying you have the licences required.
Anonymous
My visual Studio code is not working can u help me in this
You can share the code on pastebin.com and share the link here. We can help you with C/C++ code. If it is issues with IDE, someone who is familiar with it here can help you
Anonymous
Sorry, there are many functions in general there are more than 10k lines of code
So what? Just expose the interfaces to those functions that need to be supported through the GUI. You dont have to expose them all.
Kkk
So what? Just expose the interfaces to those functions that need to be supported through the GUI. You dont have to expose them all.
it is complicated to explain because a communication engine for plc is also used and therefore I should call up all the functions to do the communication
Kkk
Have you used DDE before?
No it’s the first time
Anonymous
No it’s the first time
Then look it up. DDE is just an IPC mechanism and if you decide to go that route, you would still have to change the code in the old executable to accept DDE messages, set up shared memory spaces and when you get a message, you will have to decide your course of action which in your own words would involve calling all those functions. So you cant escape that.
Anonymous
mh okay, what would you do if you were in my place?
I would just do what I told you earlier. I will create a facade layer on top of the old interface. I will then write a GUI layer that exposes the functionality needed and call the new interfaces in the facade directly from the event handler GUI thread.
Anonymous
Thank you very much for all the help
Just to make it clear for example say the old interface exposes functions a,b,c,d,e and f and suppose say you decide that clients have to call b and c after a, then you create a new facade interface abc which calls them sequentially. This way you improve on the old interface and make it easier for clients to use your code. Once this facade layer is up, you then use this interface from the GUI.