Recent content by 31si

  1. 3

    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?
  2. 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.
  3. 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.
  4. 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:
  5. 3

    Which header file is CString in?

    OK, next step anyone got any ideas which header file it is in?
  6. 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?
  7. 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>
  8. 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...
  9. 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?
  10. 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.
  11. 3

    Passing a 2d array to a function in C

    Will do, I will most likely end up asking more questions about it anyway.
  12. 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.
  13. 3

    Passing a 2d array to a function in C

    Never mind sorted the different dimension problem
  14. 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)
  15. 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?
Back
Top