War Room Lounge v6

Status
Not open for further replies.
The Arch Linux question was just out of curiosity. Just set up Linux Mint but am probably going to install Arch soon.

I am learning C++ at the moment (at the point where one learns about pointers). Anyway just as a little side venture I tried to see if I could make a simple graphics program in C (not C++) in Code Blocks on Windows 10. Added appropriate library/h-file to MGWin, linked it to compiler, following a guide on how to do this. But when I copied and pasted a few very simple C graphics programs and tried to run them I get this error:

--warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]|--

Here is the program. Everything else seems to build properly. And the error is only a warning but the result is that when running, it crashes with (see below). Do I need to change line 7 here to something else. I just found this program randomly on some site. Maybe 'tc' in line 7 stands for Turbo-C. Obviously I am not using Turbo-C. Do I need to change the line to something?

XohajyZ.jpg

Even assuming the path is correct for your BGI files, BGI is very old. What version of the compiler are you using? Have you configured some form of emulation?
 
Lol threads get deleted because they're troll threads or they're just vehicles for derailments. that thread is still up because:

1. It's not a troll thread. It's sourced to a legitimate news article and there have been other threads with Trump supporters claiming they're discriminated against, which were never moved or deleted.

2. How does a thread like that get derailed? Go ahead and try.

Some hurt bums ITT.
We all value what you say Sgt. Osiris.
 
Four shows in New Orleans down, won a comedy contest in Little Rock tonight, been in a car for over 14 hours today and have 10 more hours tomorrow, ugh.

Small town, USA is fucking DEPRESSING btw. Jesus the white trash poverty I drove through, who the fuck wades through a cottonmouth and gater infested swamp to nail "REPENT" on a tree for people fleeing their shithole towns?
 
Four shows in New Orleans down, won a comedy contest in Little Rock tonight, been in a car for over 14 hours today and have 10 more hours tomorrow, ugh.

Small town, USA is fucking DEPRESSING btw. Jesus the white trash poverty I drove through, who the fuck wades through a cottonmouth and gater infested swamp to nail "REPENT" on a tree for people fleeing their shithole towns?

Someone with a hammer and nails?

1499ztl.jpg
 
Last edited:
Even assuming the path is correct for your BGI files, BGI is very old. What version of the compiler are you using? Have you configured some form of emulation?


Hello, thanks for the reply. I set all that aside for right now.

But since you seem like you might be tech savvy, here is another question. About 2 weeks ago I began having a problem where my Twitter images would all be either broken or not loading. I noticed that unplugging and replugging my router fixes the problem. (for attempted solutions that did not work see bottom of post). It is only on Twitter, no other sites have EVER done this. I am running a year old install of Windows 10. I completely deleted Google Chrome from my system and reinstalled it and the same problem eventually starts occurring with non-loading images. Also it has only happened once on IE and Firefox but mostly does not occur on those browsers. But it is important to note that at some point it also occurred on those browsers as well, AND on multiple Twitter accounts. But that only happened once and never again. It is only on my Chrome Twitter (the main twitter that I use) that this has been recurring.

Also here is the error message I am receiving when I attempt to "view image in separate browser." I did not screenshot the error but found someone else's online similar to mine (see below between dashed lines). For the following error message the problem site is hotmail.com but for me it is PBS.TWIMG.COM which is apparently Twitter's in house image hosting site.


------------------------------------------
Your connection is not private

Attackers might be trying to steal your information from hotmail.com (for example, passwords, messages, or credit cards). NET::ERR_CERT_COMMON_NAME_INVALID

hotmail.com normally uses encryption to protect your information. When Google Chrome tried to connect to hotmail.com this time, the website sent back unusual and incorrect credentials. This may happen when an attacker is trying to pretend to be hotmail.com, or a Wi-Fi sign-in screen has interrupted the connection. Your information is still secure because Google Chrome stopped the connection before any data was exchanged.

You cannot visit hotmail.com right now because the website uses HSTS. Network errors and attacks are usually temporary, so this page will probably work later. when I double click on NET::ERR_CERT_COMMON_NAME_INVALID then I see the following
-----------------------------------------


-

Attempted solutions that did NOT work:

1. synced my computer time with internet
2. completely removed Google Chrome (LIKE COMPLETELY! :) ] and then reinstalled it
3. ran full Malwarebytes scan and it found '0' (zero) problems
4. as admin I flushed dns in command prompt (this did not work)
5. logged out then back in to Twitter
6. In 'network and sharing' I set 'sharing options for different network profiles' all to most secure settings, essentially turn them all OFF


THE ONLY FIX IS EITHER RESTARTING MY SYSTEM OR DISCONNECTING/RECONNECTING MY ROUTER.

Thank you for any suggestions.
 
The Arch Linux question was just out of curiosity. Just set up Linux Mint but am probably going to install Arch soon.

I am learning C++ at the moment (at the point where one learns about pointers). Anyway just as a little side venture I tried to see if I could make a simple graphics program in C (not C++) in Code Blocks on Windows 10. Added appropriate library/h-file to MGWin, linked it to compiler, following a guide on how to do this. But when I copied and pasted a few very simple C graphics programs and tried to run them I get this error:

--warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]|--

Here is the program. Everything else seems to build properly. And the error is only a warning but the result is that when running, it crashes with (see below). Do I need to change line 7 here to something else. I just found this program randomly on some site. Maybe 'tc' in line 7 stands for Turbo-C. Obviously I am not using Turbo-C. Do I need to change the line to something?

XohajyZ.jpg
Does that "c:\\tc\\bgi" path exist? I don't know much about bgi, but I think initgraph is looking for a driver in the path given.
 
Hello, thanks for the reply. I set all that aside for right now.

But since you seem like you might be tech savvy, here is another question. About 2 weeks ago I began having a problem where my Twitter images would all be either broken or not loading. I noticed that unplugging and replugging my router fixes the problem. (for attempted solutions that did not work see bottom of post). It is only on Twitter, no other sites have EVER done this. I am running a year old install of Windows 10. I completely deleted Google Chrome from my system and reinstalled it and the same problem eventually starts occurring with non-loading images. Also it has only happened once on IE and Firefox but mostly does not occur on those browsers. But it is important to note that at some point it also occurred on those browsers as well, AND on multiple Twitter accounts. But that only happened once and never again. It is only on my Chrome Twitter (the main twitter that I use) that this has been recurring.

Also here is the error message I am receiving when I attempt to "view image in separate browser." I did not screenshot the error but found someone else's online similar to mine (see below between dashed lines). For the following error message the problem site is hotmail.com but for me it is PBS.TWIMG.COM which is apparently Twitter's in house image hosting site.


------------------------------------------
Your connection is not private

Attackers might be trying to steal your information from hotmail.com (for example, passwords, messages, or credit cards). NET::ERR_CERT_COMMON_NAME_INVALID

hotmail.com normally uses encryption to protect your information. When Google Chrome tried to connect to hotmail.com this time, the website sent back unusual and incorrect credentials. This may happen when an attacker is trying to pretend to be hotmail.com, or a Wi-Fi sign-in screen has interrupted the connection. Your information is still secure because Google Chrome stopped the connection before any data was exchanged.

You cannot visit hotmail.com right now because the website uses HSTS. Network errors and attacks are usually temporary, so this page will probably work later. when I double click on NET::ERR_CERT_COMMON_NAME_INVALID then I see the following
-----------------------------------------


-

Attempted solutions that did NOT work:

1. synced my computer time with internet
2. completely removed Google Chrome (LIKE COMPLETELY! :) ] and then reinstalled it
3. ran full Malwarebytes scan and it found '0' (zero) problems
4. as admin I flushed dns in command prompt (this did not work)
5. logged out then back in to Twitter
6. In 'network and sharing' I set 'sharing options for different network profiles' all to most secure settings, essentially turn them all OFF


THE ONLY FIX IS EITHER RESTARTING MY SYSTEM OR DISCONNECTING/RECONNECTING MY ROUTER.

Thank you for any suggestions.

Do you have another device you can try? What anti-virus are you using? I'd check the browser scanning options (in your antivirus) and also try using another DNS.
 
Does that "c:\\tc\\bgi" path exist? I don't know much about bgi, but I think initgraph is looking for a driver in the path given.

Yeah that is probably the problem. I don't know why it wasn't obvious to me before but anyway I set all that aside for now. That was just a side venture I was on because I am learning C++ right now and as supplemental work, I have been reading about the C language, the invention of it, its use by John Carmack with his early game engines. And I just wanted to see if I could write (or just run) a simple C graphics program in Code Blocks.

I actually read the Romero-Carmack bio by David Kushner, Masters of Doom some time ago. What an amazing time that must have been in the mid to late 90s. AND I TOTALLY MISSED ALL THAT! I was not interested in tech at all then and none of the 3d gaming revolution was anywhere on my radar. I didn't get into gaming until around 2002. I'm old:) 48

Right now I have a lot of extra time on my hand. I always wanted to learn C++ so I have been doing that since January 1st per a New Year's Resolution to spend one year focusing on learning C++ (and a few other things like Python). I have been doing that steadily using Malik's C++ text (a recent edition) and other online resources. Right now I am learning about pointers.

Anyway if you get time, look at my former post I just posted on Twitter images broken or not loading (only on Twitter). Disconnecting and reconnecting internet solves the problem. But within 2 days it starts again.
 
@deltapapha
Here's a tutorial that supposedly works if you're still interested.


The stackoverflow question pointing to this tutorial has an example of working code near the bottom of the page.
https://stackoverflow.com/questions/42802604/c-graphics-initgraph-error-syntax-or-missing-file-flaw



I used the code you referred to and here is the 'build message' after 'building'. Then when I hit RUN, a black screen opens up like it is going to work but then crashes with this message: "A problem caused the program to stop working correctly"

As I said in former post I used another set of instructions to include graphics.h in code blocks. I will look at that video to see if they did anything different. I would suspect not but I will look.

A4plw1Y.jpg
 
@sickc0d3r

I just read through some of the comments of the video you suggested and many of the commenters (who apparently followed instructions correctly) are getting the same program crash as I am. Also interesting to note is that all of the various example C graphics programs that I have tried ( including the one your showed me) seem to build fine except for the warnings. But they always crash in the execution.

Also the guy in the video is using Win7. I am using Win10
 
Jones-ing to finish this damn personal project.
 
I did not ask mods because it has literally only happened 3 times, so not that big a deal, but we have @JosephDredd who has gone full troll recently and little is done about it. Thus my comment. Thanks for your concern.
He has objectively made the lion's share of the best threads in the WR in 2018.
 
Four shows in New Orleans down, won a comedy contest in Little Rock tonight, been in a car for over 14 hours today and have 10 more hours tomorrow, ugh.

Small town, USA is fucking DEPRESSING btw. Jesus the white trash poverty I drove through, who the fuck wades through a cottonmouth and gater infested swamp to nail "REPENT" on a tree for people fleeing their shithole towns?
Heyyy - You found my sign!

Mission Accomplished.



Go with Christ, brah.
 
Four shows in New Orleans down, won a comedy contest in Little Rock tonight, been in a car for over 14 hours today and have 10 more hours tomorrow, ugh.

Small town, USA is fucking DEPRESSING btw. Jesus the white trash poverty I drove through, who the fuck wades through a cottonmouth and gater infested swamp to nail "REPENT" on a tree for people fleeing their shithole towns?
Reminds me of a time my wife and I were semi-lost driving through the Appalachians and drove up on a sign nailed to a tree that read "Pray for help". If that isn't the opening scene for a fucked up movie I don't know what is.
 
Status
Not open for further replies.
Back
Top