|
|
|
Why i am geeting an error
"error C2146: syntax error : missing ';' before identifier 'xd_len'"
when including the header x25.h
|
|
|
|
|
maybe its because the definition of xd_len's type is not available...you may need to include some other headers....
|
|
|
|
|
Thanks
can you mention the headers plz
|
|
|
|
|
show the code where it crashes...
also, where does x25.h come from ?
|
|
|
|
|
Its minumum information for an error.
|
|
|
|
|
Hi,
I am starting a dialog based application from system's account.
The application is alive after my first logoff.
But when i try to logoff the user for the second time, the machine is not logging off..I could be able to logoff only after closing my application.
Why it happens..How can i log off the user for the second time without closing my application.
Thanks .
~ Selva
|
|
|
|
|
Dialog based application in system account?? Got my 1.
Never display or use windows in a desktop you can't control. At least so I understood the notions of HWINSTA and HDESK.
Nuclear launch detected
|
|
|
|
|
Hi,
What message will be sent to a running dialog based application when the user logs off the machine?
any help is appreciated.
Thanks.
~ Selva
|
|
|
|
|
|
Thanks 4 the reply steve.
But the dialog based application doesnt have WM_QUERYENDSESSION. I think SDI/MDI app has it.
Please correct me if i m wrong.
Thanks.
~ Selva
|
|
|
|
|
I use MSVC 6. In the ClassWizard select the "Class Info" tab and change the "Message filter" from "Dialog" to "Window". Then switch back to the "Message Maps" tab and add a handler for the WM_QUERYENDSESSION message. The following will be added to your message map: ON_WM_QUERYENDSESSION() . I have verifed that it works. The steps may be slightly different in later versions of MSVC.
Steve
|
|
|
|
|
Ya I got it. Thanks steve.
~ Selva
|
|
|
|
|
I want to get the following system information on a MessageBox in my VC++ (.exe) project.
1) Hard Disk : Serial No. and Manufacturer Name.
2) Motherboard : Serial No. and Manufacturer Name.
bijumon mathew
kattappana
|
|
|
|
|
|
bijumon Mathew wrote: 1) Hard Disk : Serial No. and Manufacturer Name.
Try here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
i have two view CMyViewOne,CMyViewTwo both derived from CBaseView and CBaseView is derived from CView.I have a function named "OnComplete" in CMyViewOne,in this function i want to send a Message to CMyViewTwo,by using SendMessage function.How to do it..? Like i want to establish a communication between both the views..
Thanks in before.
James
|
|
|
|
|
In document-view architectures views don't directly communicate; all communication occurs via the document. If view 1 needs to “talk” to view 2 then view 1 should update the document and the document will notify all applicable views, in this case view 2.
Steve
|
|
|
|
|
Thanks for the reply,Can you be more clear ,please. Like how to send the event to document,from there to respective view
|
|
|
|
|
I assume you're using MFC. From a view can can get access to its document via the GetDocument function the wizard generates for you in the view class. Your document class should provide functions to modify the state of the document. The function CDocument::UpdateAllViews on the document is used by the code in the document (or view) to inform all views (the pSender parameter can be used to exclude the sending view if required) of a change in the state of the document.
Steve
|
|
|
|
|
Hi,
I want to use a MFC checkbox (button style) with Bitmap displayed on it (or even better with a Bitmap and Text at the same time). In the Resource Editor I've set Bitmap to true for my button (.NET 2005). In OnInitDialog I've then tried m_myCeckBox.SetBitmap(::LoadBitmap(NULL, MAKEINTRESOURCE(IDB_BITMAP_Play))); . When I run my application only an empty button is shown. Can anybody give me a hint?
Thanks,
Frank.
|
|
|
|
|
|
I am currently having a problem debugging with some legacy VS c++ code that uses a .Net 1.1 dll and reg free com.
The c++ code is able to run and make calls to the .net assembly with reg free com (side by side assemblies). The problem is debugging in VS 6. The debugger stops at the first call to the .net code. If I disable the manifests and regasm /codebase my dll I am able to debug with no problem. Has anyone had any experience with this before. We would like to keep using the manifests and side by side while debugging to avoid confusing the other developers.
|
|
|
|
|