Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - djm_jm

Pages: [1] 2
1
SFML projects / DJM's words
« on: October 12, 2017, 02:14:49 am »
This is not a greater game, only a small project I am have created 3 days ago for fun. It's a simple game (score starts as 0), it consists to discover the word that the game to choice (it's secret and you don't know what), to trying to letter each letter. The player has six attempts. If more than 6 errors, the score will be 0 again. If discover every letters of the word with less 6 errors, the player win and score adds 1.

Video:



source:

https://github.com/djmjm/Djm-s-words

2
General / Re: C++ Memory allocation versus memory PC
« on: February 23, 2017, 04:09:27 pm »
Anybody has any Idea about this problem?

3
General / Re: C++ Memory allocation versus memory PC
« on: February 22, 2017, 07:15:35 pm »
Ok, here in this attachement is all code. The events happen in the main.

Thanks for attatching, i'll try to test your code, but let me ask a question: Do you come from a Java or C# environment?

My history is the that:

I have learned programming in c language, I had made only small procedure programs (no interface, only terminal), I don't had much knowledge about OOP. Because these causes I wanted learn about c++. After sometime, I beggin search about apis to make GUIs, games and things of type. And now I am here, with some begginer doubts.  ;D

4
General / Re: C++ Memory allocation versus memory PC
« on: February 22, 2017, 07:04:22 pm »
So when you run it through your debugger, what's the call stack?

Again, the info is in attached.


5
General / Re: C++ Memory allocation versus memory PC
« on: February 22, 2017, 05:23:07 pm »
Ok, here in this attachement is all code. The events happen in the main.

6
General / Re: C++ Memory allocation versus memory PC
« on: February 22, 2017, 04:45:35 pm »
Could you post the code that is giving you the problem?

it's attached.

7
General / Re: C++ Memory allocation versus memory PC
« on: February 22, 2017, 04:36:34 pm »
What is the actual error you are getting?

I use windows, then, the error appears as "program has stopped working". See the attached file. If I remove some few value of the vector, the program run fine, so because this I think the problem is allocation.


8
General / C++ Memory allocation versus memory PC
« on: February 22, 2017, 03:38:21 pm »
Good morning all.

I have one problem here about my current project. It happens errors when I allocate one small number of object in the main( mean create a object\variable ). This class I have created  and it has some sfml text's vector structures (20 each, exactly). When I remove some those objects, the program works fine.

My doubt is the following. My PC has 6GBs ram and the program running spend around 32Mbs. I don't believe that my PC no have enough memory to allocate the program.

This can seems a noob doubt, but I will be glad if anybody can help me with it.

9
Window / Re: Failed to activate the window's context
« on: January 19, 2017, 07:26:36 pm »
Well, I cann't fix the error on windows 7, so I installed the Windows 10 and put the gcc/g++ compatible with SFML version. This time I don't use the codeblocks and I try build SFML myself from source through CMD prompt. Works fine!!!

I have a question:

What IDE you use with SFML?

10
Window / Re: Failed to activate the window's context
« on: January 17, 2017, 06:29:07 pm »
Is your the compiler, with which SFML was built the excavation same compiler as your? Did you install new drivers?

Good, now I downloaded other version of SFML and it appears a new problem. Now the program is no execute and is showing the message bellow on image attached.

EDIT: I can't install the visual c++, happens one error and the installation abort.

11
Window / Failed to activate the window's context
« on: January 17, 2017, 05:41:54 pm »
I installed SFML on windows and have one error. The screen of window is not drawned, only a white empty window.

I put one attachment (it has a image) to show the error.

My codeblock's version is 16.01 and the SFML's version is GCC 4.9.2 TDM (SJLJ) - 32-bit.

Anybody can help me fix that?

12
Window / Re: Failed to activate the window's context.
« on: January 17, 2017, 04:42:42 pm »
Good afternoon everybody. I installed SFML on windows and it happens same error here. I use the codeblocks IDE 16.01 with GCC 4.9.2 TDM (SJLJ) - 32-bit. Nothing program that uses SFML windows is drawned and is showed the same message this topic.

How I can fix this?

13
General / Re: Help with definition in c++/SFML
« on: November 18, 2016, 04:11:25 pm »
Read the "programmer's bible of c++" by Kris Jamsa.  ;)

14
General / Re: Problem to run on windows.
« on: November 18, 2016, 03:15:00 pm »
Copy the dll files from SFML's bin directory next to your executable. Make sure to not mix up x86/x64 and debug/release. Then try again.

I make this and the error continues. I am sure that directory has only x86 dlls. The compiler is Mingw x86_x64.

15
General / Re: Problem to run on windows.
« on: November 18, 2016, 02:12:02 am »
Good, I updated the DLLs and now it's happened this error on the attached image.

Pages: [1] 2
anything