|
In what format? You can always output the XML tags with the values... I just don't know for sure which tags you intend on using.
Regards
Fratelli
|
|
|
|
|
can anybody tell me how to set static IP address using c++ code using win32 API
|
|
|
|
|
you could try to have a look at the ip api... but most of it is pretty undocumented, so good luck
|
|
|
|
|
sounds like a disaster in the making to me mate.
hard coding an IP address is going to fall over sooner or later depending on the network config.
i would ask if u really need to set a static IP addr or weather u can use a "localhost" type workaround
|
|
|
|
|
yes,my application requires so.could u pls help?my code is showing unhandled exception in this line
HRESULT hr = pSvc->GetObject(ClassName,0,NULL,&pClassObj,NULL);
|
|
|
|
|
|
HI all,
There is any class in MFC like PrintPreviewDialog.
Please tell me which class is use inplace of PrintPreviewDialog.
Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Print preview comes incorporated in most MFC doc/view apps if you choose it in the wizards.
You have to supply the correct drawing code of course.
|
|
|
|
|
In MFC,CPageSetupDialog for page setup and CPrintDialog for print dlg is available.
So i just want to know there is any class for PrintPreviewDialog.
I know that:
bob16972 wrote: Print preview comes incorporated in most MFC doc/view apps if you choose it in the wizards.
But i want to show it at a particular place, so i want to know about class which is related to printprevieewdlg.
Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
class CPreviewView : public CScrollView
one area where it is invoked is in CView::DoPrintPreview()
|
|
|
|
|
Hi dear,
I want to hide the cursor (for example: after 5 seconds) when the mouse doesn't move anymore.
(Windows Media Player does it when playing movie in the full-screen mode)
On the other words, how can I find when the mouse doesn't move?
Thanks.
|
|
|
|
|
|
If I have a method with two parameters, each with a default value, is there a way to set the value for parameter #2 while somehow still using the default value for parameter #1 when calling the method?
void SomeMethod(int nValue1=0,int nValue2=0);
|
|
|
|
|
bob16972 wrote: If I have a method with two parameters, each with a default value, is there a way to set the value for parameter #2 while somehow still using the default value for parameter #1 when calling the method?
void SomeMethod(int nValue1=0,int nValue2=0);
http://bytes.com/forum/thread62073.html[^]
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
I have a dialog. I set these properties:
System Menu = True
Maximize Box = True
Mimimize Box = True
The dialog just show a close button, but not show maximize button and minimize button.
I thoght that I miss some other properties? Can anyone tell me what's wrong here?
|
|
|
|
|
tataxin wrote: The dialog just show a close button, but not show maximize button and minimize button.
I thoght that I miss some other properties? Can anyone tell me what's wrong here?
These should be enough.
I face such problems mainly because my resource dll does not get compiled as dependency is not set on it, it is compiled on request only. So make sure the resource file is getting compiled.
Another possibility to check is whether these styles are being dynamically removed or not.
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
I found it!!!
The property Tool Window must be False.
Thank you, Nibu babu thomas,
|
|
|
|
|
I am using VC++ .Net 2003.
If I place a richedit control in the dialog of dialog based application, application quitting immediately without any message while start.
Is it any known bug?
Regards,
Suman
--
"Programming is an art that fights back!"
|
|
|
|
|
If you are placing a rich edit control in your dialog, you have to call, AfxInitRichEdit()[^] in the InitInstance() function of you app class.
|
|
|
|
|
Hi! Thanks for helping me. I need to write a program (in C++) that reads the file Employee.dat as input and then outputs to 4 different files which are Managers.dat, Marketing.dat, Developers.dat, and Testers.dat. Each of the output files contains the name of the employees of its category.
The fle Employee.dat contains following data:
Sue Leon 4
Robert Wise 3
Sam Woo 1
Nathan White 3
Suzan Head 2
Henry Williams 4
Christine Mint 1
Kim Leeds 4
Elton Sue 3
Ken Latch 2
I tried to write the program but I don't know what to put in "SWITCH" loop. Here is what i have so far.
#include <iostrean>
#include <fstream>
#include <cstdlib>
#include <string>
using namespace std;
int main()
{
ifstream in_stream;
ofstream out_stream;
in_stream.open("Employee.dat");
if (in_stream.fail())
{
cout << "Input file failed to open.\n";
exit(1);
}
out_stream.open(("Managers.dat", ios::app), ("Marketing.dat", ios::app), ("Developers.dat", ios::app), ("Testers.dat", ios::app);
if (out_stream.fail())
{
cout << "Output file failed to open.\n";
exit(1);
}
string first_name, last_name;
enum department { Managers = 1, Marketing = 2, Developers = 3, Testers = 4 };
im_stream >> first_name >> last_name >> department;
while (!in_stream.eof())
{
switch (department)
{
number '1';
out_stream << "
|
|
|
|
|
Shah Ravi wrote: #include <iostrean>
Are you receiving a preprocessor error with this one?
Shah Ravi wrote: out_stream.open(("Managers.dat", ios::app), ("Marketing.dat", ios::app), ("Developers.dat", ios::app), ("Testers.dat", ios::app);
...
im_stream >> first_name >> last_name >> department;
Or a compiler error with these?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
No, I haven't finished writing program yet. Could you please read the code and tell me what to write in SWITCH loop. Should I use cout or ofstream? Thank you so much for replying.
|
|
|
|
|
Shah Ravi wrote: Could you please read the code and tell me what to write in SWITCH loop.
See here.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I would like to ask how to detect application/windows scripts on load.
for example my program would detect if someprogram.exe is loading..
thank you.
|
|
|
|
|
you'll have to take a snapshot of every process, every second (or a time you decide), and compare with the old snapshot to see if you find a new process.
you can try hooking the api that opens the processes to watch it, but it's somehow expensive to develop... there's the oportunity to write a kernel module and watche the processes memory pages, that is more expensive yet...
i don't really much more clues on how to do it, but there are books that goes deep on theese subjects such as "Windows Rootkits: Subverting the windows kernel" and such.
|
|
|
|