|
I saw that link, but that link is create sample dialog plug-in for only windows media player, it's not support remaining video players(i.e, real player ,quicktime etc.,)
so I need create common sample dialog plug-in for all video players(i.e. real player and windows media player,quicktime etc.,)
thanks for your reply
A.Venkata Ramana
|
|
|
|
|
Hi all,
I need to display a status(by displaying an image) in the first column of the list control.
I am attaching an image list with the list control.
It always shows the attached image in the first column. But i want only some of the rows should have the image display.
How can i achieve this.
Thanks in advance.
Selva
|
|
|
|
|
Hi
all
I want to convert my existing application in VC++6.0 to internationalize for multiple language, so is it better to open my application in VC++.Net for internationalization and use functionality of VC++.Net OR to do it in VC++6.0 for I18N.
Thanks
Atool
Atool
|
|
|
|
|
You can do this in VC6. To add multiple languages all you need to do as add them to the resource files and configure the application to load the correct one.
|
|
|
|
|
|
I use Microsoft Visual Studio 6.0 and i want to debug a program without ther threads being stopped. toxcct did answer me yesterday,but I can not find the setting in VS 6.
|
|
|
|
|
Run the program under the debugger using F5. The program will run until a thread hits a breakpoint or causes an exception.
|
|
|
|
|
but i don't want other threads of my prgoram to be stopped! I use microsoft visual studio 6.
|
|
|
|
|
I want to set a breakpoint and debug one thread without other threads being stopped?
|
|
|
|
|
AFAIK this is not possible. Threads usually send and share information between each other. If one thread has been stopped, it could very well cause the other thread to crash.
Perhaps you should consider using processes rather than threads.
|
|
|
|
|
I am using a DLL in my program which checks a hardware periodically. When i am debugging my application,DLL reset the state of the hardware because of the pause time. Then i want DLL threads to run normally as i am debugging other threads!
|
|
|
|
|
Like I suggested in my last post, use processes not threads.
Create a process which loads your dll and does all the hardware monitoring. Create another process which handles events. When something happens with the hardware, use "inter process communication" to notify your other process.
|
|
|
|
|
Hi,
I am working in text file application.In that application, to opening the file in read only mode like
fstream lpFile;
lpFile.open ( "sample.txt", ios::in );
then i read the file using this file pointer and some times , i move the pointer back to 1 position from current position using seekg ( -1, ios::cur ).
Text file size : 15 KB
Problem:
I couldn't move the file pointer to back using seekg function ( in some case only).I tried to clear the error flag if any before the seekg function. but no result.The problem still continue...
lpFile.clear ( );
lpFile.seekg ( -1, ios::cur );
Sample Text File:
[General]
To read the file information
like name,address,mobile number
[Address1]
Name=vichu
Address=India
Mobile=+919994445550
[Address2]
...
[Addressn]
Name=vishva
Address=chennai
mobile=100
****end of file-----
this is raw text file.
program code:
char chData;
lpFile.get ( chData );
while ( chData != '[' )
{
...
...
}
lpfile.clear ( );
lpFile.seekg ( -1, ios::cur );
Again start the above loop from '[' character.
The seekg function not work sometimes. How can i solve the probelm?
Is there any tool available to find the special character or unknown character in text file?
Thanks & Regards,
-- modified at 2:19 Thursday 15th February, 2007
Vichu
|
|
|
|
|
Just a thought: I think (but haven't verified it), that a file has to be opened in binary mode for seek:s (and tell) to work properly.
Maybe that's your problem?
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
Hi Kakan,
I am using text mode only.The text file contains upto 50 lines.During the process, the seekg function is not working at some times only.Most of the time, the file pointer seek to previous position successfully. I don't known the exact reason for this seek function behavior.
Is any other way to correct this problem?
Vichu
|
|
|
|
|
Yes, what I already said: use binary mode for the file handling. Or rather: try, I still haven't checked that I'm correct (but I'm pretty sure I'm right).
The only thing you will have to put up with, using binary mode, is that you will get CR/LF-sequences as they exists in the file. That is, no conversion to a single \n.
An easy way to overcome this "problem" is to simply ignore all CR characters read from the file.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
I will try the binary mode operation and then update you.
Thanks kakan.
Vichu
|
|
|
|
|
Hi kakan,
I fixed that seekg problem. Just I read the text file in binary mode rather than text mode.
Thank you for your response.
Regards,
Vichu
|
|
|
|
|
If your file is really formatted as you have shown, you might want to use GetPrivateProfileString and SetPrivateProfileString instead. They are intended to handle files with the format you show
[SECTION]
Key=Value
Key2=Value2
Hope that helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
Hi krmed,
You are exactly correct. But in my application, I am using fstream class and its member function to read/write the text file. The seekg function works well in binary mode.
Thank you for your information.
Vichu
|
|
|
|
|
Hi all.
I have some problem, I need class thet manage files as CFile in MFC, but in console.
can anyone help me.
Thanks for any help.
|
|
|
|
|
MFC can be used in Console application also. So use MFC, and then u can use its CFile also.
Come online at:-
jubinc@skype
|
|
|
|
|
david bagaturia wrote: I have some problem, I need class thet manage files as CFile in MFC, but in console.
Look up AfxWinInit in MSDN. There is a sample along with it.
Also when you create a console project you have an option where you can specify whether you want MFC support for your application or not.
|
|
|
|
|
You can use CFile in a console app. The AppWizard for console apps has a checkbox for adding MFC support.
|
|
|
|
|
Tanks all.
It will useful for me, it solve a proble in my other project sow it help me lot, but in this time I am writing service and I need console, I can't use MFC.
|
|
|
|