Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 528 results for
pch
- Page 1
Re: PCH error
Programming
Software Development
17 Years Ago
by Nick Evan
… Header', so you've created a project that requires a
PCH
but you didn't include it. Just add [icode]#include…] as the very first line in your code. Or turn
PCH
off, but since you didn't tell which compiler (version…
PCH error
Programming
Software Development
17 Years Ago
by WondererAbu
…;Teacher.h" using namespace std;// syntax error : missing ';' before '
PCH
creation point' teacher::teacher(int tid,int cid,char *teachname…
static lib with .pch file
Programming
Software Development
14 Years Ago
by student89
….h * precompiled header file $(IntDir)\$(TargetName).
pch
and then i got that .lib file + .
pch
file and put it in another project… i included "xmlparser.
pch
" but i dont know how to use classes from…
Re: static lib with .pch file
Programming
Software Development
14 Years Ago
by Ancient Dragon
The *.
pch
file is of no use outside the project that created …
error C1189: #error : include 'stdafx.h' before including this file for PCH
Programming
Software Development
15 Years Ago
by bobbuilder67
… C1189: #error : include 'stdafx.h' before including this file for
PCH
Please help me, I am stuck. Attached Files: [url]http…
Re: error C1189: #error : include 'stdafx.h' before including this file for PCH
Programming
Software Development
15 Years Ago
by jonsca
There are a couple of things that are standing in the way of this compiling. When you posted last I assumed incorrectly that this would be a console application. Upon a closer look it appears to be an MFC (MS Foundation Classes) application which is not directly supported by the express edition of VC++ only the standard. In addition to that, …
Re: error C1189: #error : include 'stdafx.h' before including this file for PCH
Programming
Software Development
15 Years Ago
by bobbuilder67
So does anyone know of how I should edit stdafx.h to get his program to work?
Re: error C1189: #error : include 'stdafx.h' before including this file for PCH
Programming
Software Development
15 Years Ago
by mitrmkar
[QUOTE=bobbuilder67;1119087]So does anyone know of how I should edit stdafx.h to get his program to work?[/QUOTE] Unfortunately editing stdafx.h will do no good. It is a MFC program you have there, and the VC Express won't be able to compile it like jonsca ^said^. If you know someone, who's familiar with the MFC, the program might be quickly …
Re: error C1189: #error : include 'stdafx.h' before including this file for PCH
Programming
Software Development
14 Years Ago
by sarah_10
which code is then use in place of stdafx.h
Re: Pointers (archived tutorial)
Programming
Software Development
18 Years Ago
by Ancient Dragon
…[0]; Example 1-1 Above line is incorrect because pointer
pch
is uninitialized. >>ptr = &n[0]; Example 1…
convert into c# from c
Programming
Software Development
11 Years Ago
by nnayram
…,
pch
, strlen (
pch
) ); records[index].code[strlen (
pch
) ] = '\0';
pch
= strtok ( NULL, delim ); memcpy (records[index].name,
pch
, strlen (
pch
) ); records[index].name[strlen (
pch
) ] = '\0';
pch
= strtok…
segmentation fault
Programming
Software Development
14 Years Ago
by watery87
…); // 9) Retrieve Currency strcpy (ctryRec.Currency,
pch
);
pch
= strtok (NULL, LINE_DATA_DELIMITER); // 10) Retrieve CurrencyCode strcpy (ctryRec.CurrencyCode,
pch
);
pch
= strtok (NULL, LINE_DATA_DELIMITER); // 11) Retrieve…
Client Server Program. Urgent Questions!
Programming
Software Development
14 Years Ago
by watery87
…); // 9) Retrieve Currency strcpy (ctryRec.Currency,
pch
);
pch
= strtok (NULL, LINE_DATA_DELIMITER); // 10) Retrieve CurrencyCode strcpy (ctryRec.CurrencyCode,
pch
);
pch
= strtok (NULL, LINE_DATA_DELIMITER); // 11) Retrieve…
Re: Improving code functionality
Programming
Software Development
16 Years Ago
by Valaraukar
…; countObjects(fileName, object); nObj = -1;
pch
= strtok(fullFile, delim); while(
pch
!= NULL) { if(strcmp(
pch
, "GEOMOBJECT") == NULL) nObj++; … delim); object[nObj].facets[f][i] = atof(strtok (NULL, delim)); } }
pch
= strtok (NULL, delim); } free (fullFile); } char *readFile(FILE *sceneFile…
Improving code functionality
Programming
Software Development
16 Years Ago
by Valaraukar
… i, nObj; countObjects(fileName); nObj = -1;
pch
= strtok(fullFile, delim); while(
pch
!= NULL) { if(strcmp(
pch
, "GEOMOBJECT") == NULL) nObj++; if(strcmp…) vertices[nObj][i] = (float *) calloc(numCols, sizeof(float)); } if(strcmp(
pch
, "MESH_NUMFACES") == NULL) { nFacets[nObj] = atoi(strtok (NULL, delim…
Re: Improving code functionality
Programming
Software Development
16 Years Ago
by Valaraukar
…; countObjects(fileName, object); nObj = -1;
pch
= strtok(fullFile, delim); while(
pch
!= NULL) { if(strcmp(
pch
, "GEOMOBJECT") == NULL) nObj++; if… object->facets[nObj][f][i] = atof(strtok (NULL, delim)); } }
pch
= strtok (NULL, delim); } free (fullFile); } char *readFile(FILE *sceneFile)…
Re: Improving code functionality
Programming
Software Development
16 Years Ago
by nucleon
…= (Point3Df*) calloc(object[nObj].nVertices, sizeof(Point3Df)); } if(strcmp(
pch
, "MESH_NUMFACES") == NULL) { object[nObj].nFacets = atoi(… = (ThreeInts*) calloc(object[nObj].nFacets, sizeof(ThreeInts)); } if(strcmp(
pch
, "MESH_VERTEX") == NULL) { v = atoi(strtok (NULL…
Re: Improving code functionality
Programming
Software Development
16 Years Ago
by Valaraukar
… nObj; countObjects(fileName, object); nObj = -1;
pch
= strtok(fullFile, delim); while(
pch
!= NULL) { if(strcmp(
pch
, "GEOMOBJECT") == NULL) nObj++; if(…vertices = (Point3Df*) calloc(object[nObj].nVertices, sizeof(Point3Df)); } if(strcmp(
pch
, "MESH_NUMFACES") == NULL) { object[nObj].nFacets = atoi(strtok …
Re: Improving code functionality
Programming
Software Development
16 Years Ago
by Valaraukar
…[20]) { char * fullFile = readFile(fopen (fileName, "rb")); char *
pch
; char * delim = " *\x9\xA\xD\\:"; int i; numObjects… *object) { char * fullFile = readFile(fopen (fileName, "rb")); char *
pch
; char * delim = " *\x9\xA\xD\\:"; int i; numObjects…
Problems readint text lines and passing to strings
Programming
Software Development
15 Years Ago
by kavourdoukos
…]; char location[24]; char country[24]; char buffer[200]; char*
pch
; int id=0; fp=fopen("example.txt","…)) { fgets(buffer,200,fp); if(buffer[0]=='@'){
pch
= strtok (buffer,"@"); strcpy(country,
pch
); } if (buffer[5]=='(' && buffer[9…
strotok
Programming
Software Development
14 Years Ago
by aimbo
…s\n",temp); printf("debug2 %s\n",
pch
); if (pch1 != NULL) { pch1 = strdup(temp); … } printf("debug3 %s\n",
pch
); } else { i = atoi(
pch
); printf("%d\n",i); }…); free(pch1); printf("debug5 %s\n",
pch
);
pch
= strtok(NULL,","); printf("debug6 %s…
Re: Dynamically allocating/re-allocating memory
Programming
Software Development
16 Years Ago
by Valaraukar
…, nObj; countObjects(fileName); nObj = -1;
pch
= strtok(fullFile, delim); while(
pch
!= NULL) { if(strcmp(
pch
, "GEOMOBJECT") == NULL) nObj++;…(NULL, delim)); //printf("%d: ", facets[shapeNum][f][i]); } }
pch
= strtok (NULL, delim); } free (fullFile); } char *readFile(FILE *sceneFile…
help in the program
Programming
Software Development
19 Years Ago
by jazzz
…( NULL ==
pch
) { printf("
pch
malloc error!"); exit (NG); } memcpy(
pch
,acFileName,strlen(acFileName)+1);
pch
= strrchr(temp,'/'); cnt =
pch
- temp …stFindsFiles); } FindFree(&stFinds); fclose(fp_dump); free(temp); free(
pch
); printf("Done!\n"); exit( OK ); } /*=====================…
Quick Sort Program
Programming
Software Development
19 Years Ago
by jazzz
…
pch
) { printf("
pch
malloc error!"); exit (NG); } memcpy(
pch
,acFileName,strlen(acFileName)+1);
pch
= strrchr(temp,'/'); cnt =
pch
…;stFinds); fclose(fp_dump); free(temp); free(
pch
); printf("Done!\n"); exit( …
Re: Quick Sort Program
Programming
Software Development
19 Years Ago
by jazzz
…
pch
) { printf("
pch
malloc error!"); exit (NG); } memcpy(
pch
,acFileName,strlen(acFileName)+1);
pch
= strrchr(temp,'/'); cnt =
pch
…;stFinds); fclose(fp_dump); free(temp); free(
pch
); printf("Done!\n"); exit( …
malloc problems
Programming
Software Development
17 Years Ago
by midimatt
…; float x = 0; float y = 0; float z = 0; char *
pch
; //character pointer float **vertices; int **facets; int n; int eof…) { case 1: x = atof(
pch
); break; case 2: y = atof(
pch
); break; case 3: z = atof(
pch
); break; }
pch
= strtok (NULL, " v"…
Dynamically allocating/re-allocating memory
Programming
Software Development
16 Years Ago
by Valaraukar
…], numCols); else vertices = reallocate_memoryf(numShapes, numVertices, numCols); } if(strcmp(
pch
, "MESH_NUMFACES") == NULL) { numFacets = atoi(strtok (NULL… numCols); else facets = reallocate_memoryi(numShapes, numFacets, numCols); } if(strcmp(
pch
, "MESH_VERTEX") == NULL) { v = atoi(strtok (NULL…
Re: Improving code functionality
Programming
Software Development
16 Years Ago
by nucleon
… fileName[20], struct Object3D* object) { char *fullFile = readFile(fileName); char *
pch
; int v, f; char *delim = " *\x9\xA\xD\\:"…; countObjects(fullFile, object); // ................. void countObjects(char *fullFile, Object3D *object) { char *
pch
; char * delim = " *\x9\xA\xD\\:"; int i; [/code…
Re: Improving code functionality
Programming
Software Development
16 Years Ago
by nucleon
…. typedef float Point3Df[3]; [/code] And this: [code] if(strcmp(
pch
, "MESH_VERTEX") == NULL) { v = atoi(strtok (NULL, delim)); printf…)); } [/code] to this: [code] typedef float Float3[3]; if(strcmp(
pch
, "MESH_VERTEX") == NULL) { v = atoi(strtok (NULL, delim)); printf…
Converting tchar array to string array
Programming
Software Development
14 Years Ago
by GeekInTraining
…(1024, szBuffer); TCHAR *
pch
= szBuffer; while (*
pch
) { _tprintf(TEXT("%s\n"),
pch
);
pch
= &
pch
[_tcslen(
pch
) + 1]; } int arraylength = sizeof(
pch
); cout <<… i; i = 0; if (i < arraylength) { i++; drive[i] =
pch
[i]; cout << drive[i] << endl; } return…
1
2
3
9
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC