|
Much of that information is available in the Network Management Functions. NetUserGetGroups for example. If you have MSDN you can find them.
|
|
|
|
|
ow to get Windows Nt Server Information(such as user profiles,group, directory size , backups, mointoring etc.) using Visual C++ APIs
|
|
|
|
|
Hi there,
I am trying to add an icon to my Delete dialog box. I would like this
icon to be the same as the one microsoft uses in its Window 2000 Delete dialog boxes within its Windows Explorer.
How do I find this icon on my desktop programmatically? I have searched my directories but i can't find anything like it and I am not sure which exe i need to extract to retrieve this info from.
thanks
|
|
|
|
|
The easiest way is to rip it out of the system dlls. Chances are the icon you are looking for is in shell32.dll, but it may be in another. To find it, do a File->Open from Visual Studio and locate the dll you want to look at. At the bottom of the File Open dialog, there is a "Open As" combo - select Resources, and the resources of the dll you've selected should appear in Visual Studio. Browse at will.
Unfortunately, I don't have W2k installed at the moment, so I can't check what icon you need, but chances are it's in shell32.dll.
Hope this helps.
------------------------
Derek Waters
derek@lj-oz.com
|
|
|
|
|
Hello all,
I'm looking at including an interpreted scripting language into my application. The major constraints are the following:
(1) It must be cross platform capable (Windows, Mac, maybe Unix).
(2) It must be relatively lightweight.
However, as I'm sure all such notions begin, "it doesn't need to do much" I saw the SAScript demo here (pretty helpful), but am looking for other options as well. Can anyone suggest what alternatives there are and/or places to look about how to roll your own? Any other info or tales of dread are welcome. Thanks.
|
|
|
|
|
We're just starting a new version of our product and cross platform is a major concern. Hence we moved from DX to OpenGL. We are also writing our own GUI classes in order to reimpliment them under other platforms, so our core code will be cross platform and we'll end up with a set of libraries for cross platform GUI development. We are scripting with Python and it's working very nicely. I've got a set of classes in C++ and a set of classes in Python that allow me in our Python console to create a GUI and link buttons, text events, etc. to Python code. All our 3D tools are also written in Python, linking back to the C++ code, of course.
I'm finding Python very easy to learn and use, very easy to set up and to link back to C++. Certainly I can promise if you decide to use Python there'll be at least one other CP'er in the trenches to offer war stories and support....
Christian
Secrets of a happy marriage #27:
Never go to bed if you are mad at each other. It's more fun to stay up and fight.
|
|
|
|
|
At least I know that I'll have someone to commiserate with
I've never used Python but have used Perl somewhat. It looks like you can do something similar with Perl too. Did you look at Perl as well and if so, what about Python made it the winner? Do you have any good links about embedding Python? Thanks Christian.
|
|
|
|
|
The guys here tell me we chose Python because object orientation is not a bolt on, and it looked nicer to impliment.
From the Python.org site, this is Perl vs. Python according to Yoda:
EXTERIOR: DAGOBAH -- DAY
With Yoda strapped to his back, Luke climbs up one of the
many thick vines that grow in the swamp until he reaches the
Dagobah statistics lab. Panting heavily, he continues his
exercises -- grepping, installing new packages, logging in as
root, and writing replacements for two-year-old shell scripts
in Python.
YODA: Code! Yes. A programmer's strength flows from code maintainability.
But beware of Perl. Terse syntax... more than one way to do it...
default variables. The dark side of code maintainability are they.
Easily they flow, quick to join you when code you write. If once
you start down the dark path, forever will it dominate your destiny,
consume you it will.
LUKE: Is Perl better than Python?
YODA: No... no... no. Quicker, easier, more seductive.
LUKE: But how will I know why Python is better than Perl?
YODA: You will know. When your code you try to read six months from
now.
They suggest you look at Ruby as well if you're examining options.
www.python.org is the site you want for Python info, including embedding information.
Here is a comparison of Python to other languages on that site.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
I just started developing ActiveX control with mfc. I have a property page with 2 edit fields. I know I can call my activeX control through object tag and CLASSID and it displays my control but I was wondering how can I call my property page over the web. On my property page I have CLASSID too and I tried using that but it didnt work. There is another tag <param /> but i dont know how it will call my property page to display on the webpage.
I am wondering if there is code which somehow links the control with the property page on the webpage. Since I have written everything in the Ppg.cpp itself, I really want to display my property page otherwise I will have to write everything in the ctrl.cpp like create a dialogbox within my ctrl.cpp file to handle everything.
Any help will be greatly appreciated..
Thanks in advance
Bobby
smile is the best medicine
|
|
|
|
|
guess what I found it..u cant display property page on a web page...propery page just lists the properties which u can modify through scripts..
Cheers
Bobby ;P
|
|
|
|
|
I have a program that runs in the system tray, and when i send a message to the program i want to a popbox showup like MSN Messenger. Or if nobody knows
how to do that, could anybody tell how to have my dialog box show in the bottom right corner. No matter what resolution the user running. Sorry for such a big question
Thanks,
Caleb
|
|
|
|
|
well to have your window popup just handle the message and do:
ShowWindow(SW_RESTORE);
Bret Faller
Odyssey Computing, Inc.
|
|
|
|
|
im looking for some implementations of some vb string functions, mainly left() and right(). can anybody show me?
|
|
|
|
|
If you're using MFC, you may take a look at CString::Left() and CString::Right(), which are identical to VB counterparts (also CString::Mid()).
Paolo
------
"airplane is cool, but space shuttle is even better" (J. Kaczorowski)
|
|
|
|
|
Hello,
Does anyone know of a good example/code that will dock a dialog-based app to the edge of the desktop? Any leads/help is greatly appreciated.
Bret Faller
Odyssey Computing, Inc.
|
|
|
|
|
I have the following code wich is out in msdos promt.
printf("lastname = %s\n",lastname);
I need to do the same output only in a file. How do I do this? Thanks
|
|
|
|
|
Use fprintf() instead of printf(). Also see fopen() and fclose().
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Could you give me more details on this. I am not really familiar with C++. I have two lines to be output in a file. How do I do this?
|
|
|
|
|
Could you give me more details on this. I am not really familiar with C++. I have two lines to be output in a file. How do I do this?
|
|
|
|
|
It's C, not C++.
You should read about file I/O in any elementary book on C (or C++). It seems like you're trying to get someone to do your assignment for you.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hi, I have a CFrameWnd derived class that works fine using its default view however I need it to use a different view entirely. I am not using a Doc/View architecture so this is the first time I have attempted to set a frames active view by hand and I am haveing many problems, a few questions:
Exactly where in a CFrameWnd derived classes construction process do I create a new view and attach it to the frame, if possible I do not want the default CView to be hanging around if possible.
How exactly do I create a CView derived class, for example this asserts in my attempts:
view->Create(NULL,NULL,WS_VISIBLE | WS_CHILD,rect,NULL,0);
It asserts due to the WS_CHILD part.
This code (with the CView * cast to a CWnd * to illiminate the WS_CHILD assert) works up until the CFrameWnd::SetActiveView where an assert is thrown due to having WS_CHILD window set.
wnd->Create(NULL, NULL, AFX_WS_DEFAULT_VIEW | WS_CHILD,
CRect(0,0,0,0), this, 0, &context);
in this code the context structure is set to contain the runtime class of the view, and NULL for the document part and the CFrameWnd for the frame part.
Has anyone any idea how to create/add a new view to a CFrameWnd without using docview (and even without using CRuntimeClass's)
Thanks
|
|
|
|
|
hi
how to draw a graph by taking x-axis as "time" and y-axis as "pressure".These value are to be take from database/file.
And how to represent the peak value of the graph and peak duration.
please help me
thank you
anjaneya raju datla
|
|
|
|
|
http://www.codeproject.com/miscctrl/index.asp#Charting%20Controls
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
How can I add a help file in the Tools menu ? Thanks
|
|
|
|
|
Why creating a brush doesn't accept high colors (only pure 16 colors)?
This will create a red brush:
m_rcBackColor=RGB(255,0,0);
Cbrush br(m_rcBackColor); or br.CreateSolidBrush(m_rcBackColor);
But this will create a gray brush:
m_rcBackColor=RGB(254,0,0);
Cbrush br(m_rcBackColor);
A high color is changed to the closest pure color.
I'm trying to put some text (as Static Control) on the main window and I want the text to have the same background as the window. If window has a pure color like white, or gray, or red, there's no problem. But if my window has a background set to, let's say, RGB(255,0,100), the text is displayed in gray background.
Static control uses, by default, color of Dialog's background.
Any ideas?
Jerzy.
|
|
|
|