Click here to Skip to main content
15,915,703 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDirectX9 and windows XP Pin
Hanan88822-May-08 2:47
Hanan88822-May-08 2:47 
AnswerRe: DirectX9 and windows XP Pin
CPallini22-May-08 2:52
mveCPallini22-May-08 2:52 
AnswerRe: DirectX9 and windows XP Pin
toxcct22-May-08 2:59
toxcct22-May-08 2:59 
GeneralRe: DirectX9 and windows XP [modified] Pin
Rajkumar R22-May-08 7:14
Rajkumar R22-May-08 7:14 
AnswerRe: DirectX9 and windows XP Pin
Hamid_RT22-May-08 4:09
Hamid_RT22-May-08 4:09 
AnswerRe: DirectX9 and windows XP [modified] Pin
Hamid_RT22-May-08 4:49
Hamid_RT22-May-08 4:49 
AnswerRe: DirectX9 and windows XP [modified] Pin
Rajkumar R22-May-08 7:20
Rajkumar R22-May-08 7:20 
QuestionRemoving MFC classes, and replacing with ANSI C++ Pin
Fu Manchu22-May-08 2:46
Fu Manchu22-May-08 2:46 
Hi all,

I am trying to convert a API that's used in a MFC app, i want to convert this to .net. But i think it will make the job easier to strip out the MFC stuff and replace it with ANSI C++. I want to get it all working in a console app, so the MFC stuff is causing all the problems!

Well i think?

In the code i have.....

CTime time;
CTime datavalue;

CTime is a MFC datatype, this i believe is different from the ctime method in the time.h.

Is there a ANSI C++ class that will replace this?

I thought about this a wrote a class like this....

class Ctime

{

public:

time_t GetUTCTime(void);

};

time_t Ctime::GetUTCTime()

{
time_t UTCTime;
UTCTime = time(NULL);
return UTCTime;
}

its missing a pointer, because i've spent so long in the .net world i've forget how to write C. I'm not sure if this will work anyway but at least i'll have the basic class replacement.

thanks..
AnswerRe: Removing MFC classes, and replacing with ANSI C++ Pin
Hanan88822-May-08 2:55
Hanan88822-May-08 2:55 
GeneralRe: Removing MFC classes, and replacing with ANSI C++ Pin
Fu Manchu22-May-08 3:38
Fu Manchu22-May-08 3:38 
Questionhow to implement the function as follow? Pin
ZhiLiangLin22-May-08 2:38
ZhiLiangLin22-May-08 2:38 
AnswerRe: how to implement the function as follow? Pin
CPallini22-May-08 2:49
mveCPallini22-May-08 2:49 
JokeRe: how to implement the function as follow? Pin
Hamid_RT22-May-08 4:17
Hamid_RT22-May-08 4:17 
GeneralRe: how to implement the function as follow? Pin
ThatsAlok16-Jul-09 20:40
ThatsAlok16-Jul-09 20:40 
AnswerRe: how to implement the function as follow? Pin
_AnsHUMAN_ 22-May-08 3:02
_AnsHUMAN_ 22-May-08 3:02 
GeneralRe: how to implement the function as follow? Pin
ZhiLiangLin22-May-08 15:00
ZhiLiangLin22-May-08 15:00 
Questionprogressindication Pin
Mohanraj D22-May-08 2:07
Mohanraj D22-May-08 2:07 
QuestionHow to find particular string and increment. Pin
manju#12322-May-08 1:07
manju#12322-May-08 1:07 
AnswerRe: How to find particular string and increment. Pin
Rajesh R Subramanian22-May-08 1:39
professionalRajesh R Subramanian22-May-08 1:39 
GeneralRe: How to find particular string and increment. Pin
Cedric Moonen22-May-08 1:43
Cedric Moonen22-May-08 1:43 
GeneralRe: How to find particular string and increment. Pin
manju#12322-May-08 1:56
manju#12322-May-08 1:56 
GeneralRe: How to find particular string and increment. Pin
Rajesh R Subramanian22-May-08 2:22
professionalRajesh R Subramanian22-May-08 2:22 
GeneralRe: How to find particular string and increment. Pin
manju#12322-May-08 2:30
manju#12322-May-08 2:30 
AnswerRe: How to find particular string and increment. Pin
CPallini22-May-08 1:48
mveCPallini22-May-08 1:48 
GeneralRe: How to find particular string and increment. Pin
manju#12322-May-08 2:02
manju#12322-May-08 2:02 

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.