|
before giving you more directions, i'd like to know your goals please.
why are you needing to allocate such a huge amount of memory at a given location which windows will probably overwrite or already handles some...?
|
|
|
|
|
toxcct wrote: huge amount of memory
64K? Seriously?
|
|
|
|
|
Hi
thanks for your response.
here is the task please guide me.
i want to interact with an ISA device in the system, and to access its registers, it demands to access the memory available at some X location.
this we came to understand by studying an obsolete console application written for that device.
any ideas?
thank you.
|
|
|
|
|
On NT4 and higher, you cannot directly access the devices registers. The OS will not permit it. You need to have a driver and your app then interacts with the driver.
Judy
|
|
|
|
|
the OS that iam using is windows 98. so it should support right?
|
|
|
|
|
Yes it should but I don't remember how to specifiy the memory mapping.
Judy
|
|
|
|
|
toxcct wrote: why are you needing to allocate such a huge amount of memory
hehe
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
Hello I'm new in MFC and all this small and ease tasks in c# seems to me very impossible in MFC.
I'm trying to do a log file.
I need to take the current system time and date and then transformed it in CString in order to write them in the file.
Tnx for the help,
And have a nice weekend.
|
|
|
|
|
Use CString::Format (or sprintf in the example below)
see this[^] for an example.
|
|
|
|
|
mihai123 wrote: all this small and ease tasks in c# seems to me very impossible in MFC.
You mean MFC is hard? You must write an ActiveX control in plain Win32, my friend
SYSTEMTIME time;
GetSystemTime(&time);
CString str;
str.Format("Year: %d, Month:%d, Day of month:%d,
Day of week:%d",time.wYear, time.wMonth, time.wDay, time.wDayOfWeek);
AfxMessageBox(str);
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: You mean MFC is hard? You must write an ActiveX control in plain Win32, my friend
Never used MFC for that. ATL was far much better .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
CPallini wrote: ATL was far much better
No, the point was that the OP said doing things with MFC is hard. So, I thought how nice it must be for the OP to write an ActiveX control with Win32, not even MFC.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Hi..
I have specified string
sample.jpg
I want only extension as output
output = .jpg
plz help me
manju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
See CString::Find and CString::Right.
|
|
|
|
|
Read more on CString . That's it.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
See here [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
what do u want to prove to write "Lokking for a job".I thing there are a lot of jobs in market first of all improve yourself.
|
|
|
|
|
|
manju#123 wrote: I have Completed my B.E Computers Science
Doesn't appear to be worth the paper it's written on if you cannot come up with a solution for such a simple task.
|
|
|
|
|
hi all
Sorry for the silly question.i will study and improve myself..
thank you for your suggestions
manju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
Actually, I'm sorry, that comment was pretty harsh.
Anyway, what programming languages did you learn if not C/C++?
|
|
|
|
|
Hi sir..
It was not harsh sir..it was the truth...
I am trying to learn VC++...My friends are giving some assignments and i am working on that.
thank you very much for your reply..
manju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
Hello Manju,
I like your approach and your ambition is good.
But you have to work hard to get in to the VC++ field.
Read Some basic books.
1 ) Let us C++ (which will give confident in c++) This is the base for all.
2 ) Visual Programming by yaswant kanetkar(which will give intro about windows programming)
3 ) Windows Programming by charles petzold
4 ) Read some MFC books.
This will help you a lot to get into the VC++ field.
Once i was also like this.Anyway all the best.
Here is the answer For Your question :
Windows API :
To split the file name into components
void _splitpath(
const char *path, // Input file name.
char *drive,
char *dir,
char *fname,
char *ext
);
http://msdn.microsoft.com/en-us/library/e737s6tf(VS.71).aspx
Regards,
WindowsPistha
|
|
|
|
|
manju#123 wrote: Sorry for the silly question.i will study and improve myself..
Good Lord! You're one nice person. Good luck with your learnings. Do keep asking questions when you run into trouble.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|