Click here to Skip to main content
15,908,445 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: have to modify a prn file which is generated by printer Pin
Satya Chamakuri13-Aug-14 1:17
Satya Chamakuri13-Aug-14 1:17 
AnswerRe: have to modify a prn file which is generated by printer Pin
Satya Chamakuri13-Aug-14 1:21
Satya Chamakuri13-Aug-14 1:21 
AnswerRe: have to modify a prn file which is generated by printer Pin
CPallini13-Aug-14 2:08
mveCPallini13-Aug-14 2:08 
AnswerRe: have to modify a prn file which is generated by printer Pin
Stefan_Lang14-Aug-14 4:09
Stefan_Lang14-Aug-14 4:09 
QuestionKeyboard Arrow Key Control in C++ Pin
Member 1100457312-Aug-14 18:33
Member 1100457312-Aug-14 18:33 
AnswerRe: Keyboard Arrow Key Control in C++ Pin
Richard MacCutchan12-Aug-14 21:09
mveRichard MacCutchan12-Aug-14 21:09 
QuestionRe: Keyboard Arrow Key Control in C++ Pin
David Crow13-Aug-14 5:45
David Crow13-Aug-14 5:45 
QuestionStrange Syntax Pin
Richard Andrew x6412-Aug-14 13:01
professionalRichard Andrew x6412-Aug-14 13:01 
I saw this code snippet on a web page that was talking about CUDA[^] cores:

Does anyone know the meaning of the syntax on the third line where they call the kernel function with those greater-than and less-than signs?

C++
  dim3 blockDim(16, 16, 1);
  dim3 gridDim((width + blockDim.x - 1)/ blockDim.x, (height + blockDim.y - 1) / blockDim.y, 1);
  kernel<<< gridDim, blockDim, 0 >>>(d_data, height, width); 
 
  // Unbind the array from the texture
  cudaUnbindTexture(tex);
} //end foo()
 
__global__ void kernel(float* odata, int height, int width)
{
   unsigned int x = blockIdx.x*blockDim.x + threadIdx.x;
   unsigned int y = blockIdx.y*blockDim.y + threadIdx.y;
   if (x < width && y < height) {
      float c = tex2D(tex, x, y);
      odata[y*width+x] = c;
   }
}




The difficult we do right away...
...the impossible takes slightly longer.

AnswerRe: Strange Syntax Pin
CPallini12-Aug-14 21:03
mveCPallini12-Aug-14 21:03 
GeneralRe: Strange Syntax Pin
Richard Andrew x6413-Aug-14 2:24
professionalRichard Andrew x6413-Aug-14 2:24 
GeneralRe: Strange Syntax Pin
CPallini13-Aug-14 2:27
mveCPallini13-Aug-14 2:27 
QuestionHow to store objects(Object properites) in a file with c++ native codes? Pin
shaktikanta12-Aug-14 1:36
shaktikanta12-Aug-14 1:36 
AnswerRe: How to store objects(Object properites) in a file with c++ native codes? Pin
Maximilien12-Aug-14 3:17
Maximilien12-Aug-14 3:17 
GeneralRe: How to store objects(Object properites) in a file with c++ native codes? Pin
Cristian Amarie14-Aug-14 22:08
Cristian Amarie14-Aug-14 22:08 
QuestionHow to setup toolbars (CMFCToolbar) for small and large icons with different DPI values ? Pin
Maximilien11-Aug-14 7:40
Maximilien11-Aug-14 7:40 
AnswerRe: How to setup toolbars (CMFCToolbar) for small and large icons with different DPI values ? Pin
Andrew Truckle2-Jan-20 0:15
professionalAndrew Truckle2-Jan-20 0:15 
QuestionC/C++ Pin
Member 1100457310-Aug-14 21:33
Member 1100457310-Aug-14 21:33 
AnswerRe: C/C++ Pin
Richard MacCutchan10-Aug-14 23:10
mveRichard MacCutchan10-Aug-14 23:10 
AnswerRe: C/C++ Pin
Satya Chamakuri11-Aug-14 2:05
Satya Chamakuri11-Aug-14 2:05 
GeneralRe: C/C++ Pin
Member 1100457311-Aug-14 4:08
Member 1100457311-Aug-14 4:08 
GeneralRe: C/C++ Pin
Richard MacCutchan11-Aug-14 5:17
mveRichard MacCutchan11-Aug-14 5:17 
SuggestionRe: C/C++ Pin
David Crow11-Aug-14 5:51
David Crow11-Aug-14 5:51 
AnswerRe: C/C++ Pin
Satya Chamakuri11-Aug-14 18:12
Satya Chamakuri11-Aug-14 18:12 
GeneralRe: C/C++ Pin
Member 1100457311-Aug-14 19:16
Member 1100457311-Aug-14 19:16 
AnswerRe: C/C++ Pin
Satya Chamakuri11-Aug-14 21:06
Satya Chamakuri11-Aug-14 21:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.