|
I want to control Windows Media Player (Play, Stop, Add files, Handle playlists, etc) programmatically using Visual C++. Any one help me? Thanks in advance.
|
|
|
|
|
|
I have downloaded the Windows Media Player SDK but i still couldn't control it. I don't see any example about controlling WMP. It just has some examples and articles about embedding a WMP ActiveX. Could you tell me how to automate COM of WMP (like automate Office)?
|
|
|
|
|
hi all, i hope im posting under the right forum here. sorry if i an't.
im trying to create a EDIT (text box) control using createwindow but am having a few probs.
if i create the edit control and display it on the parent window all is ok. if i display the edit control with a child window the the parent all is ok as long as i don't give the child window the property WS_CAPTION.
if WS_CAPTION is not part of the child windows style all is ok, but if its added the edit control no longer works. Its displayed but you are unable to type in it.
any one any ideas plz ?
any help would be grate
thx
Scott
|
|
|
|
|
id try using Create(WS_CHILD|....)
Engineering is the effort !
|
|
|
|
|
from MSDN docs
CEdit::Create
Apply the following window styles to an edit control.
WS_CHILD Always
WS_VISIBLE Usually
WS_DISABLED Rarely
WS_GROUP To group controls
WS_TABSTOP To include edit control in the tabbing order
Engineering is the effort !
|
|
|
|
|
Hi , i dont know if this is the right forum , but I have been coding in Visual C++. The work I do is extracting info from Embedded devices and depict it graphically . .NET seems to be the buzzword. Thanks to my ignorance , I really am not aware of the advantages of using it in my type of job .Is learning .NET really going to benefit me ? If yes is Visual C++.NET the path to follow or should I learn C# ?
I m sure someone can enlighten me on this
|
|
|
|
|
Overall, I always think that learning new things is worth the time and effort. It might not help you in the job that you have today, but it might help to get you a new job six months from now.
I used Visual C++.Net for a project in my last job. Overall, Managed C++ is not too bad, but for learning I would say to go with C# (or even VB.Net). The reason that I say that is that there are a few strange things here and there with Managed C++ that you will not see with using C#. I also was surprised with how many VB.Net jobs are available, that is why I included VB.Net as an alternative.
Ultimately, you should pick an language to learn because you have a desire to use the language or plan to in the future. I have done Java apps in the past, but am not really excited about learning Java as well as I know C++ or even C#. So time learning Java would probably be a waste for me.
And actually I was the person at my last job to champion the use of .Net for the project and it was a great success. We picked Managed C++ because of some of the other team members didn't know C# or .Net and we were trying to get them up to speed quickly. It worked really well for everyone until they cancelled the project.
And even for displaying the info that you get from the Embedded devices graphically, the gdiplus functionality in .Net has some very nice features that you might want to look at.
Steve Maier, MCSD MCAD
|
|
|
|
|
I want to make this thing: I got a big file with vector graphics, and i got my programm, that reads this file and draw everything. But now i need to create a web based application. What way to use??? Is it possible to read this file just once, and when user queries my page it just reads already, downloaded in memory, file. I think to use a COM server and ISAPI filter. So that page can download data from COM server through the ISAPI filter. Are there any easy way???
|
|
|
|
|
You must to build a COM DLL.
After that you can use it using vbscript.
regards
Carlos Antollini
Do you know piFive[^] ?
|
|
|
|
|
I got an existing project, and i'd like to make from it a COM Server( add COM functionality), because i want another programm to get data from my first programm or to call some methods, how to make it??? I saw this ability in Borland C++ Builder, is it possible in Visual C++ with MFC???.
|
|
|
|
|
Dive into ATL . Its pretty seamless to do it using ATL within the Visual C++ IDE
Engineering is the effort !
|
|
|
|
|
Hi Gurus,
I'd like to know how I can do large images (32x32) in a toolbar?
Where can I get some sample code to do this?
Thanks.
Best regards.
There is no spoon.
|
|
|
|
|
Create a toolbar and change the image size in the resource editor. You need to change it for the main toolbar resource not one of the buttons.
If you vote me down, my score will only get lower
|
|
|
|
|
ok thanks
There is no spoon.
|
|
|
|
|
Hi!
I need to make a relative path, using 2 absolutes paths.
Assume
path1: C:\MyProjects\Tool\Tool.exe
path2: C:\MyProjects\Docs\MyDoc.txt
The output should be ..\Docs\MyDoc.txt
How do I create the relative path??
Thanks and best regards,
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
|
You can use the _fullpath function in C/C++.
|
|
|
|
|
I have to write a windows service in VC++ 6 and need to make a web-based front end for viewing the current state and configuring the running service. What would be the best way to build a web-based front for a service? I am thinking of using sockets at the server and then a C# based front end because it is easy to do socket communication with it. Any suggestions?
|
|
|
|
|
Hi,
As an experiment I was trying the following code:
<br />
CString MyNumber = "23.5";<br />
double mynum = atof(MyNumber);<br />
if(mynum >= 3.4E-38 && mynum <= 3.4E+38)<br />
printf("Data Type = Float");<br />
else<br />
printf("Data Type = Double");<br />
<br />
MyNumber = "123456789.12345";<br />
mynum = atof(MyNumber);<br />
if(mynum >= 3.4E-38 && mynum <= 3.4E+38)<br />
printf("Data Type = Float");<br />
else<br />
printf("Data Type = Double");
However, this always displays the text "Data Type = Float", so I thought that perhaps the atof() function was loosing accuracy. Does anybody know why the floating-point range test doesn't work?
Best Regards,
Lea Hayes
|
|
|
|
|
123456789.12345 is less then 3.4E+38.
Try this:
MyNumber = "1234567890123456789012345678901234567890.12345";
mynum = atof(MyNumber);
if(mynum >= 3.4E-38 && mynum <= 3.4E+38)
printf("Data Type = Float");
else
printf("Data Type = Double");
|
|
|
|
|
Hi,
I don't know how, but that has solved my problem!
Thanks for your help,
Lea Hayes
|
|
|
|
|
I’d like to Decode a UTF-8 string to a regular CString. I’m using MFC and don’t really know where to start.
I'm reading a UTF-8 coded file using CStdioFile and CFile.
Has the _T(“…”) something to do with it?
_____________________________
...and justice for all
APe
|
|
|
|
|
Try MultiByteToWideChar(..) .
Robert-Antonio
"What do you mean, I can't initialize things in assert()?"
|
|
|
|
|
Some how i am not to view the class view tab in my workspace. It happened when i was compiling the proj and it crashed. when i reopened it i wasnt able to view classview tab. everytime i open the workspace i get following warning:
cannot access classview information file.ClassView information will not be accessible.
What Is the solution to this problem???
|
|
|
|