|
Look into the resource editor.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I need to store and access a lot of small separate files. Whats the best way to group them together in an archive like single file (not compressed for fast access reason) and not to waste disk space. are there source codes?
9ine
|
|
|
|
|
What kind of data do your files contain?
|
|
|
|
|
just text formated signal:
3.21
2.22
4.44
5.55
... etc
9ine
|
|
|
|
|
So I would try it with XML. If you use SAX to read and write the file, the performance should be acceptable. There are several easy to use implementations to do this.
|
|
|
|
|
If you don't need to search the file data (just file names) then you may want to look at putting them in a database (e.g. MSDE aka MS SQL Srv lite).
...cmk
Save the whales - collect the whole set
|
|
|
|
|
Probably the easiest is to use sturctured storage. See here[^] for documentation.
Steve
|
|
|
|
|
I need somthing simple for console app, like TAR archive
9ine
|
|
|
|
|
Dear everyone;
i am trying to write some data to a file. now thats not a problem, what i also would like to do is to open a pre-existing file and append more data on it everytime my application is used.
thats what i have done, but for some reason it does not work ??
FILE* trial = fopen("Trial.txt","a+");
// a user event function which processes user clicks
BOOL CExample::PreTranslateMessage(MSG* pMsg){
if(WM_LBUTTONDOWN == pMsg->message){
fprintf(trial, "\nAppend Data");
fflush(trial);
}
}
The file however appears to be not changing at all !!!
any help will be very much appreciated
llp00na
|
|
|
|
|
Have you checked the return values of the fopen, fprintf and fflush functions? Check the return values to se if an error occured.
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
well fprintf returns an integer (38). How wud i check for errors ???
llp00na
|
|
|
|
|
llp00na wrote: How wud i check for errors ???
Look up fprintf in MSDN. The documentation tells you what the return values mean or how to find out what the errors are.
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
Hi to all,
1) How to Play any Audio File i.e. MPEG,WAVE,MIDI,wma,etc.. (with functionalities such as pause, stop, start from any position)?
2) How to Set Volume of System?
Best Regards,
Aniket
|
|
|
|
|
Maybe you can find what you are looking for at http://www.codeproject.com/audio/[^].
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
|
Hi,
How can I do it without DirectX in VC++ 6.0?
Best Regards,
Aniket
|
|
|
|
|
well see mci functions
whitesky
|
|
|
|
|
Hi,
Using mci, will be possible to play any Audio File (mp3,wav,mid,wma,..etc) & also to control the volume?
Plz, explain how to use mci function.
Best Regards,
Aniket
-- modified at 5:05 Monday 22nd May, 2006
|
|
|
|
|
i use for play mp3 wav and... maybe Here[^]
whitesky
|
|
|
|
|
when i execute my programe,
a dialogue box will appear with the title F32x_FileTransfer.
at the Open File row, when i click Browse, another dialogue box will appear with the title Open.
in this dialogue, i can select the file that i want to Open.
after selecting the file, click the Open button to get the path name.
the path name will be taken to the first dialogue box title F32x_FileTransfer..
at the first row, when i click on the Open File button, the file that i selected at dialogue box title Open will be opened..
that is the sequence that i want the program to do..
but somehow i couldnt get things right..
thanks for the attention to this message.
your help will be very much appreciated..
not clear about the question ask, you may contact me at confusegirl85@hotmail.com
-DarkangeL-
|
|
|
|
|
Your question is not clear so I will make some assumptions here.
chubbie wrote: at the Open File row, when i click Browse, another dialogue box will appear with the title Open.
in this dialogue, i can select the file that i want to Open.
I am assuming you are using the windows "Open File" dialog either through MFC's CFileDialog class or the GetOpenFileName() API.
chubbie wrote: after selecting the file, click the Open button to get the path name.
the path name will be taken to the first dialogue box title F32x_FileTransfer..
at the first row, when i click on the Open File button, the file that i selected at dialogue box title Open will be opened..
You can use CFileDialog 's GetPathName() member function to get the full path to the file selected. If you are using the GetOpenFileName() API the the file is in the lpstrFile member of the OPENFILENAME structure
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
I want to create a project with VC++ , when This program Runs my bmp image opens and with closing picture program closes too. (my bmp image created before and now is in first directory of project ) .
tnks
|
|
|
|
|
Do you need to create bmp or load bmp?
whitesky
|
|
|
|
|
I have created my picture in paint (or other graphic soft ware) then I want to load my picture in my project.
tnks
|
|
|
|
|
well if your picture is (jpeg/gif/bmp...) you can use CImage class if your picture is only bmp you can use LoadImage :
-------------
LoadImage(AfxGetInstanceHandle(),filename,
IMAGE_BITMAP, 0, 0, LR_DEFAULTSIZE|LR_CREATEDIBSECTION)
----------
CImage m_Image;
m_Image.Load(FileName);
whitesky
|
|
|
|