|
hello.. i want to know how to make fingerprint software using c++/mfc
for the interface i have completely done
but i don't know how to interact the source code with gui
actually i will focus on fingerprint enhancement and ridge reconstruction only
can anyone help me or maybe just let me know where to find the source
thanks,
faz
|
|
|
|
|
How about entering some [ex: fingerprint recognition software] of the keywords in some search engine.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Can anybody tell me the way os getting this answer
#define f(g,g2) g##g2
main()
{
int var12=100;
printf("%d",f(var,12)));
}
Ans:100
Thanks in advance
|
|
|
|
|
Upon Preprocessing completion (but before compilation), the statement printf("%d",f(var,12))) ; gets expanded to printf("%d",var12)) . So the answer, 100.
In macro f(g, g2) , u r passing var and 12. The statement g##g2 joins the original parameter to the macro i.e, var##12 = var12 . Hence the resulting variable, var12
Come online at:-
jubinc@skype
|
|
|
|
|
Have you considered compiling with the /P switch to see just what the preprocessor resolves the macro to?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I have created a dialog in a dll and exposed that method.It is being used by java code through JNI.
Once the dialog is created I want my dialog to stay till the user closes
the dialog. But unfortunately as the java application exits,obviously my dialog also gets killed.
What should I do so that my application doesn't exit and my dialog stays
till the user closes the dialog?
Thanks
Today is a gift, that's why it is called the present.
|
|
|
|
|
Can you stop the java application from exiting. Just hide the java application window so that it's process still runs in the background and the other dialog in the dll can be closed by the user later on...
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
hello,
I am trying to create an mshtml document object from an html buffer. But when the following code is executed it is invoking internet explorer window. Any body know how it can be prevented.
CString strHTMLCode = _T("<html><head><script language=\"JavaScript\">{top.location.href=\"index.php\"}</script></head><body></body></html>");
CComPtr<IHTMLDocument2> pDoc;
HRESULT hr = CoCreateInstance(CLSID_HTMLDocument, NULL, CLSCTX_INPROC_SERVER, IID_IHTMLDocument2, (void**)&pDoc);
SAFEARRAY* psa = SafeArrayCreateVector(VT_VARIANT, 0, 1);
VARIANT *param;
hr = SafeArrayAccessData(psa, (LPVOID*)¶m);
param->vt = VT_BSTR;
param->bstrVal = strHTMLCode.AllocSysString();
hr = pDoc->write(psa); //This line invoks internet explorer window.
hr = pDoc->close();
Thanks,
Shino
|
|
|
|
|
Is that enough TLAs in the title?;o)
I develop a CAD tool that generates multiple reports in RTF format, making heavy use of tables. My users want to be able to embed the reports on the CAD drawing.
However, if I use WordPad (write.exe, using RichEdit50W) to open the RTF file, the tables do not render correctly.
If, in WordPad again, I use 'Insert|Object|Create from file' on the RTF file it is embedded as a Word document and does render correctly.
Is there a RichEdit control I can use for embedding that will render properly? I'm not keen on introducing a dependence on Word.
Cheers.
|
|
|
|
|
Nevermind... I found one. Unsurprisingly, its made by the same folks who provided us with our report generator...
|
|
|
|
|
Hello All:
I have some hardware with given .DLL & .H files. I have created an MFC Application with Single Document Interface that have the following drop-down as follow.
File
-Regester.
-Write Register.
My goal in to have the CView display what is On the Register when select -Register or -Write Register.
Could someone please help direct me to the right path??
Here is the Header contains:
#include <string>
#ifdef BUILD_SCANPORT_DLL
#define DLLEXPORT2 __declspec(dllexport)
#else
#define DLLEXPORT2 __declspec(dllimport)
#endif
#define SETBIT 1
#define CLRBIT 0
#define CSR0 0x00 //scanner register locations
#define CSR1 0x01
DLLEXPORT2 int readreg(int reg); //some prototypes
DLLEXPORT2 void writereg(int reg, int value);
DLLEXPORT2 void writebit(int reg, int value, bool clear);
DLLEXPORT2 int checkwarmup();
DLLEXPORT2 float checkbattery();
typedef enum ScanStatus {
SCAN_OK,
SCAN_FAIL_FILE_ERROR,
SCAN_FAIL_USB_OPEN_ERROR,
SCAN_FAIL_USB_XFER_ERROR
};
DLLEXPORT2 ScanStatus scanport(bool doClean, bool doSharpen, const char* outFile);
Thanks in advance for your help
Eyungwah
|
|
|
|
|
Your question can be broken into a few parts.
Using class wizard, add menu handlers to your CMyDocument casll for (eg) IDM_REGISTER and IDM_WRITEREGISTER. In those handlers, do whatever the hardware thing you want to do is, and store the value that you'll want to display in eg CString m_MyValueToReport.
To then get your CMyView to update and display the new string, just call UpdateAllViews in your menu handler.
Then, in CMyView::OnDraw, just display the new string
void CMyView::OnDraw (CDC *pDC)
{
CMyDoc *pDoc = GetDocument ();
ASSERT(pDoc);
....
pDC->TextOut (x,y, pDoc->m_MyValueToReport);
....
}
Going back to the hardware stage, the header file doesn't look like there's any call saying "tell me what was recently written", so you're going to have to keep track of the value you write to the register. Beyond that, the help file / documentation that comes with the USB device/SDK should be of more help than us.
Good luck,
Iain.
|
|
|
|
|
Just moved to "new" PC and having this anoyning problem with Windoze beeping. It beeps when I open modal dialog and when I try to close parent window when modal dialog is on.
Standard MFC About dialog opens without beep and beeps when I try to close the parent window also.
I have no sound card in my PC and all sounds options are grayed out.
It looks like some kinda of Windoze error beep, but I cannot find nowhere how to disable it. I am about to clip the beeper off the motherboard!
Anybody has better idea?
Is this VC++ or Windows "problem"?
I am running Windows 2000 advanced server on Dells Dimension 1000.
The "problem " is only in VC++ 6.0 during debug run ( I have not tryed release) and
I have not have this problem on my "older" PC runing same software.
Thanks for reading.
Cheers
Vaclav
|
|
|
|
|
I used a big hammer. No sounds from my computer anymore.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
Vaclav_Sal wrote: Does size matter??
Depends on how much a smile you want to receive...
Oh wait, this isn't the soapbox!
Iain.
|
|
|
|
|
As expected - this is a Windoze "default" behavior when there is no sound card present in the PC.
It can be partially disabled hacking the registry.
Now I do not get "error beep" ( official name) when attempting to close parent window with modal dialog active.
I also got rid of "error beep" when mouse cursor changes to / from normal to hourglass.
I still get this beep when I open a modal dialog!
So - Windoze thinks that modal dialog is an error????
Cheers
Vaclav
PS Anybody got a spare sound card??
|
|
|
|
|
Hi,
i myself want to paint ( for example a border ) on a non client area of a window, would you please help me about this.
Thanks alot
|
|
|
|
|
The system will send you a WM_NCPAINT[^] message when the frame
needs to be repainted.
You can draw in the non-client areas of the window in response to
that message.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks for your answer,
but i dont know how to override OnNcPaint() function
i found this piece of code on internet:
CWindowDC dc(this);
CRect rectClient;
GetClientRect( rectClient );
CRect rectWindow;
GetWindowRect( rectWindow );
ScreenToClient( rectWindow );
rectClient.OffsetRect( -rectWindow.left, -rectWindow.top );
dc.ExcludeClipRect( rectClient );
Do you think it would help?
( i want to get non_client window )
thanks for your attention
|
|
|
|
|
Since you're using MFC, you can add a message handler just like you
would for any other message. You can use the class wizard in visual studio
or type it in by hand...
//Add to message map for the window class
ON_WM_NCPAINT()
...
// add to your window class declaration
afx_msg void OnNcPaint();
...
// Add handler method
void CMyWnd::OnNcPaint()
{
// do your non-client painting here
}
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Miss_F wrote: but i dont know how to override OnNcPaint() function
You're flopping around on the deck again dude
or
Miss_F wrote: i found this piece of code on internet:
Miss_F wrote: Do you think it would help?
How much code could a script kiddie paste if a script kiddie could paste code
you haven't told us what your problem is (apart from an inability to think clearly).
Pete O'Hanlon - the C# forum
|
|
|
|
|
Word.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Ah, you're not the only one that replied. Having witnessed your exposed underbelly next to the tackle box I am deciding not to byte.
Mark Salsbery wrote: Word.
I'll see your word and raise you seven.
|
|
|
|
|
i want to use the code which i copied here in the implementation of OnNcPaint() to get the non-client area of a one window and put a color for it, i want to know that with them i can work with non-client area or not?
(i am beginner in programming,)
sincerely
F.
|
|
|
|