Forum: C++ Jun 4th, 2006 |
| Replies: 23 Views: 4,142 To use GUI you should first learn Win32 API and/or MFC.
I suggest you learn C++ throughout in the first place. |
Forum: C++ Apr 18th, 2006 |
| Replies: 3 Views: 5,573 My code :int _tmain(int argc, _TCHAR* argv[])
{
HINTERNET hInternet;
BOOL bResult;
hInternet = InternetOpen( (LPCTSTR) "NoAgent",
(DWORD) INTERNET_OPEN_TYPE_DIRECT,... |
Forum: C++ Apr 18th, 2006 |
| Replies: 8 Views: 12,338 The best way is to create your own classes in such situations. It is not difficult to find sample code on the net. Even if you find it, it won't be handy, because your own code can't take the place... |
Forum: C++ Mar 5th, 2006 |
| Replies: 5 Views: 4,534 And also,#pragma comment(lib, "opengl32.lib");
#pragma comment(lib, "glu32.lib");may be added at the beginning of the program code as an alternative. |
Forum: C++ Mar 5th, 2006 |
| Replies: 5 Views: 4,534 It is well explained in MSDN :
Thanks everybody! |
Forum: C++ Mar 4th, 2006 |
| Replies: 5 Views: 4,534 I had been studying OpenGL in DevCPP all the time. Using DevCPP you link OpenGL library files libopengl32.a and libglu32.a adjusting project options. But I dont know how to do this in VC++.
Can you... |
Forum: C++ Mar 4th, 2006 |
| Replies: 5 Views: 1,536 Yes, you had better sending your entire code. It's impossible to understand a program with just a piece of it. |
Forum: C++ Feb 26th, 2006 |
| Replies: 12 Views: 9,703 Code :1813
Error :The specified resource type cannot be found in the image file.
Const :ERROR_RESOURCE_TYPE_NOT_FOUND |
Forum: C++ Feb 26th, 2006 |
| Replies: 5 Views: 3,146 May be you can use a random word buffer. Store 100 random words to a buffer in one time. After user finishes 100 words (i now no such a person!), read another 100 words. |
Forum: C++ Feb 25th, 2006 |
| Replies: 12 Views: 9,703 Try using GetLastError() function. |
Forum: C++ Jan 30th, 2006 |
| Replies: 5 Views: 2,380 John-san,
Instead of using MessageBox(), you must use wide-char version of it, MessageBoxW(). Parametres are same for it, except for the title and text. Title and text must be in the WCHAR type.
... |
Forum: C++ Oct 7th, 2005 |
| Replies: 2 Views: 2,184 I am trying to write down a Win32 program that recovers corrupted files on CDs and DVDs.
I used ReadFile() function to read the corrupted file. ReadFile() is supposed to return ERROR_READ_FAULT... |
Forum: C++ Jul 29th, 2005 |
| Replies: 7 Views: 17,430 Thanx Dave, you are very kind...
I made some test on my code. Here is a sample :
The output is :
As it is seen, the gap is between the variables "Signture" and "FileSize". There is a 2... |
Forum: C++ Jul 28th, 2005 |
| Replies: 7 Views: 17,430 What do you mean by packing structures?
Are there any gaps between variables in a structure? If so, how can we avoid them? |
Forum: C++ Jul 28th, 2005 |
| Replies: 7 Views: 17,430 So, is that the fault of sizeof() or the structure really holds 56 bytes?
I am gonna use this structure to gether the header of a bitmap file. My question is, am I gonna get 54 bytes or 56 bytes... |
Forum: C++ Jul 28th, 2005 |
| Replies: 7 Views: 17,430 Here is my code :
I'm using Dev-CPP compiler.
Output is 56, but it must be 54.
Any explanation and solutions? |
Forum: C++ May 7th, 2005 |
| Replies: 26 Views: 5,377 C and C++ are certainly diffrent languages; nobody can deny it.
Whenever, I take some C code, without paying attention if it was C or C++, from this site it doesn't work properly on C++ compiler.... |
Forum: C++ May 2nd, 2005 |
| Replies: 8 Views: 12,716 Yes Dave, you're right.
At the weekend, I studied on it and I realized than dos.h for Bloodshed has no union type for REGS. But Turbo C has...
I quit using Bloodshed, now I am using Microsoft... |
Forum: C++ Apr 29th, 2005 |
| Replies: 8 Views: 12,716 In the tutorials of this web site, I found a topic related in using Mod 13h graphics in C++. Have a look at this URL :http://www.daniweb.com/tutorials/tutorial8439.html. I tried it on my computer,... |
Forum: C++ Apr 27th, 2005 |
| Replies: 8 Views: 12,716 Yes, it works. Really thanks.
But what about graphics and using Assembly? |
Forum: C++ Apr 26th, 2005 |
| Replies: 8 Views: 12,716 Thank you,
I am gonna try it. |
Forum: C++ Apr 25th, 2005 |
| Replies: 8 Views: 12,716 I want to change cursor position in my C++ program. As you know, C++ does not have any command to do this. By I think, one of the h files can be used for this purpose.
My Bloodshed compiler has... |