|
Does anyone know how to find a local group's permissions? I am enumerating through the local groups on my machine using the NetLocalGroupEnum API, but when I check the group using the NetLocalGroupGetInfo API, I only get two pieces of information that I don't need:
1 The group's name - already have, don't need again
2 The group's description - doesn't serve my purpose
Are there any APIs or methods that I can use to find if a local group is an admin group? I've spent many many hours working on this problem and I am getting a little frustrated.
|
|
|
|
|
Hi, in my VC7 app, I would like to record calls to a dll that I have made using my GUI part and be able to play them back if I need the same sequence again. Any suggestions on how to start, where to look?
Paul
|
|
|
|
|
hello
how do I send a key combination to a window like for example ctrl+c. I have tryed with keybd_event and SendInput but I could not send more than one key. Is there a way to send a key combination to a window?
thank you
|
|
|
|
|
Hello!
I had such a problem a year ago,
I didn't find a good answer so I decided
to 'Put a hidden BUTTON on the dialog' and use '&' to give it a shortcut to a On... Message.
It solved my problem temporarily! but it's not a good way I think.
But I'm a begginer yet.(I started VC++ about a year ago).
|
|
|
|
|
|
Hi, in the code of dll, I need to extract the full path of a file at runtime. Any suggestions?
paul
|
|
|
|
|
Hello!
Perhaps this will solve your problem:
FILE *fp;
CString fileName,s;
GetModuleFileName(NULL,s.GetBuffer(512),512);
s.ReleaseBuffer();
//remove executable file name
s.Delete(s.ReverseFind('\\'),s.GetLength()-s.ReverseFind('\\'));
fileName=s;
fileName+="\\File Name In Your Project Folder (for example)";
OK?;)
|
|
|
|
|
Unfortunately not, since the path of the .exe is unknown (the dll who should determine the path is called thru COM)
Anyways, thanks for your answer!
Paul
|
|
|
|
|
I'm sorry.
I know almost nothing about COM and it's problem.
I'm a begginer yet
|
|
|
|
|
HI Mr Paul!
you have to write following code in your DllMain of DLL (wither Com or simple)
For Getting the path of DLL
DllMain<code>(HINSTANCE hInst</code>,...)
{
.......
case DLL_PROCESS_ATTACH:
char szfileName[MAX_PATH];
GetModuleFileName(<code>hInst</code>,szfileName,MAX_PATH);
char szDriveName[3];
char szDirectoryName[MAX_PATH];
_tsplitpath(szfilename,szDriveName,szDirectoryName,NULL,NULL);
sprintf(szfileName,"%s%s",szDriveName,szDirectoryName);
}
For Getting path OF Application calling your DLL
--Just change GetModuleFileName api first Parameter from hInst to NULL , and proceed in same way.
"I Think this Will Help"
[Vote One Here,.....]
<h5
alok="" gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
Thanks! this one worked!
Paul
|
|
|
|
|
I would like to write an app that can send video/images out the S-Video out port of my graphics card. I don't want to have to rely on the secondary monitor and 'extend desktop' functions of the graphics card to be able to display the video in my application on a tv monitor. So, I'm wondering if the S-Video out, or Composite Video out on my graphics card can be directly accessed by my Visual C++ app. I've searched the web, the MSDN library, and the ATI site (I have a Radeon ViVo card), but can't find any references to doing this. Is it at all possible? Any help or comments would be greatly appreciated.
|
|
|
|
|
I would like to find out how to extract the visual wave of an audio file(mp3, wave, wma, etc). I have absolutely no idea how to do this or even where to begin. Ahead Nero can do this, also WMP do this as a visualization.
I use Borland C++, and would like to develop for multiple platforms.
thank you
butt to seat ppl
gunigugu
|
|
|
|
|
|
I am interested in writing a program that would allow a user to select an Active X control and drag and drop from a listbox onto a formview. The user would then be allowed to set the attributes and move the controls around the form to their liking. After the form has been designed to the users liking, they would then hit a run button. At that point we would go from design form to run form, lose the editing tools and run the application.
Would it be better to lunch another runtime program from within the design program or run a second interface thread to run the designed program from within. What is the best strategy to complish this and maybe tips on writing either one? Thank you
|
|
|
|
|
hello,
I want my application to send a request to search engine(Yahoo.com ,Excite,Altavista,msn) and the search engine should return the URLs of the top 10 sites that match the keywords I sent to the search engine.
I have found google.com contain an API for developers but the other search engines does not provide a similar API or web service.
Thanks in advance
|
|
|
|
|
Mohsen Saad wrote:
other search engines does not provide a similar API or web service.
And that's exactly why I wrote this[^] article.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hi guys,
I am doing a directshow programming, the microsoft sample is use a pure WinMain and WinPro message loop.
And it build the window by using CreateWindow.
I wonder if I can direct use the CreateWindow in visual C++? or there is any alternative way?
Thank u very much in advance!
|
|
|
|
|
Hello!
[MSDN]
You construct a child window in two steps. First, call the constructor, which constructs the CWnd object. Then call Create, which creates the Windows child window and attaches it to CWnd. Create initializes the window's class name and window name and registers values for its style, parent, and ID.
// Dynamically create static control using CWnd::Create,
// instead of with CStatic::Create, which doesn't
// need the "STATIC" class name.
void CMyDlg::OnCreateStatic()
{
CWnd* pWnd = new CWnd;
pWnd->Create(_T("STATIC"), "Hi", WS_CHILD | WS_VISIBLE,
CRect(0, 0, 20, 20), this, 1234);
}
However I wrote a class two days ago and used it like this:
if (!CreateEx(WS_EX_TOOLWINDOW | WS_EX_TOPMOST,
_T("Class Name(Must be registered)"), NULL,WS_POPUP , 0, 0, 0, 0,
pParentWnd->GetSafeHwnd(), NULL, NULL))
{
return FALSE;
}
And I registered the class like this:
WNDCLASS wndcls;
HINSTANCE hInst = AfxGetInstanceHandle();
if(!(::GetClassInfo(hInst, "HToolTip", &wndcls)))
{
// otherwise we need to register a new class
wndcls.style = CS_SAVEBITS;
wndcls.lpfnWndProc = ::DefWindowProc;
wndcls.cbClsExtra = wndcls.cbWndExtra = 0;
wndcls.hInstance = hInst;
wndcls.hIcon = NULL;
wndcls.hCursor = LoadCursor(hInst, IDC_ARROW );
wndcls.hbrBackground = NULL;
wndcls.lpszMenuName = NULL;
wndcls.lpszClassName = "HToolTip";
if (!AfxRegisterClass(&wndcls))
AfxThrowResourceException();
}
OK?
|
|
|
|
|
Thank you very much! It gets work!!
Thanks!!
|
|
|
|
|
Real quick:
Is this a valid way to pause a consle program?
cout<< "Press ENTER to continue...";
cin.ignore();
cin.get();
I have heard that you want to avoid system calls like system("pause"); , so is this a viable option?
Thanks
-Mark
We're sorry, we were unable to complete you request. The website administrator has been automatically notified.
REFRESH? ¥492077616E74206120726566756E6400¥
|
|
|
|
|
You could try using Sleep() or simply loop until the requisite number of seconds have elapsed.
int nElapsed = 0;
int nWaitFor = 5;
time_t tmStart;
time (&tmStart);
do {
time_t tmNow;
time (&tmNow);
nElapsed = tmNow - tmStart;
} while (nElapsed < nWaitFor);
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
What if I want to wait for user input?
Different people take a different amount time to read and understand the same info.
Make the time too short and the user gets pissed off b/c they missed something, too long and they sit there pounding to keyboard trying to progress in the program.
-Mark
We're sorry, we were unable to complete you request. The website administrator has been automatically notified.
REFRESH? ¥492077616E74206120726566756E6400¥
|
|
|
|
|
---Mark--- wrote:
What if I want to wait for user input?
You don't have to do anything special to wait for user input. cin >> foo won't complete until the user presses Enter.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Maybe that was confusing. I didn't mean actual input like a number or character, I meant to wait for the user to acknowledge that what is being displayed on the console has been read and the program can progress or end. In that case is the way I mentioned a good way to do that or are there better?
Thanks
-Mark
We're sorry, we were unable to complete you request. The website administrator has been automatically notified.
REFRESH? ¥492077616E74206120726566756E6400¥
|
|
|
|