Recent content by 31si
-
3
C/C++ Win32 Radio Button Code for Visual C++ | No MFC
Hello I have googled to no avail. I am after the code to retrieve if a radio box is checked or not in Visual C++. I am not using MFC which all of the tutorial on the internet do. Any ideas? A few pointers in the right direction possibly?- 31si
- Thread
- Radio
- Replies: 1
- Forum: Programming and Computer Science
-
3
Which header file is CString in?
Problem solved. Thank you all for all of your help you have been a tremendous help. No doubt, I will be back for more assistance very soon.- 31si
- Post #14
- Forum: Programming and Computer Science
-
3
Which header file is CString in?
better Idea. I have now imported #include "atlstr.h" And I get only one error but I think I can get around it. I will keep you up to date with advances.- 31si
- Post #13
- Forum: Programming and Computer Science
-
3
Which header file is CString in?
Right, CString is defined in AFX.h. I have imported it and... I get less errors. The next error is show below:- 31si
- Post #12
- Forum: Programming and Computer Science
-
3
Which header file is CString in?
OK, next step anyone got any ideas which header file it is in?- 31si
- Post #11
- Forum: Programming and Computer Science
-
3
Which header file is CString in?
I can see what you are saying but If I were to include the String.h file, which is where I think CString is, in the .cpp file would it not import be the same as it importing in one of the other header files?- 31si
- Post #9
- Forum: Programming and Computer Science
-
3
Which header file is CString in?
The headers are as below: #include "stdafx.h" #include "CP2121 Assessment.h" #include <stdio.h> #include <String.h> #include <mmsystem.h> #include <d3d9.h> #include <D3DX9.h> #include <d3d9types.h> #include <winsock2.h> #include <iostream> #include <windows.h>- 31si
- Post #7
- Forum: Programming and Computer Science
-
3
Which header file is CString in?
Here is the code: void IPaddress(){ CString strTemp; struct hostent *host; struct in_addr *ptr; // To retrieve the IP Address DWORD dwScope = RESOURCE_CONTEXT; NETRESOURCE *NetResource = NULL; HANDLE hEnum; WNetOpenEnum( dwScope, NULL, NULL, NULL, &hEnum ); WSADATA...- 31si
- Post #5
- Forum: Programming and Computer Science
-
3
Which header file is CString in?
I've included the file you mentioned and I still get the same error. The attachment is a screen shot of the errors. Can anyone make sense of them?- 31si
- Post #3
- Forum: Programming and Computer Science
-
3
Which header file is CString in?
Hello Just a quickie. could anyone tell me which header file i have to include to be able to use CString in VC++? I have looking on the net and I can't find one that works. One suggests to use AFX.h but I get more errors with that included than without it.- 31si
- Thread
- File
- Replies: 13
- Forum: Programming and Computer Science
-
3
Passing a 2d array to a function in C
Will do, I will most likely end up asking more questions about it anyway.- 31si
- Post #18
- Forum: Programming and Computer Science
-
3
Passing a 2d array to a function in C
Might have a go at 3d game of life after I have finished the dynamic 2d version. 3d should be a good task. However trying to work out the rule set and a visualisation method could be somewhat interesting.- 31si
- Post #16
- Forum: Programming and Computer Science
-
3
Passing a 2d array to a function in C
Never mind sorted the different dimension problem- 31si
- Post #14
- Forum: Programming and Computer Science
-
3
Passing a 2d array to a function in C
Just checking, with the code that you kindly provided for me in the first place. I should be able to create a rectangular array shouldn't I? (i.e one where the rows are greater than the columns or visa versa)- 31si
- Post #13
- Forum: Programming and Computer Science
-
3
Passing a 2d array to a function in C
Another quick Q. How would I then free the allocated memory once I have done with it?- 31si
- Post #11
- Forum: Programming and Computer Science