- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I'm a second year student at TUM, speciality Informational Technologies.
- PC Specs
- CPU: 3.00 GHz RAM: 2.00 Gb VGA: 512 Mb HDD: 500 Gb OS: Windows 7 Ultimate 32bit
11 Posted Topics
Hello! I am making a custom control, simmilar to TreeView, in WinForms C#. And I was wondering how is the Nodes collection made. The one with Roots and Childs. I tried using a simple collection but it doesn't give the functionallity I need. [Screenshot](http://i.imgur.com/QAaW6.png, "Screenshot of the TreeView's nodes collection … | |
Is it possible to develop Win32 C++ applications under a Linux distribution? If it is then how do I do this? I know about Virtual machines, but I'm looking for something that wouldn't require to emulate a whole OS. | |
So, I need to make a program that draws a [URL="http://en.wikipedia.org/wiki/Automata_theory"]finite automata[/URL] from the input data. I had some experience with the [I]graphics.h[/I] header but as far as I know it's a Borland only header and VC++ doesn't support it. So I was wondering, is there a way to draw … | |
So, I want to save an HBITMAP to different image file formats like BMP,PNG and JPEG. I believe that the most simple way to do it is by using GDI+. So here is what I came up with. [CODE]Gdiplus::Bitmap bmp(hbmpImage,(HPALETTE)0); CLSID pngClsid; GetEncoderClsid(L"image/png", &pngClsid); bmp.Save(L"D:\image.png",&pngClsid,NULL);[/CODE] The problem is that it … | |
Re: Check out the functions [URL="http://www.cplusplus.com/reference/clibrary/cstdlib/rand/"]rand()[/URL] and [URL="http://www.cplusplus.com/reference/clibrary/cstdlib/srand/"]srand()[/URL] for randomization. You can use those functions to generate yourself some RGB values and then change the values of the text color to the generated values. Show us some code of how you're planning to make the text blink, or change the color … | |
Re: Because in this function the characters are extracted until either [I]n-1[/I] characters have been extracted or the delimiting character '\n' is found. Here's a useful link on this topic: [URL="http://www.cplusplus.com/reference/iostream/istream/get/"]click me[/URL] | |
Re: Structures are more related to C language than C++. Anyway you could do it loke so: [CODE]#include <string>//including the header for strings //--------------Other-includes------------------------// //--------------Other-structs-or-classes-------------// typedef struct Quiz{ string qTitle;//Question title int cAnswer;//Correct answer int Answer;//The user's asnwer }; //--------------The-rest-of-the-code-------------//[/CODE] You could also use a vector of Answers(strings) if you want … | |
Re: What jonsca said is true, you cannot use graphics.h in Visual C++ or other IDE except Turbo C++. What you can do is, use that old WinBGIm library that jonsca mentioned along with Dev-C++(MinGw). Here is a tutorial on this topic: [URL="http://onecore.net/dev-c-graphics.htm"]link[/URL]. It has pretty much the same functionality as … | |
Hi! I'm writing the mergesort algorithm, theoretically everything is fine in it but when the function gets to call itself the program crashes. I belive that I'm doing something worng when I pass the vector<int> as a parameter to the function. [B]procedure mergesort(T[1 .. n]) if n is small then … | |
Re: How about some reading? You can find lots of helpful info in books... Check out this link: [URL="http://www.cplusplus.com/reference/stl/vector/"]<vector.h>[/URL] | |
Re: There is another way to check if a key was pressed that no one mentioned. It's the kbhit() from conio.h library. As far as I kow it returns the int value of the charachter you typed in and 0 if you didn't. Here is a basic example of using this … |
The End.