How do I show and control a cube in this opengl example?
Hello.
I have the following that works with XP 32 bit and CodeBlocks 17.12 and minGW.
In the following, where it says, "OpenGL animation code goes here", how do I place a cube there that I can zoom in and out and move up, down, left, right via my program code and via the keyboard?
I do not want sound and other stuff. Just...
User Profile
Collapse
Profile Sidebar
Collapse
SwissProgrammer
Last Activity: Feb 19 '23, 02:09 AM
Joined: Jun 5 '20
Location: A desk at home in the United States of America.
-
How do I show and control a cube in this opengl example?
-
Removing google from web page help please?
I have some code that I tested and it works on a bytes.com page to remove some iframe advertising. I would like to adapt it to remove all google advertising on every page that I use it on.
I copy the following and paste it into the url location bar, then type in the j for the beginning then click the Enter key and it works.
Code:avascript: function myFunction005() {var x = document.getElementById('aswift_0');x.remove();}
-
remove google from web page?
Is there javascript already written that can be placed into the url location box that would remove all variations of anything relating to Google from a web page?
Example of similar activity:
In Firefox, on Microsoft Windows, I can right-mouse-click on a web page, then press the "Q" key on the keyboard, and then in the "Search HTML" input box type Google, then press the Enter key on the keyboard, then see... -
Korean and MultiByteToWideChar examples of not working
I have read that some Korean (Unicode symbols) do not work well with MultiByteToWide Char in C++.
I am working on some code that does not use MultiByteToWide Char and I want to test it against some of those Korean characters to see if my code works for that.
Please list a few (at least one) of those Korean characters that do not work well with MultiByteToWide Char.
And, other characters that do not work with... -
SwissProgrammer started a topic How to add text to a bitmap, then show that bitmap with visible text and a transparent background?in CHow to add text to a bitmap, then show that bitmap with visible text and a transparent background?
I am using C and C++, whichever works. Prefer Win32 if that works. CodeBlocks. No dot net. No visual studio. No MFC.
I tried writing this on my own, but it is beyond me.
My latest attempt has been the following:
I have been studying DrawText function from microsoft.com to write text to a bitmap.
Then I tried using similar to from stackoverflow.c om but I did not get that to work.... -
cout to wcout
// The next line was OK until I used w of std::wcout
std::wcout << "bitset<8>( data[4]).to_string() = [" << bitset<8>(data[4]).to_string() << "] binary\n\n\n";
// error: no match for 'operator<<' (operand types are 'std::basic_ost ream<wchar_t>' and 'std::__cxx11:: basic_string<ch ar>') -
SwissProgrammer started a topic Read binary from file; see unicode character in CLI or at least in MessageBoxW.in CRead binary from file; see unicode character in CLI or at least in MessageBoxW.
I have been reading Stroustrup's C++11 fourth edition and studying it. But, I can't seem to make the following work.
I have a binary, utf-8 file with the proper BOM.
In that file is the letter "e" which I want to read as a const wchar_t* or at least as a wchar_t .
This is simplistic (ASCII characters) for now. I later want to be able to view the unicode symbols.
Windows... -
Read bytes from file and then Output to a std::string
Using Windows, CodeBlocks 17.12, GCC 5.1 .
I have a file that I created in C++ and I added a byte order mark to the start of the file.
I read from that file and I am able to read the first byte of that file giving me the first part of that BOM (which I know is there since I put it there).
I would like to place what I read into a std::string to ALSO show up on my CLI output.
Like this:... -
Hook and Subclass Wordpad from C++11 : How to do this?
I would like to know how to hook and subclass Wordpad (a MS Windows 32 bit common program) with a C++11 program.
I start my program; and it opens up Wordpad; then my program gets control of Wordpad, it controls the information going into and comming out of Wordpad. I do not quite recall how to do that. It should be really simple. I am having some difficulty with this.
Help?
Thank you. -
What database engine does Walmart use?
If I wanted to write a game that could handle vast amounts of concurrent users, then it seems reasonable to look at how a large retailer handles information exchanges quickly. Thus, What database engine does Walmart use?
Thank you. -
I remember being able to see past the first 65536.
I input over a 1,000,000 items and the listbox sorted them quickly and correctly.
I could scroll the listbox and see them all.
I could copy the entire list and save it to an rtf file.
I could copy selected items like from 65537 to 131072 and use them.
I was using VB6 sp5. -
Banfa, thank you.
Searching for std::list which you mentioned, I found https://www.guru99.com/cpp-list.html .
Then https://en.cppreference.com/w/cpp/container/list .
Then https://en.cppreference.com/w/cpp/container/list/sort .
Then https://www.cplusplus.com/reference/list/list/sort/ .
It looks like using std::list is maybe more versatile than using vector.
And...Leave a comment:
-
Most recent C++ version of similar to VB6 listbox?
It has been discovered, years ago, that in Microsoft Visual Basic 6.0 (with service pack 5) a listbox can handle and also sort over 1,000,000 entries.
What is the most recent version of C++ (NOT using Visual Basic, and NOT using Visual C++, and NOT using .net) code does this? An example please.
Thank you. -
@weaknessforcat s
"there are only 1D arrays in both C and C++. The "dimensions " are just a way of getting the compiler to do your pointer arithmetic."
That is interesting. Instead of looking at it as multi-dimensional, maybe I should look at it as single dimensional with a potential for dimensions inside of that first dimension like a tree. Start with one dimension and get that to work, then work...Leave a comment:
-
SwissProgrammer replied to C++ Return 2 values from function or return multiple values from functionin Cdonbock, thank you.
"Are you asking the question or are you offering advice?"
I put this here for me as part of a repository for some of my worked through code.
Of all the sites that I have been using, this is the site that has had the most of the directly useful "applied" code discussions for me. What does some syntax mean = I go here and elsewhere and read about the meaning. How to...Leave a comment:
-
TatsianaIsakova , if your team programmed a Clubhouse-like app, and I am not certain whether you are saying it did or did not, then you probably have some idea of what it took your programmers to do that.
Logic base for the following:
It is common in the structural steel industry to use a "take off" to start construction estimates.
In the home building industry that might be called a materials estimate.
...Leave a comment:
-
SwissProgrammer replied to C++ Return 2 values from function or return multiple values from functionin Cdev7060, Thank you.
I did put in a warning twice. Thank you for adding that the video does not do as it says. It does change two values, but not in the manner that it says.
I know that but I did not want to get into a deep discussion about what is involved and how the video was not described correctly. It says that it returns two values, but it does not. It returns a void. It just changes two values that were created...Leave a comment:
-
SwissProgrammer replied to C++ Return 2 values from function or return multiple values from functionin CI did not want to explain this because if someone that does not use use pointers (and references) correctly in their function return then they could make a big mess.
I received a private link to someone that did explain this and put it into a video. I think that the video is well done. I like it. It explains how this can be done. It does not explain why it could be disastrous to a program if it is done wrong, but it does explain a...Leave a comment:
-
Thank you SioSio.
gits: "what realistic usecase could be behind that?"
In the past, I would send in (sometimes a few minutes apart) detailed construction progress reports, and customer interaction reports, into the main office. Sometimes I thought about the possibility of some other company's personnel reading my reports. At that time, I was careful what I reported, but I used Excel a lot and sometimes considered...Leave a comment:
-
SwissProgrammer replied to I Double Dare you: Write a shortest path process for a grid-layout game if you can.in CThat was me giving up again. And then you helping me to keep trying.
I like this site so much. Thank you.Leave a comment:
No activity results to display
Show More
Leave a comment: