|
It seems he is posting and posting the new questions instead of reading replies.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
I guess hes student
|
|
|
|
|
One difference is that references support operator overloading.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Sir,
There is some problem in inline funcions .some times it is written inline keyword.
I wanted to know the basic advantage of writing the inline keyword before the function.
Thanks
|
|
|
|
|
There isn't one.
Inline is not a command to the compiler, it's a suggestion. A compiler can inline without you putting the keyword, and it can ignore the suggestion when you make it.
Have you heard of google ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
One of those days is it?
Guessing by the topics, I'm guessing the homework assignment this week is related to functions and pointers.
|
|
|
|
|
And next week?
|
|
|
|
|
Hmmm..
Possibly the keywords static , new and delete . And maybe the this pointer and subclassing . What do you think?
|
|
|
|
|
Or maybe Friend classes or Type Casting
|
|
|
|
|
Sir,
I want to know the difference between compiler and linker.
Thanks
|
|
|
|
|
Please never do this again. Read a book, get some basic knowledge, and ask pointed questions when you need help. I can guarentee you that typing any of these questions in to google would have given you correct answers, they are all very basic questions. We are here to help, BUT learning a little for yourself will give you the skills you need to make sense of the answers we will give you.
And 10 questions, with mostly meaningless headers, all of them on the most basic level, is not how to make the best use of these forums.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Sir,
I want to imlpements the threads in C++.PLease provide some help.
Thanks
|
|
|
|
|
Here is a tip for you.
Open your internet explorer.
Type "Threads C++" and press "Google Search".
You would get a lot of wonderful material on this topic.
Good luck
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
amaneet wrote: I want to imlpements the threads in C++.PLease provide some help.
See here and here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
you are calculating it like this "(j-i)", which is actually subtracting one address from the other, giving a new address. You then print the value of that address, which would be 0x00000004.
|
|
|
|
|
Hi guys.
I encounterd a problem, I want to read and wirte to the file using CArchive class,
how can i read and write at the same time using CArchive. On the other hand, I want to wirte in the file at specific position using CArchive.
Please help me out.
Thanks,truely yours.
Affectionately.
|
|
|
|
|
Hello good boy,
it is as easy as you can imagine.
You must define one CFile object and two CArchive objects, the first one for reading and the second for writing; So, you map both CArchive objects to the CFile object.
Wow.
It is for you Mohammad !
|
|
|
|
|
Hello,
I am a newbie.
I have read source code of many programs.
They contain some application forms.
I can't know which function is created for user interface or change file time.
I would like to see the easy code to change file time.(Any language C/C++ , Java , Or VB)
I would like to change file attribute
- created time
- last modified time
- last access time
Any one can help me?
Thank you.
|
|
|
|
|
toeh wrote: I would like to change file attribute
- created time
- last modified time
- last access time
What's wrong with SetFileTime() ??
|
|
|
|
|
I'm trying to set tabs in a list box. The box works - my fields are being displayed in the box, but the tab setting apears to have no effect. I have tried settings from 1 to 200 and nothing happens. Ideas? Thanks.
ComplMessage.Format("%d %s %s %.4f %.4f %.4f %d",
Subs[i].ComboLine,
Subs[i].ContractName,
Subs[i].ContractDate,
Subs[i].Last,
Subs[i].Bid,
Subs[i].Offer,
Subs[i].Volume);
int tabber = 10;
int tabs[7];
tabs[0] = tabber;
tabs[1] = tabber;
tabs[2] = tabber;
tabs[3] = tabber;
tabs[4] = tabber;
tabs[5] = tabber;
tabs[6] = tabber;
pListBox->SetTabStops(7, tabs); <-- this doesn't work
pListBox->AddString(ComplMessage); <--this works
|
|
|
|
|
You are setting all 7 stops at the same location?
What about...
int tabber = 10;
int tabs[7];
for (int i = 0; i < 7; ++i)
tabs[i] = i * tabber;
pListBox->SetTabStops(7, tabs);
*EDIT* Tab stops are in dialog units BTW :)
|
|
|
|
|
I need to revise an existing Installer program, One that someone might have, that will allow me to automatically install programs on a CD to C:\ .
Does anyone have the source code for such an "installer"?
Also, I need the source code and explanation for how to make a program "run" automatically when the CD is put into the CD drive.
Any help on either of these topics would be greatly appreciated.
Thanks,
A C++ programming language novice, but striving to learn
|
|
|
|
|
Larry Mills Sr wrote: Does anyone have the source code for such an "installer"?
Not quite sure what you mean here. An installer is simply an exe that will either copy compressed files or raw files to a specific location, then create shortcuts and registry entries. There is no special installer to be used with CD's, but usually the files on a CD will be in raw format.
Larry Mills Sr wrote: Also, I need the source code and explanation for how to make a program "run" automatically when the CD is put into the CD drive.
Again, there is no magic software to do this. You cannot force a program to be run from a CD because the user is able to enable/disable this option. To create an autorun CD all you need is to create a file called autorun.ini in which is the path to the exe to run and an optional icon. If the user has enabled the autorun feature, windows will look for this file then run the exe.
|
|
|
|
|
I'm not sure how to copy files and directories in MFC. I have done it in API, but not in MFC.
Could you show me a simple code that would 10 Create the Directory and then copy the files to the directory in MFC.
Also, I know nothing about ".ini" files and where they are placed in, ie, another file?, and how they are used. Could you give me a simple example that I could base my program on CD for?
Thanks
A C++ programming language novice, but striving to learn
|
|
|
|
|
I don't code in MFC so I wouldn't know how. But MFC is just a wrapper to the API, so it is perfectly safe for you to use the API functions you already know.
The ini file is stored in the directory. The best way to learn is to get any CD that autorun's ( nearly all games ). And click 'Explore' in the windows explorer. If you don't see the file you may have to select 'view system files and folders' from the explorer options.
Open the file in a text editor.
-- modified at 23:10 Saturday 11th November, 2006
Sorry, I just noticed I gave you the wrong file extension. It should be *.inf not *.ini.
|
|
|
|