|
You might want to make sure your service is set to interact with the desktop, it makes things go a bit easier while debugging with the Visual Studio debugger.
|
|
|
|
|
Hi,
I would appreciate if anyone could help me with determination of installed MS Office service packs.. (Programmatically of course)
Thanks in advance
Yeghia
|
|
|
|
|
Hi,
I would appreciate if anyone could help me with determination of installed MS Office service packs.. (Programmatically of course)
Thanks in advance
Yeghia
|
|
|
|
|
Are FSCTL_GET_NTFS_VOLUME_DATA and FSCTL_GET_RETRIEVAL_POINTERS0 valid as dwIoControlCode for DeviceIoControl() on NT4?
The reason I ask is that the Platform Documentation incdicates it is only available on Windows 2000 and XP. However, the include file "winioctl.h" indicates it is available on NT4 and above.
Which is true ?
Has anybody got NT4 with which to verify the solution.
Regards,
Richard
|
|
|
|
|
I'm using the Runtime azroles.dll to implement some Authorization Management stuff on Win2K. I'm trying to implement the example code from MSDN that can be found at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/openprocesstoken.asp
Everything runs fine right up to the call to AccessCheck(...) and there I get E_INVALIDARG with all the parameters set up exactly as in the example code. As I don't have sources, I can't debug and I have no idea which argument is invalid.
Has anyone written any code for this piece (from the MS sample) that works?:
hr = pClientContext->AccessCheck(<br />
objectName,<br />
myVar,<br />
varOperationIdArray,<br />
myVar,
myVar,<br />
myVar,<br />
myVar,<br />
myVar,<br />
&varResultsArray);
Could you show me how you passed in the various arguments?
Many thanks
dave
DaveT
|
|
|
|
|
I've been asked to display a variable's value every 30 seconds on stdout in the same display position on the same line of stdout without advancing the display position. I'm new to C++ and don't know how to begin with this. Please help!
|
|
|
|
|
To go to the start of the line again, simply output a '\r' char...
I see dumb people
|
|
|
|
|
10 lines max with a javascript excluding all tags
|
|
|
|
|
Keylee717 wrote:
That's just a carriage return.
And why do you think it has this name?
Try this code:
for (int i = 0; i < 1000; i++)
{
std::cout << i << '\r';
Sleep(30 * 1000);
}
I see dumb people
|
|
|
|
|
sorry, forgot to mention: windows.h
I see dumb people
|
|
|
|
|
Keylee717 wrote:
It doesn't change the value after 30 seconds though.
Sorry, I didn't understand your problem... Isn't it printing different values each 30 seconds?
I see dumb people
|
|
|
|
|
Keylee717 wrote:
That's just a carriage return. I need to stay on the original line.
Which is what \r does. Had \n also been speciifed, then it would have gone to the beginning of the next line.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
if you are in DOS mode
you can use
gotoxy(x, y) function
like
gotoxy(24, 12);
cout<<"First 30 ";
//30 sec delay logic here
gotoxy(24, 12);
cout<<"Second 30 ";
that will output in the same screen coordinate
The returned pointer may be temporary and should not be stored for later use.
|
|
|
|
|
no, that function doesn't exist under VC++. that is a borland one... forget it, it is a non-standard (non-ANSI) function.
TOXCCT >>> GEII power
|
|
|
|
|
why r all ppl saying about '\r' when there is a smart option of '\b'. IT PUTS A BACKSPACE AND TAKES U WHERE U WERE.
...Avenger
Remember... testing & debugging are always part of programming ...so exterminate those stinking bugs
|
|
|
|
|
Hi all
I have the following problem :
I cannot set dialog items text (like STATIC TEXT) to UNICODE (CWnd::SetWindowText is working but the displayed text is not readable ) .Interesting is that when I call SetWindowText directly on the CDialog the dialog's title is readable , but when I call the same method on any dialog element it will display unreadable text.
Anyone has any idea?
xxx
|
|
|
|
|
Show some sample code of what you are doing
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
How to convert char to CString... ?
ch[0]
ch[1]
ch[2]
to 1 CString
|
|
|
|
|
ch[3] = '\0';
CString strMyString = ch;
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
like:
char a , b , c;
a='A';
b = 'B';
c = 'C';
CString csFullStr;
csFullStr.Format("%c%c%c", a, b, c);
The returned pointer may be temporary and should not be stored for later use.
|
|
|
|
|
i have a problem:whether different Desktop can post message to each other?
|
|
|
|
|
If they're in the same window station, I believe so.
However, I think you're talking about communications between computers, in which case you need to use some form of Remote Procedure Call.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi. I have a question: how can I play a mpeg movie inside a dialog box, from a SDI application?
I tried the "easy" way... and it doesn't work...
(here's the "easy" way: after creating the dialog box, and the OnSomething function, and importing CMediaPlayer, I wrote this code:
CMediaPlayer dlg;
dlg.CreateWindow (.....yadda yadda...);
dlg.ShowWindow (WS_SHOW);
dlg.m_player.Open ("Test.mpeg");
dlg.m_player.Play ();
The funny thing is.... it works fine for a dialog-based application - when I write the last 2 lines of the above code, in the OnInitInstance() function.
Any suggestion welcome. (as you can see, I'm not a great programmer, so please don't laugh )
Thanks.
We are accidents waiting to happen...
|
|
|
|
|
OnInitInstance is related to the application thread... there i guess it would have any effect.
humm as far i have understood this could be the solution..
Create an sdi application with form view and then place the mov player and do the coding for it like a normal dialog application in the view.
MSN Messenger.
prakashnadar@msn.com
"If history isn't good, just burn it." - Sidhuism.
|
|
|
|
|
Hi all,
this is the error I'm getting:
"error C2276: '&' : illegal operation on bound member function expression",
Apparently, this is due to assigning a pointer to a virtual function, yet I do not have any function declared virtual. Does any one know a way around this problem? Is there a way to force a function not to be virtual? Here's a snippet of my code:
In .h
…
class MyClass
{…
int VBGCalc(const gsl_vector *x, void *params, gsl_vector *f, gsl_matrix *J);
int VBGPartials(const gsl_vector *x, void *params, gsl_matrix *J);
int VBGFunct(const gsl_vector *x, void *params, gsl_vector *f);
int VBGF(void); //problem in this function
…
};
in .cpp
int MyClass::VBGF(void)
…
f.f = &VBGFunct; //offending code
f.df = &VBGPartials; //ditto
f.fdf = &VBGCalc; //ditto
…
return 1;
}
int (* f) (const gsl_vector * x, void * params, gsl_vector * f);
gsl_vector and gsl_matrix are struct variables.
Thanks,
Ralf.
ralf.riedel@usm.edu
|
|
|
|