|
Thanks. But if I get the name of another system, is there any way to get the names of processes running in that system.
|
|
|
|
|
Sweet...I asked about this the other day, but nobody answered me...
Thanx man!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I have a dialog box featuring a CAnimateCtrl which is fed a resource-located simple AVI stream. In OnInitDialog I just call m_animate.Open(IDR_AVI); and m_animate.Play(0,(UINT)-1,(UINT)-1); . Everything is pretty straightforward and worked just fine till I addded an RT_MANIFEST to let the program use the newest version of Common Controls in XP (you know, to get the new funky look). Now, my AVI displays as if in transparent mode: the AVI background, which is black, is replaced with the windows background color. Nevertheless, the CAnimateCtrl has not been set the transparent style!
In older OSs the AVI shows fine as it did before including the XP theme manifest.
Anyone has experienced similar problems? Ideas, workarounds? Thank you in advance.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Interesting... Are you creating the control larger than the animation? If so, is ACS_CENTER set? Try setting/not setting this flag & see if it has any effect.
Otherwise, according to MSDN if you set the ACS_TRANSPARENT flag you can then intercept the WM_CTLCOLORSTATIC message & set your own background color; this is kindof a hack, but might be your only (portable) option.
farewell goodnight last one out turn out the lights Smashing Pumpkins, Tales of a Scorched Earth
|
|
|
|
|
Interesting... Are you creating the control larger than the animation?
No I'm not.
I'll try the WM_CTLCOLORSTATIC hack. Thanx for your suggestions.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
The WM_CTLCOLORSTATIC hack sort of did it. This will do for now (I've got a deadline approaching), but I think I'll investigate the problem a little further later. Thank you very much for your help.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hello,
how can I create a msproject file with content via com?
thanks
juergen
|
|
|
|
|
Is this another commandline question or do you mean com as in component object model..?
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Hi
i'm trying to write a program that compute integrals of functions of single variable f(x), the program will ask the user to enter the function for which he needs te compute the integral. my question is : once the user enter the function formula (for exemple: f(x)=log(x)+cos(1/x)), how can pass this formula to the program.
thanks
|
|
|
|
|
You can only pass that as a string, you'll obviously need to parse it from there.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Picture the daffodil. And while you do that, I'll be over here going through your stuff.
|
|
|
|
|
do you have an idea on how to parse it from string to math function.
thanks
|
|
|
|
|
You're going to have to search the string for brackets, work out the order of operations, and then check for maths functions, and call them. The problem is quite simply that you're going to have to write code for each math function you want to support.
Basically, it's not a pretty job. You may be able to do it easier by writing a macro.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Picture the daffodil. And while you do that, I'll be over here going through your stuff.
|
|
|
|
|
|
Hi,
I have used one Microsoft Remote Data Control to connect to FlexGrid Control in my Application.How can I change SQL Property of the RDC at runtime so that the FlexGrid shows me the Result of the New Query
Pls Help
|
|
|
|
|
How do I use the CMenu class? I looked on this site and on codeguru.com but all i saw was advanced stuff, nothing for just implementing a menu from a resource file. Can someone here show me how?
-AJ
I code, therefore I am
|
|
|
|
|
According to msdn.
Declare a member of type CMenu in CFrameWnd derived class.
CMenu m_myMenu;
call m_myMenu AppendMenu() with paramters.
call your CWnd SetMenu() followed by a CMenu::Detach()
Call it's LoadMenu to use a resource.
From resource would be something like this I imagine.
CMenu myMenu;
m_myMenu.LoadMenu(IDR_MAINMENU);
m_myMenu.SetMenu();
m_myMenu.Detach();
I don't know exactly where you'd create a menu, but OnCreate sound right.
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Hi,
i would like to know if it is possible to open the (graphics) control panel from a c++ application ?
I couldn't find any information about this, i found a lot on creating control panel applets, but nothing on just poping-up the control panel onto the screen.
Thanks in advance,
Lion
|
|
|
|
|
Launch (with your favorite function --CreateProcess , ShellExecute , etc.) the program control.exe . This works at least in Windows 95 (not tried in other OSs).
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks, it is nearly that, but my expression skills are so poor......
In fact, i wanted to open the "display settings" control panel.
I guess that it is about the same method than the one you explained here, but with a little modification to tell the system wich element of the control panel i wanna open (in my case, the "display settings" element).
Anyway, thanks, i have at least a direction to look at now.
Lion.
|
|
|
|
|
Well.. i use CHtmlView for my program.. it doesnt give any compile error.. but after i run it and start to browse a page or at least tiggering for browsing, i decided to close the child window or the program ana gives this error :
Unhandled exception at 0x5d1f65a4 (mfc70d.dll) in MdiTabWnd.exe: 0xC0000005: Access violation reading location 0xfeeefeee.
=> BREAK
// objore.cpp
BOOL CObject::IsKindOf(const CRuntimeClass* pClass) const
{
ASSERT(this != NULL);
// it better be in valid memory, at least for CObject size
ASSERT(AfxIsValidAddress(this, sizeof(CObject)));
// simple SI case
CRuntimeClass* pClassThis = GetRuntimeClass();
return pClassThis->IsDerivedFrom(pClass);
}
How can i prevent it? What would be the error??
Thanks A Lot...
At least reading my post....
|
|
|
|
|
hi...I set up a progressbar in a simple dialogbox which I created in the resource editor of vc++.
When I want to open the dialog via the DialogBox Function nothing happens, but If I remove the progressbar from that dialog, the dialog shows up properly (without that bar).
I tried to create a childwindow (class : PROGRESS_BAR), but it seems, that this is not possible. Does anybody know, what could be the problem here?
.thanks in advance
|
|
|
|
|
You're not using MFC ? How are you showing the dialog ? Have you tried calling the progress bar something else ( possible collision ) ?
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Picture the daffodil. And while you do that, I'll be over here going through your stuff.
|
|
|
|
|
no I am not using MFC...I created a dialog resource in the VC resource editor, which produced some IDD_DIALOG1 number...I use that number to make a call to
DialogBox(hInstance, IDD_DILOG1 , hWndParent, lpDialogFunc).
Internaly there might be used MFC.
However, the progressbar control within this IDD_DIALOG1 has some
ID too, but I have no idea, of how to call this progressbar else.
About which type of collision are you talking?
|
|
|
|
|
skydave wrote:
However, the progressbar control within this IDD_DIALOG1 has some
ID too, but I have no idea, of how to call this progressbar else.
By right clicking on it and choosing properties. It's probably called 'progress 1' or something.
skydave wrote:
About which type of collision are you talking?
I thought if you had a progress with the same ID as the dialog that might cause it to fail. You may have called the dialog IDD_PROGRESS1 because it was going to have a progress bar in it, or something.
Have you tried calling GetLastError ( or showing it in the debug window during a trace ) to get some idea what is going on ?
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Picture the daffodil. And while you do that, I'll be over here going through your stuff.
|
|
|
|
|
getlasterror returns the error code 1400 which means, that there had been an invalid windowhandle. I guessed, that the third parameter
of the DialogBox function is meant...I passed along the NULL pointer, since I thought there is no parent window needed.
But passing along a window like that one retreived from GetDesktopWindow() doesnt solve the problem...the lasterror is 1400 again.
Any idea what windowhandle could be meant?
There is no collision, since the DialogBox has some other ID then the
Progressbar.
|
|
|
|