|
why dont u use windows raw sockets for packet capturing.
Tutorial Here
|
|
|
|
|
do u know the differences between command.com and cmd.exe?
i guess they do exactly same things.
thx
includeh10
|
|
|
|
|
command.com is used for backward compatibility with 16-bit and Windows 9x applications. cmd.exe is not available on either.
One obvious difference is how each handles the space character. For example, the command md this folder has spaces would fail with command.com but would work with cmd.exe, although four folders would get created. To remedy this, the folder name must be surrounded by quotation marks (md "this folder has spaces").
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
1. DavidCrow wrote:
cmd.exe is not available on either
what does it mean? please explain.
2. is "MS-DOS prompt" command.com or cmd.exe or else?
3. do all windows OS from win95 to NT, XP etc contain both of them?
i know almost NULL about DOS, currently I have to use it.
includeh10
|
|
|
|
|
includeh10 wrote:
what does it mean? please explain.
It means that cmd.exe is not part of MS-DOS or Windows 9x.
includeh10 wrote:
2. is "MS-DOS prompt" command.com or cmd.exe or else?
Based on my earlier reply, it's obvious that MS-DOS uses command.com.
includeh10 wrote:
3. do all windows OS from win95 to NT, XP etc contain both of them?
No. cmd.exe is not part of Windows 9x.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
command.com is a 16-bit DOS-compatible application, although with a few extensions that allow it to launch 32-bit applications. It runs in the Virtual 8086/NT Virtual DOS Machine environment. It only supports the DOS-compatible built-in command options. Compared to cmd.exe , the input is distinctly unresponsive on modern processors (at least on P4 family).
cmd.exe is a 32-bit Windows Console subsystem application. It supports numerous command extensions over the DOS-compatible built-in options (for details, see help ). It supports filename and directory completion (not enabled by default on Windows 2000, but is on XP - press Tab to complete the current entry). It natively supports command history, a feature requiring the use of the doskey utility for command.com .
64-bit Windows does not support DOS applications, including command.com . This is due to a lack of processor support. Many traditional DOS extensions such as more.com are in fact full 32-bit Windows Console subsystem binaries on Windows XP, despite the COM extension. If you use more from command.com , Windows loads a copy of cmd.exe as an intermediary.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi,
I am looking for a report generation solution for a desktop engineering application. For now, this will be a hobby project so I am looking for a library (or a suite of libraries) that are free or LGPL or cheap (ei less than $500 in total). Note I excluded GPL, because this is also a technology search for a commercial application. For my hobby project I want a multi platform solution (*nix, Windows and Mac?), but for the commercial application Windows support is enough. If the solution is using a commercial library it must be royalty free.
. This report will be a multi page report, containing tables(lots of them), figures (most probably png outputs from a(n) OpenGL/DirectX/GDI frame), formulas and of course normal text.
. There should be a previewer that I can embed into my application.
. It should support printing directly.
. Editing is perhaps the most ambiguous part. Editing will be quite limited. I do not want the user to edit the values in the tables, but add additional text. It would be great if this could be done in the preview mode, ie sizing a table in order to add a note next to it, or add a sentence to an existing paragraph.
. Most of the time, the report generated will be stand alone, meaning that the user will print it directly within the application. But it is also possible that this report will be a part of a bigger report that most probably will be prepared in MS Office and/or OpenOffice so I should also be able to export to some format that these applications can import without losing too much information along the way (formulas will be tricky). Of course this conflicts with the limited editing requirement, but you can not have it all (or can I?)
My solutions:
1. Use (la)Tex. I am familiar with (la)Tex. So I can generate the report in tex and convert to some format (ie pdf, rtf or whatever) and display/print it. For the PDF part I can embed Acrobat Reader in to my application, although I do not know how to do this in Linux but, I can just look at the source code of an application which does it. Or I can use GhostScript, although their web site requires you to email them for detailed information on commercial usage, I can do that if I find this more usable than embedding Acrobat Reader.
2. Use rtf. Although I am familiar with rtf format, I am not really sure about table and/or formula support in rtf.
3. Use pdf. I am not really familiar with pdf, but there are libraries around that will generate pdfs for you with a nice C/C++ interface. The downside is I have to implement all page layout algorithms myself including formulas, tables etc.
4. Embed MS Word into my application. I know how to do this, but I do not know how much control will I have in terms of generating a complete report with formulas and tables (definitely I will have much more control then Acrobat Reader). I am hoping the same thing can be done with OpenOffice too, at least for other platforms that I want to support. I do not like this solution very much, since you require the user to buy quite expensive product (for MS Word), and/or download a big installation for a relatively small (ie less than 5MB) application. Note, (la)Tex may also suffer from the same problem, depending on which extensions I end up using.
5. And finally as always, implement something from scratch.
Although I will prefer C/C++, I am open to suggestions to libraries that are written in other languages.
Thank you in advance...
Orhun Birsoy
|
|
|
|
|
i want that when the aplication star one of the 5 radio buttons is set active as default, because in my program all radio buttons are set as inactive you have to set it qhen you star the program.
|
|
|
|
|
The easiest and most reliable way is to create a CButton member variable for each. Then in the dialog's OnInitDialog() method, call the SetCheck(BST_CHECKED) method of the button you want checked.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
It doesnt work
error C2065: 'SetCheck' : undeclared identifier
|
|
|
|
|
Is this an MFC application?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Yes it is .
Appwizard with mfc
|
|
|
|
|
Then SetCheck() should be available as it is a CButton method. Please provide a code snippet of all relevant pieces.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
You can simply use the CheckRadioButton(..) function.
EXAPMLE :
if you have 5 radio buttons and want to check the 'third' radio button then add this function to yourdialogs OnInitDialog() method
CheckRadioButton(IDC_RADIO1,IDC_RADIO5,IDC_RADIO3);
m0n0
|
|
|
|
|
The way I did it:
I have set a control variable (I'm not sure if this is the right terminology for it). For example, in my app (LNP) I have a list of frequencies that a user may choose using a radio button. I have declared an int m_Freq . Then, I tell it to associate the radio with m_Freq (IDC_FREQ_18_0 corresponds to the ID of the first frequency in the list, 18.0):
void LNPDlg::DoDataExchange(CDataExchange* pDX)<br />
{<br />
<br />
DDX_Radio(pDX, IDC_FREQ_18_0, m_Freq);<br />
}
Then in my constructor, I set m_Freq to whichever value I want chosen at startup, i.e., 0 corresponds to the first entry (18.0), 1 would correspond with the next value, etc.
--
Marcus Kwok
|
|
|
|
|
ricecake wrote:
Then in my constructor, I set m_Freq to whichever value I want chosen at startup, i.e., 0 corresponds to the first entry (18.0), 1 would correspond with the next value, etc.
This assumes that you will always want to access the radio buttons via an "index."
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hi!
how can i load a webpage from some url in to my application using c and sockets.
Thankx
=-=-=-=-=-=-=-=-=-=
Inayat Ali
=-=-=-=-=-=-=-=-=-=
|
|
|
|
|
normally u should use CInternetSession.
if socket, does the server side send the page and allow u connect to the socket pipe?
includeh10
|
|
|
|
|
|
Hello to everybody,
I have added wit the wizard 2 methods for my ActiveX :
PutNumber (ULONG uNumber)
PutData (BYTE* pData )
I compile the application and I run the ActiveX to test it with the Container of Visual Studio. I have set two stop points in both methods. When I invoke the first method, it works well. It goes inside the function but when I try the second one it doesn't work...I think it is a problem that pData is a pointer cause I have created several methods to test it and it doesn't work only when I use a pointer.
Please Help
Thanks
Javi
|
|
|
|
|
Check out the data type converion ur using, coz u might be passing some other datatype n while using pointers always chekout type conversion.
|
|
|
|
|
hi
i wrote a function which conjnects me to an online mysql database from my app. when i use the function from a win32 console application, all is well. when i port the same function to my mfc application, it gives all sorts of linker errors saying that there's a conflict between libc.lib and mysql++.lib. putting libc.lib or libcmt.dll in the ignore library list from the settings does not help.
anybody have any idea ? you guys ever used mysql++ from an mfc application ? if yes please give me the project settings and a few snippets ....
thanks in advance.
kane
"Some guys hack just to get themselves a girlfriend.What a pathetic reason huh ?"
www.coderkane.com
|
|
|
|
|
Did you compile MySQL++ yourself, or download a precompiled version? If you compiled the latest version yourself, and you used the provided .vcproj, it should have built with the Multithreaded DLL version of the C run-time.
The default configuration for a Win32 Console Application is to use the single-threaded static library CRT. The default for an MFC application is to use the multithreaded DLL. You can't mix-and-match within an application - if you're going to use the MFC DLL you must use the CRT DLL.
The home page[^] suggests that before version 1.7.16, the single-threaded static CRT was used.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Thanks for the help Mike!
i downloaded my mysql++ from this website only, i downloaded the precompiled "ancient" version because i have visual studio 6 with service pack 6. my mysql++ version is 1.7.1 the page says that newer versions won't build with vc++6..what do u suggest i should do ? Can i compile the lib with borland c++ and use it in my vc++ projects ? or is it absolutely necessary for me to upgrade..?
kane
"Some guys hack just to get themselves a girlfriend.What a pathetic reason huh ?"
www.coderkane.com
|
|
|
|
|
I use pipes with CreateProcess(), but my code works well on win98 and doesn't work on XP.
only special code for XP in my app looks like:
=========================
void*psd=0;
LPSECURITY_ATTRIBUTES psa=0;
DWORD bNT=(GetVersion()<0x80000000)?1 ;
if(bNT)
{
psd=::GlobalAlloc(GPTR,SECURITY_DESCRIPTOR_MIN_LENGTH);
::InitializeSecurityDescriptor(psd,SECURITY_DESCRIPTOR_REVISION);
::SetSecurityDescriptorDacl(psd,-1,0,0);
psa=(LPSECURITY_ATTRIBUTES)::GlobalAlloc(GPTR,sizeof(SECURITY_ATTRIBUTES));
psa->nLength=sizeof(SECURITY_ATTRIBUTES);
psa->lpSecurityDescriptor=psd;
psa->bInheritHandle=1;
}
const BOOL bOK=CreateProcess(0,pszCmdLine,psa,0,1,0,0,0,&si,&pi);
//======================================
do i need more special code for XP?
thx
includeh10
|
|
|
|