|
-
Nov 10th, 2001, 08:54 PM
#1
Thread Starter
Fanatic Member
whats wrong here
im trying out CString, just experimenting, and im going crazy. i've look at a couple of sites, and it's correct:
Code:
#include <cstring.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
void main(void){
CString s1;
s1= "hello";
printf("%s",s1.Right(1));
}
The Errors:
--------------------Configuration: Cpp1 - Win32 Debug--------------------
Compiling...
Cpp1.cpp
C:\Nabeel\Projects\C++\gfxtest\Cpp1.cpp(7) : error C2065: 'CString' : undeclared identifier
C:\Nabeel\Projects\C++\gfxtest\Cpp1.cpp(7) : error C2146: syntax error : missing ';' before identifier 's1'
C:\Nabeel\Projects\C++\gfxtest\Cpp1.cpp(7) : error C2065: 's1' : undeclared identifier
C:\Nabeel\Projects\C++\gfxtest\Cpp1.cpp(8) : error C2146: syntax error : missing ';' before identifier 's2'
C:\Nabeel\Projects\C++\gfxtest\Cpp1.cpp(8) : error C2065: 's2' : undeclared identifier
C:\Nabeel\Projects\C++\gfxtest\Cpp1.cpp(8) : error C2228: left of '.Right' must have class/struct/union type
Error executing cl.exe.
Cpp1.exe - 6 error(s), 0 warning(s)
im going crazy over this!
then i tried converting to pointers, and still the same errors
Visit www.fragblast.com
Gaming, forums, and a online RPG/Battle system
(__Flagg) DOT NET? is this a Hindi Dating service?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|