Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #4K
~9K People Reached
About Me

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

Member Avatar for Basteon

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 …

Member Avatar for Momerath
0
212
Member Avatar for Basteon

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.

Member Avatar for jbennet
0
421
Member Avatar for Basteon

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 …

Member Avatar for sathishraji
0
1K
Member Avatar for Basteon

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 …

Member Avatar for raptr_dflo
0
1K
Member Avatar for bobytch

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 …

Member Avatar for Ancient Dragon
-4
3K
Member Avatar for sanjith123456

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]

Member Avatar for frogboy77
-2
104
Member Avatar for StuartB2

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 …

Member Avatar for Nick Evan
0
196
Member Avatar for Awah Mohamed

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 …

Member Avatar for Basteon
0
342
Member Avatar for Basteon

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 …

Member Avatar for Basteon
0
1K
Member Avatar for Hayzam_#include

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]

Member Avatar for Hayzam_#include
0
81
Member Avatar for skorm909

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 …

Member Avatar for vsvivek796
0
228

The End.