|
I am trying to display full path of specific folder in my computer
I've developed this application on japanese os. When i try to run
it on English OS japanese language install, I can't input full path
in CDataGrid properly. It always displays C:\ instead of the specific
path. does any with same experience and figured this proble?
Thanks in advance
Shin
|
|
|
|
|
Hi, I was asked in an interview how to make a class in such a way that it can not be derived?
similar to final class in java.
regards,
Prakash.
|
|
|
|
|
There was a recent article on this:
Non-inheritable class[^]
Roger Allen - Sonork 100.10016
If your dead and reading this, then you have no life!
|
|
|
|
|
|
I have some video files in different formats - avi, divx, wmv, asf, mpeg, ...
I can open and play them using DirectShow.
But I have 2 problems :
1. I don't know how to detect the video format.
I know DirectShow will do this for me, but I need to notify user,
wheter is it divx,xvid,mpeg 4, or some other format.
Detecting by file extension is not reliable , and not possible, since more formats are using .avi extension.
2. How to find out, whether video file contains audio ?
Like Windows media player grays out volume control when movie does
not contain the sound.
Thanks !
rrrado
|
|
|
|
|
Have a look at http://www.jmcgowan.com/avi.html[^], a very informative site he has a freeware prog called vidtrace, a cosole app, that decodes an AVI file for you http://www.jmcgowan.com/vidtrace.exe[^]
Runnning this may help you decode/understand the RIFF data
"The greatest mistake you can make in life is to be continually fearing you will make one." - Elbert Hubbard
|
|
|
|
|
|
Hello Sir:
Now I have a trouble, I can get my speaker configuration in windows. I want to know my speaker is 4.1 surround speakers, 5.1 surround speakers or 7.1 surround speakers. I don't know how many surround speakers be supported with my speaker. I heard that it maybe can be getted with the DirectSound, but I don't how to do. Someone can help me? I need your help, I am hope get your reply. Thanks in advance.
|
|
|
|
|
Hi
I finished a project which runs in debug mode but when i want to make a release i get the following error:
StdAfx.obj : error LNK2019: unresolved external symbol __imp__wcscpy referenced in function "unsigned short * __stdcall ATL::CharLowerWFake(unsigned short *)" (?CharLowerWFake@ATL@@YGPAGPAG@Z)
mfcs70.lib(stdafx.obj) : error LNK2001: unresolved external symbol __imp__wcscpy
This was a MFC project build and compiled/linked perfectly on a VC6 platform, seems like VC7 can't convert it correctly.
Anyone any ideas?
Best regards.
Jens
|
|
|
|
|
Microsoft improved on Visual C++ .NET/2003. Post the code. Try casting.
Kuphryn
|
|
|
|
|
Hi All
does ne1 know how to add an HTML help to a sdi appplication genertated in Visual Studio 2003
normally this would be created at the start of the project, but i didnt think that i would require
one, however i now need to add one to my project
does anyone know how to do this
thanks
simon
|
|
|
|
|
Create 2 dummy SDI projects. One with and one without HTML help enabled. You then need to look for the differences between the two any apply these changes to your existing project.
Thats probably the best route to follow.
Roger Allen - Sonork 100.10016
If your dead and reading this, then you have no life!
|
|
|
|
|
Hi!
I am trying to create a database application using the Win32 API and by using ado.
pSet is my recordset pointer.
If I do this:
<br />
pSet->MoveNext();<br />
it works. And if I do this:
<br />
pSet->MoveFirst();<br />
It also works. But when I do:
<br />
MovePrevious();<br />
or
<br />
MoveLast();<br />
It doesnt work and it gives an "Abnormal termination" error!??!
Can someone help me?
Thank you very much for your future answers!
Well... I am a beginner ...
|
|
|
|
|
I am not an expert in this but if i am not wrong there are two types of recordset dynaset and something else. The feature you are looking for is availabe in one of them and not both.Just try to get more information about it.
The World is getting smaller and so are the people.
|
|
|
|
|
MAYBE your database service provider/driver does not support theese operations (backward seeking).
Every database engine supports another set of functions, I'm not sure whether all databases supports this type of seeking
rrrado
|
|
|
|
|
Hi
How i cant to output text in win application by horizontal, and whether exist way for this???
Thanks
|
|
|
|
|
Your question is not very clear.
Do you mean:
1. Difference between portrait and ladscape printing?
+----+ or +------+ for page layout
| | | |
| | | |
| | +------+
| |
+----+
2. Text orieintation (horizontal and vertical):
Text
e
x
t
3. Or something else?
Roger Allen - Sonork 100.10016
<small>If your dead and reading this, then you have no life!</small>
|
|
|
|
|
Ref the Disp() funs in the msdn... This fns should call thro an view class..
|
|
|
|
|
Hello,
Does anybody know if it is programmaticaly possible to change the default codepage of the system. Or even better if the default codepage an application uses can be altered. So that during the run of the program conversions can happen through usage of codepage x, where x can take several values during the lifetime of the program...
I need that to make sure that assignment of multibyte characters to CString objects are converted correctly and swprintf statements also convert parameters that are multibyte strings, to the correct equivalent in unicode..
If anybody knows a way, please let me know....
Greetings,
Davy..
|
|
|
|
|
Use MultiByteToWideChar directly. You shouldn't be changing the user's locale settings without their permission. As I recall, changing the system default locale requires a reboot anyway.
|
|
|
|
|
Thanks for the reply
However, in my situation it is so that the program is allready written, and suddenly 'they' came up with the tremendous idea that it should have that ability . So, I do not want to find every instance where I convert multibyte strings to unicode or vice versa using CString assignments, CString constructors, CString Format calls, sprintf wsprintf mbstowcs wcstombs and what other conversion calls there might exist (program written by multiple programmers so everybody has his/her favorite conversion-method).
About changing the locale of the user without his\her permission is luckily not an issue here, because this app is supposed to run within the company on only some specific PC`s which will only run this app, so I guess the app has the right to do it.
Reboot is also not a problem because if that^s all that^s needed for the data to be displayed correct it is a small price, the codepage will not need to be changed every 5 minutes or so, more about every 5 days...
Anyway, a process-wide default-codepage would offcourse be the best solution, but I don^t think that^s how it works.
So if anybody knows a way to achieve my goal without having to search for every place where a char string was converted to wchar string or other way around. Please let me know...
Greetings,
Davy
|
|
|
|
|
Aha!
SetThreadLocale looks like it does what you want.
|
|
|
|
|
hi
i have developed a server socket program which keeps on sending message. i have created a seperate thread using afxbeginthread(SendMsg,this) (this points to the CSocket derived class). im using carchive. the problem is when the thread tries to send messaage i get a debug assertion error.
i dont know what is the cause of the problem.
UINT SendMS(LPVOID lp)
{
CServerSock* pSock=(CServerSock*)lp;
do
{
pSock->SendStatus();// here i get error
Sleep(1000);
}while(pSock->m_pDlg->m_sta);
return 1;
}
void CServerSock::SendStatus()
{
m_pDlg->Serialize(*m_pArOut);
m_pArOut->Flush();
}
when i press retry i goes to base class
void CAsyncSocket::AssertValid() const
{
CObject::AssertValid();
ASSERT(m_hSocket == INVALID_SOCKET || CAsyncSocket::FromHandle(m_hSocket) != NULL);
}
outside the thread im able to send the message. i would be happy if u can help me with this problem
regards
aswin
|
|
|
|
|
I am just trying of the problem if i got i convey to u.
|
|
|
|
|
Dear u can not use CSocket in the worker thread .If u want to use CSockets with threads then use User interface threads.
But there are so many problems when u even use it in User Inteface threads.
What u should do Accept the sockets in the context of one thread(may be primary thread) , then Detach the socket handle from the CSocket Object Then start the Thread in suspneded mode ,Save it to Class level object of your CWinThread derived class.
Then resume thread .And attatch the Socket handle to Class level object of CWinThread derived class. may be in the Ininstance .
Now your socket object will be valid in the context of new thread.
Note:
You should also called AfxSocketInit Initinstance of your CWiThred Derived class.
if u dont follow these steps , may be your program work fine in debug mode , but it will get crashed in release mode.
No Worries!
|
|
|
|