|
ok
thanx for it but i forget to tell u one thing more that i have to Add string
also with image in the next column.these record will be in row.
thanx
|
|
|
|
|
See GetImageList in CListCtrl Members
whitesky
|
|
|
|
|
ok
thanx for it but i forget to tell u one thing more that i have to Add string
also with image in the next column.these record will be in row.
thanx
|
|
|
|
|
See SetItem and SetImageList
whitesky
|
|
|
|
|
How can i find whether a microphone is connected or not in my system?
Thanks,
Poornima
|
|
|
|
|
im not sure see Here[^] maybe it is some helpful to you
whitesky
|
|
|
|
|
Hello everyone,
I am wondering what is the easiest and safest way to find the value of a macro? For example, if I,
#define FOO "value1"
The value of FOO I can get is "value1" and if then I,
#undef FOO
#define FOO "value2",
then the value of FOO I can get is "value2".
thanks in advance,
George
|
|
|
|
|
Hi,
I didnt get the question,basically the macros are replaced by the preprocessor,so there is nothing like finding the value at the runtime.
Hope this helps.
Thanks
|
|
|
|
|
Thank you Code_Zombie!
Do you mean we can only get the value during compile time other than during runtime?
My question is, during compile time, how can we (developer, other than compiler itself) know the exact value of a specific macro -- which compiler is using -- to avoid mis-defining the value of a macro?
(I know compiler knows the value, but during normal compile stage, it is not exposed to the end user which value is defined to a specific macro, so there may be mis-defined macro value.)
regards,
George
|
|
|
|
|
I'm using CSingleLock , When one thread lock an object, and other thread wants to lock that object at that time , The second thread will wait for unlocking by the 1st thread or it just skip that locking code.
If it need to wait, It will automatically wait or have to give code to wait ?
--------------------------------------------------------------------------
CMutex g_m1;
CSingleLock lock1(&g_m1)
- - - - - - - -- - - - - - - - - - - - - - - - - - - -
if (lock1.Lock()) {
m_LockStatus = "Got Lock";
UpdateData(FALSE);
} else {
m_LockStatus = "Failed";
UpdateData(FALSE);
}
}
-----------------------------------------------------------------------------
Thanks to all.
|
|
|
|
|
you may try :-
WaitForSingleObject
Regards,
FarPointer
Blog:FARPOINTER
|
|
|
|
|
Hi all,
I am working with vc++(6).I have an application,in which i need to display list of printer names in a Listbox.How can i get list of printers
thanks
vinod
|
|
|
|
|
See EnumPrinters
whitesky
|
|
|
|
|
Thank you,
Now i am getting list of printer names using EnumPrinters
|
|
|
|
|
Hi,
I am trying to assign a drive letter for the newly created raw volume. I
used the code example mentioned for DefineDosDevice function. This program
takes drive letter and devicename as parameters. I could successfully run the
program on 2k3 servers. But when i try the same code on 2k server, it runs
for first time. then again from disk management console, i delete the drive
letter and try to run the same program but this time it fails with error 87.
I have passed the drive letter for the program which is not existing on the
system but still it throws an error. Can somebody please help me in this
regard or any pointers to such related problems.
I took the program from the link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/editing_drive_letter_assignments.asp
The error i got is as below
editdrive.exe v:\ \device\harddisk2\partition1
(editdrive.exe is my program )
error 87: could not add v:\
I have compiled my program on windows XP.
On 2k professional i saw that it assigns the drive letter but not the one i
requested. even in this case the error is still popped out.
Thanks with best Regards,
Pavan
|
|
|
|
|
hello
i want to know that as animation control is used to play clip of .avi type.
now i use folloeing code in a button to play a clip
m_ani.Open(_T("Findfile.avi"));
m_ani.Play(0,-1,-1);
but clip is not playing .now i want to know that (_T("Findfile.avi") how this will pick clip as .avi clip is stored at c:\MSDN\samples\vid98\content\mmedia now plz tell me.
thanks
Ashish Dogra
MCA
Noida
|
|
|
|
|
|
m_ani is member variable of animation control of type CAnimateCtrl
Ashish Dogra
MCA
Noida
|
|
|
|
|
Did you saw example CAnimateCtrl in msdn Here[^] and Here[^]
whitesky
|
|
|
|
|
this code does not help me as
i want to know only that how avi file is loaded see my previous post
thanks
Ashish Dogra
MCA
Noida
|
|
|
|
|
What your problem msdn example is good
use open with filename for open an avi file and play(0 for begin frame,-1==last frame,-1==replay) for play
whitesky
|
|
|
|
|
sir yhaknks for your reply
but i try this one and no clip is shown on anmated control
Ashish Dogra
MCA
Noida
|
|
|
|
|
Are you sure your file is avi
whitesky
|
|
|
|
|
yes sir as i search them as .avi and
then i use one of the name in my code
Ashish Dogra
MCA
Noida
|
|
|
|
|
I dont know your code but i tested this code for you and it worked test this code
CAnimateCtrl m_Ctrl;
<code>
m_Ctrl.Create(WS_CHILD|WS_VISIBLE,CRect(0,0,100,100),this,1);
m_Ctrl.Open("C:\\WINDOWS\\clock.avi");
m_Ctrl.Play(0,-1,-1);
</code>
whitesky
|
|
|
|