|
i am sorry.
since i don't know how to get started on it.
|
|
|
|
|
Well, you can have a look at the Windows Media Player ActiveX control, or you can use the IWMPCore interface that I mentioned before. I haven't done it myself so I can't really help much more than that.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I was working on something when the computer crushed and msdev.exe closed. After that i opened msdev.exe but there was no menu items, toolbar no nothing but only the editing window displayed i suspected that the toolbar and menu setting file (probably the .ini) file become corrupted.
i have heard some where that when i execute the program from the start->run and run the program by writing "msdev.exe -something" and runningthe program i can fix all this but i searched the windows help and msdn for such things but couldn't find any
i have a friend who has the same problem with microsoft word but he gets around using the keyboard shortcuts.
if you know this by any way pls help me i am stuck and got a work to do.
|
|
|
|
|
Have you rebooted the machine?
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Ryan Binns wrote:
Have you rebooted the machine?
Very Nice reply
<marquee> STUCK STUCK STUCK STUCK
Stuck to Programming through an unbreakable bond
My Articles | My Blog
|
|
|
|
|
I want to send a partition of video file and some data files(text and images) from one terminal to another terminal. After sending, the video should be playable.
Therefore, I have to write a program that perform streaming.
1.-RTSP / RTP, which is better?
2.-Shall i choose to use WMV, ASF or AVI file?
3.-Any other methods are welcome.
Please help me.
|
|
|
|
|
Actually I have been programming for quit som years, but everytime I have to validate a control when I leave it I do some trial and error exploring.
I like to know if somebody can tell me, whats the right strategi for doing this.
Jørgen Granborg
Jørgen Granbborg
|
|
|
|
|
How about the WM_KILLFOCUS message?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Right so long so good, but how do I know where the focus vil go. If the user close the dialog or exit or switch to some other program, then I dont want to validate.
|
|
|
|
|
If the user dismisses the dialog, or switches to some other window, you don't need to validate any of the controls. The OK button should not be enabled until each control contains valid data.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
JGranborg wrote:
Validating control content when loosing focus
Be careful If two fields depend on each other, you can get into an infinite loop where the user can't leave the field they're editing. I've experienced this before and it's very frustrating
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
just a simple q
in the printf() function, if we use %E or %e, the output is in scientific notaion
e.g. 2.11E+002
now i wanna ask how can i change it into the form 2.11E2, without + sign and leading zero.
thx
|
|
|
|
|
jooo wrote:
...how can i change it into the form 2.11E2, without + sign and leading zero.
You would have to parse it yourself.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I've been trying to research a solution to this issue for the past week but havent found anything substantial. If anybody has a suggestion/solution I would greatly appreciate it.
Scenario:
I have a large number of popup dialog box pre-created and used in an MDI application. Now the objective is to move to tabular and splitter views. I want to somehow convert these dialogs into CFormView objects so that they can be displayed in a view of the splitter pane. What I want to do is basically, get all the dialogs, process them through a particular class that will convert them into CFormView objects and then display them in a Splitter Pane.
If anybody can help me I would really appreciate it.
A
|
|
|
|
|
One solution is MoveWindow().
Kuphryn
|
|
|
|
|
The problem is not repositioning the Windows, but since an object of CDialog cannot be displayed in View, it gives an error when we load a dialog. I wanted to know a way to convert the CDialog to CFormView.
A
|
|
|
|
|
Hi everybody, I'm trying to compile a a C++ application with MS Visual Studio .NET 2003 Architect.
First I compiled a library (.lib), then I used this lib to develop an application.
During the linking operation I obtain this error message:
libcpmtd.lib(xlock.obj) : error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) already defined in geardebug.lib(text.obj)
(where text.obj is part of the lib I developed)
Can anybody help me to understand why this happens?
Thank you very much
|
|
|
|
|
there's a setting somewhere in your project settings where you can choose to ignore certain libraries; try that. Sorry, I'm not exactly sure where it is, but I've used it before, so I'm sure you can find it.
[insert witty comment here]
bdiamond
|
|
|
|
|
hi,
i 've got a toolbar with a Combobox and 4 Buttons (pushbuttons), where i can (de)activate the combobox, whenever i want. I think it's easy possible, because in the CToolBar- derived class i 've got a handling member for this box, but even no member for one button.
So i added a CButton- member to the CToolBar- derived class to fit this problem and to (de)activate one button at same time, the combobox is (de)activated.
But it does'n t work :-/
Can anybody help me ?
thanks,
Aqua
|
|
|
|
|
I'm running Visual C++ .Net and have run into a problem when trying to open a file directly off of a CD-ROM or DVD drive. The files in question have no "last accessed time" which causes the program to return an error. For my purpose, I don't need to know if the file has ever been accessed, but I cannot seem to move past it without it returning an error. I have thought about temporarily moving the files to a harddrive first, however, some of these files can be anywhere from 400 megs to 2 gigs and things are time-critical.
right now, it blows out in line 130 of "filest.cpp" with the following line:
rStatus.m_atime = CTime(ftAccess);
anybody know how to get around this? Thanks for any and all help!
TerpZebra
|
|
|
|
|
This is a known issue. See these two links for more:
http://groups.google.com/groups?q=ctime+cd+accessed&hl=en&lr=&group=microsoft.public.vc.mfc.*&selm=Jsu%241IcNDHA.1616%40cpmsftngxa06.phx.gbl&rnum=1
http://groups.google.com/groups?hl=en&lr=&frame=right&th=1648a425c6453813&seekm=086101c3ba5d%24a0518dd0%24a501280a%40phx.gbl#link1
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi Guys,
I have a Dialog Resource in my resourceEditor & I have created a class out of it say "C_TestDialog",which is derived from CDialog.
I want to place a Toolbar control in this dialog. So I have added a "ToolBarcontrol" also in my resourceEditor.
Now If I take my ClassWizard,& select the "C_TestDialog" under class name.In the "ObjectIDs" section I see my classname & in the Messages column,I see all of the events,messages etc of this class.
Now What I need now is,How can I include my "toolbarcontrol" also inside the ObjectIDs section,under the className "C_TestDialog",so that I can see all the messages related to the toolbar control.
RightNow,If I select my toolBarcontrol(IDR_SelectToolBar) inside the ObjectIDs section,I see only 2 messages - "COMMAND" & "UPDATE_COMMAND_UI".
Iam creating my toolbar as follows:
CRect toolbarSize(20,20,300,50);
//m_toolBarCtrl is the member varibale of type C_ToolBarCtrl--
which is a member of C_TestDialog class.
m_toolBarCtrl.Create(WS_CHILD|TBSTYLE_FLAT,toolbarSize,this,IDR_SelectToolBar);
m_toolBarCtrl.AddBitmap(1,IDB_BITMAP1);
TBBUTTON tb[2];
// Index of new button image.
tb[0].iBitmap = 0;
// Setting button state
tb[0].fsState = TBSTATE_ENABLED;
// Setting button style
tb[0].fsStyle = TBSTYLE_BUTTON;
tb[0].dwData = 0;
tb[0].iString = NULL;
m_toolBarCtrl.AddButtons(1,tb);
m_toolBarCtrl.ShowWindow(true);
Note:
Don't want to create a class derived from CToolBarCtrl.Want to access the Messages of the "toolbar" from my C_TestDialogClass.(For eg.- when the user clicks on the toolbar at runtime,I want this event to be trapped inside my C_TestDialog class)
Any Help is appreciated.
Thanks...
|
|
|
|
|
with the help of a c++ 6 control i get hotkey information in the form of a DWORD (it may be f.e. ctrl+s)
DWORD CHotKeyCtrl.GetHotKey();
how to extract information so that this DWORD is comparable to a WPARAM
in the message queue, if a key is pressed i get a WPARAM with information in it about the key being pressed
I just want to know how to compare the dword to the wparam
(HIWORD? LOWORD? <- i am a prog-n00b plz easy language)
|
|
|
|
|
To extract information from the return value of CHotKeyCtrl.GetHotKey() use HIWORD and LOWORD macros.
wVirtualKeyCode=LOWORD(GetHotKey());<br />
wModifiers=HIWORD(GetHotKey());
To create WPARAM use MAKEWPARAM macro: MAKEWPARAM(wVirtualKeyCode,wModifiers)
To compare DWORD to WPARAM use: if(wParam==(WPARAM)dwValue)
Regards,
Andrzej Markowski
|
|
|
|
|
Can anyone tell me how I can change the value of $(TargetPath)?
"Live long and prosper." - Spock
|
|
|
|