|
...ok I fixed the classid thing like this:
<br />
CLSID idMediaPlayer;<br />
HRESULT hr = ::CLSIDFromProgID (L"WMPlayer.OCX.1", &idMediaPlayer);<br />
Well I was using windows media player 8 but I found that I jammed up the class-id... then I installed Windows Media Player 9...
The error code is: "REGDB_E_CLASSNOTREG" ...
I am not sure if I have to use "msdxm.ocx" for windows media player 9...
Well... I am a beginner ...
|
|
|
|
|
I have to use wmp.dll and WMPlayer.OCX.7 is just working fine thanks a lot!
Well... I am a beginner ...
|
|
|
|
|
Hy everyone!
My colleage wants to include a "foreign" dll in his C++ program (written in VC++ 6.0). He said he has added the path to the dll in the settings of VC++ 6.0.
In command he is able to run the executable when the dll is located in the same folder. But in VC++ it does not work throwing an error message telling the dll is not available.
What is he doing wrong because at the moment I cannot find out, because I did never work with version VC++ 6.0 (I did only work with Visual Studio 2003 and that's a little different).
So if someone of you could tell me what he has to do to make VC++ find the dll please let me know and I will forward the infos to him.
Thanks!
Stephan.
|
|
|
|
|
He can add his path to the Global PATH enviroment variable, or he can drop his dll in the project directory, cos this is the default directory when a program is launched from the IDE
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Hi,
I am trying to create virtual serial port.
Can anybody please give me tutorial or code link on this subject.
Thank you
rony
|
|
|
|
|
Can please anyone teach me how to make a rich text control linked to a tree ctrl with 4 or more sub-items(in the tree control),The text in the rich text box must change when the user clicks on the different sub-items in the treel control, please give me detailed code help.Please.... Why is everyone so selfish to teach me such a small thing?
|
|
|
|
|
Hi everyone
As the message is quoting, I am looking forward to scale some graphics using XFORM in Windows 98 Second Edition.
Also, it's important to mention that although some sites state that Win98 doesn't support scaling, the Platform SDK's says as follows regarding ExtCreateRegion:
"Windows 95/98/Me: World transforms that involve either shearing or rotations are not supported. ExtCreateRegion fails if the transformation matrix is anything other than a scaling or translation of the region."
Since scaling is what I'm trying to do, I should have no problem doing so as far as Microsoft's is concerned. I did found some MFC stuff that was handling Win98's scaling through XFORM, but I have to stick with Win32.
So a little recap on what I need: scaling graphics from a window using XFORM, needs to works in Win98 and STRICTLY in C/Win32 or C++/Win32.
Regards,
Franz
|
|
|
|
|
I'm using visual C++.net 2002. I created a simple MDI through MFC project. What I'm trying to do is Open a file view it and then click on a control to send the file to a specific location already defined. The problem is where does The Opened file name get stored.
The code looks something like this.
<br />
BEGIN_MESSAGE_MAP(CARMFirstBuildApp, CWinApp)<br />
ON_COMMAND(ID_APP_ABOUT, OnAppAbout)<br />
ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen)<br />
<br />
ON_COMMAND(ID_FILE_PRINT_SETUP, CWinApp::OnFilePrintSetup)<br />
END_MESSAGE_MAP()<br />
ID_FILE_OPEN is the menu option to open a file. I understand when I click on Open in the menu it brings up a dialog box to select a file then click okay to open that file. How can I find the file name that was selected. I've tried everything I could think of. Being new to Visual C++.net is not helping much.
Any Help would be great thanks.
|
|
|
|
|
The name of the file is stored in the CDocument -derived object.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi
I am using the following code to get the desktop contents:
if (SUCCEEDED(SHGetDesktopFolder(&lpDesktopFolder)))
{
//strpath: has the desktop folder path.
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, (LPCTSTR)((strPath != "\\MyComputer")?strPath:""), -1,
olePath, MAX_PATH);
hr = lpDesktopFolder->ParseDisplayName(NULL,
NULL,
olePath,
&chEaten,
&pidl,
&dwAttributes);
if(hr != S_OK)
{
lpDesktopFolder->Release();
return;
}
hr = lpDesktopFolder->BindToObject(pidl, 0, IID_IShellFolder, (LPVOID *)&lpShellFolder);
If I use this code I can't find *My Computer* and icons. But if I use
SHGetDesktopFolder(&lpShellFolder)
I can see the *My computer* in the list.
Could any one please tell me where I am going wrong?
Regards
Neha
|
|
|
|
|
It would help if you gave us a hint as to what types lpDesktopFolder and lpShellFolder are.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Here is the info:
LPSHELLFOLDER lpShellFolder = 0;
LPSHELLFOLDER lpDesktopFolder = 0;
|
|
|
|
|
Neha wrote:
Could any one please tell me where I am going wrong?
If you use SHGetDesktopFolder(&lpShellFolder) and are getting the desired results, what's the problem?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I need to detect if a machine is a member of a workgroup or a domain (could be cases of Windows NT workstations running without a domain controller). Is there an API call to do this?
(My eyes have gone bleary looking!)
Regards
Kevin.
|
|
|
|
|
And almost immediately after my post I find....
http://support.microsoft.com/default.aspx?scid=kb;en-us;179891
|
|
|
|
|
Hi,
I have and SDI application that works properly on win2k & xp but core dumps when running on win98.
The application crashes with error message "This program has performed an illegal operation and will be shut down."
I think that it's because of over using the resourses. Could you let me know how I can limit using the resoruces?
Any idea would be appreciated.
Regards
|
|
|
|
|
I have to read a file that has 2 integers in each line. I'm using Visual c++ .net and I read the file like this:
String *l = s->ReadLine();
How can I split the String to have 2 different Strings, each one with one integer?? I know there is a function for String that is called Split but I don´t know how to use it.
Thanks for your help
|
|
|
|
|
What is the value of s after the call to ReadLine() ?
dana_krycek21 wrote:
I know there is a function for String that is called Split but I don´t know how to use it.
There are examples here, here, and here.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
HI,
when i do on minimizing ShowWindow(SW_HIDE)
I palce the appcaition in system tray .
but the application is not shown in Task Manager-> process and application at that time.
how can i detect it there or it should be in task managers -> proces and applications
thanx
Regards.
|
|
|
|
|
zahid_ash wrote:
when i do on minimizing ShowWindow(SW_HIDE)...the application is not shown in Task Manager-> process and application at that time.
While hiding a window will remove it from the Applications tab, it will not remove it from the Processes tab.
What exactly is it that you are wanting to do?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I am developing an MDI application in VC++. I need to create an MDI child menu attached to the Child Window without replacing the mainframe's menu. To be more specific my MDI Child window is using CFormView. I should be able to access both the child window menu and the main frame menu both simultaneously at a time. Can any one please suggest a solution? Please email to me if you have any useful relevant information on the above.
madhavi
|
|
|
|
|
I'm writing a dialog by MFC.
I need to send data out through RS-232, using Modbus protocol.
I know there are many classed written for serial communication, but not for Modbus.
Does anyone have already fought with modbus and survied?
Please give me sone advice.
Thanks.
chauteen
|
|
|
|
|
Hi!
I have bitmap 256x256 pixels. The bitmap has white background and there is a black line drawn on that background. Bitmap is a matrix so is there way to extract the coordinates (x,y) of the black line?
Regards.
|
|
|
|
|
Hi all,
Iam a newbie to com. I have to work in c++ and vc.Iam working on interfaces like IhtmlcontrolRange, IHtmlTxtRange,IHTMLDataTransfer etc.
I don't how to implement some these interfaces. It would be of great help if i could get some help on how to implement these in c++.
Msdn site gives only definitions not examples.
Kindly specify some websites which could provide some examples on to implement these.
Thanx in Advance.
Raj
|
|
|
|
|
Hi All,
I am developing an application where in the system has many users and each user is having his own outlook.pst file. My requirement is that when the user of application runs the application it display All users, when particular user is selected it display the corresponding outlook.pst file of that user. I would like to read that particular Outlook.pst address book data.
My present application could able to read from the default user outlook.pst file. I used MAPI32.dll in my application. Can any one please help me in opening any user's outlook pst file and reading its address book.
Thankyou,
sirisha.
|
|
|
|