Click here to Skip to main content
15,901,284 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question for jpeg.lib users Pin
JWood17-Jun-05 7:01
JWood17-Jun-05 7:01 
GeneralAnswer found Pin
ryuki17-Jun-05 11:30
ryuki17-Jun-05 11:30 
QuestionCan any help me in this simple proplem? Pin
kosamoza17-Jun-05 6:46
kosamoza17-Jun-05 6:46 
AnswerRe: Can any help me in this simple proplem? Pin
JWood17-Jun-05 6:54
JWood17-Jun-05 6:54 
AnswerRe: Can any help me in this simple proplem? Pin
David Crow17-Jun-05 7:16
David Crow17-Jun-05 7:16 
GeneralRe: Can any help me in this simple proplem? Pin
kosamoza17-Jun-05 10:48
kosamoza17-Jun-05 10:48 
GeneralRe: Can any help me in this simple proplem? Pin
David Crow17-Jun-05 17:18
David Crow17-Jun-05 17:18 
Generalconversion of unix codes to VC++ codes Pin
Bugslayer117-Jun-05 6:19
Bugslayer117-Jun-05 6:19 
Hello there,

I tried to incorporate the following code segments in a VC++ project, and to compile it in Visual Studio. There were compiling errors beyond my comprehension. Any help are appreciated.


typedef void biasFn (void *image, void *bias, uint32 pixels);

#define subtract(bits) \
static void subtract##bits (void *i, void *b, uint32 pixels)\
{\
uint##bits *image = i;\
uint##bits *bias = b;\
while (pixels--) {\
*image = *image > *bias ? *image-*bias : 0;\
image++, bias++; \
} \
}


subtract(8)
subtract(16)
subtract(32)


static biasFn *lineSubtractFn (unsigned bits)
{
switch (bits) {
case 8: return subtract8;
case 16: return subtract16;
case 32: return subtract32;
}
return NULL;
}


GeneralRe: conversion of unix codes to VC++ codes Pin
David Crow17-Jun-05 6:24
David Crow17-Jun-05 6:24 
GeneralRe: conversion of unix codes to VC++ codes Pin
Bugslayer117-Jun-05 6:57
Bugslayer117-Jun-05 6:57 
GeneralRe: conversion of unix codes to VC++ codes Pin
David Crow17-Jun-05 7:07
David Crow17-Jun-05 7:07 
GeneralRe: conversion of unix codes to VC++ codes Pin
Bugslayer117-Jun-05 7:15
Bugslayer117-Jun-05 7:15 
GeneralRe: conversion of unix codes to VC++ codes Pin
David Crow17-Jun-05 7:18
David Crow17-Jun-05 7:18 
GeneralRe: conversion of unix codes to VC++ codes Pin
Bugslayer117-Jun-05 7:36
Bugslayer117-Jun-05 7:36 
GeneralRe: conversion of unix codes to VC++ codes Pin
David Crow17-Jun-05 8:03
David Crow17-Jun-05 8:03 
GeneralRe: conversion of unix codes to VC++ codes Pin
Bugslayer120-Jun-05 5:53
Bugslayer120-Jun-05 5:53 
GeneralRe: conversion of unix codes to VC++ codes Pin
David Crow20-Jun-05 6:06
David Crow20-Jun-05 6:06 
GeneralRe: conversion of unix codes to VC++ codes Pin
Bugslayer120-Jun-05 6:09
Bugslayer120-Jun-05 6:09 
GeneralRe: conversion of unix codes to VC++ codes Pin
David Crow20-Jun-05 6:15
David Crow20-Jun-05 6:15 
GeneralRe: conversion of unix codes to VC++ codes Pin
Bob Stanneveld17-Jun-05 10:36
Bob Stanneveld17-Jun-05 10:36 
GeneralRe: conversion of unix codes to VC++ codes Pin
Bob Stanneveld17-Jun-05 10:32
Bob Stanneveld17-Jun-05 10:32 
Generalexcel chart Pin
Anonymous17-Jun-05 6:00
Anonymous17-Jun-05 6:00 
GeneralRe: excel chart Pin
David Crow17-Jun-05 6:23
David Crow17-Jun-05 6:23 
QuestionAPI Call to find the installed Default Email Client ?? Pin
Robert Palma Jr.17-Jun-05 5:59
Robert Palma Jr.17-Jun-05 5:59 
AnswerRe: API Call to find the installed Default Email Client ?? Pin
Ravi Bhavnani17-Jun-05 6:14
professionalRavi Bhavnani17-Jun-05 6:14 

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.