|
this is the exact error (sorry for my mistake before)it happens only with stdafx.h (precompiled header)
unexpected #endif
The #endif directive has no matching #if, #ifdef, or #ifndef directive. Be sure each #endif has a matching directive. The following sample generates C1020:
// C1020.cpp
// uncomment the below line to resolve the error
// #if 1
#endif // C1020
int main() {
}
|
|
|
|
|
Dear All,
I want to control the operations taking place on a folder in my application (for Windows 2000). I suppose it can be with help of ICopyHook.
Can somebody provide me some relevant code for this ?
Or any sample implementing ICopyHook.
Thanks in Advance.
Lalit
|
|
|
|
|
Hi all
How do you calculate the inverse of a 6x6 matrix (assuming it exists). I'm working on my final year project which requires me to do all sorts of matrix calculations...and I'm stuck at this one. I've tried searching in the numerical recipes book but couldn't find one. Thanks for your help
|
|
|
|
|
|
Easiest way (IMO) would be to transform it in a diagonal matrix. If A is your matrix, then look for the eigenvectors and stuff and get P and D (D is diagonal) so that A=(P)(D)(P-1) where (P-1) is the inverse of (P). Search and the web a way to diag your matrice, there are many algorithm to do it, provided that your original matrix can be inverted (but if it can be inverted, it can be made diagonal).
And then (A-1)=(P)(D-1)(P-1), and D-1 is very easy to find, just make 1/dii, dii being the coordinates on the diagonal.
~RaGE();
|
|
|
|
|
|
Hi guys
What I have to do to execute just once an application?
My problem is that I've tried the below code in the initinstace of the app but I have 2 problems
First is that the second time I start the app, the window of the app doesn't get the focus.
And another more complicated is that sometimes my app is crashing and when this happens it never can start again.
Why do you suggest me?
Best Regards
::CreateMutex(NULL,TRUE,m_pszExeName);
if (GetLastError()==ERROR_ALREADY_EXISTS)
{
CWnd *pPrevWnd = CWnd::GetDesktopWindow()->GetWindow(GW_CHILD);
while (pPrevWnd) {
if (::GetProp(pPrevWnd->GetSafeHwnd(),m_pszExeName)) {
if (pPrevWnd->IsIconic())
pPrevWnd->ShowWindow(SW_RESTORE);
pPrevWnd->SetForegroundWindow();
pPrevWnd->GetLastActivePopup()->SetForegroundWindow();
return FALSE;
}
pPrevWnd = pPrevWnd->GetWindow(GW_HWNDNEXT);
}
return FALSE;
}
|
|
|
|
|
|
Consult these two resources:
http://www.naughter.com/sinstance.html
http://www.flounder.com/nomultiples.htm
|
|
|
|
|
Thank you guys!!!!
That's perfect!!!!
Best Regards
Dr.Pi
|
|
|
|
|
I have an MFC application with an atl object. Now I want to know if a user started the application or if the application was started by the scum, so I can (amongst others) deside whether to show or hide the windows of the aplication. Anyone knows how to do this ?
|
|
|
|
|
Never mind, I already found what I was looking for: AfxOleGetUserCtrl().
|
|
|
|
|
I want to make a dialog box similar to the one windows has to do the login when you are configured to be in a domain.
I want to make a window with a Edit Box for the username, an onter Edit Box for the Password, and a Bombo Box with the available Domains: the Domain (to connect to a domain controller) and the ComputerName (to log on the local machine).
I have built the window (the UI) but I dont know how to get the available domains in windows NT.
Can anyone help me?
|
|
|
|
|
Does NetServerEnum() help?
|
|
|
|
|
I want to know how can I refer to a variable in SQL like
CString var_tel = '123456';
SqlString = "SELECT * FROM test WHERE Telephone = var_tel";
thx
|
|
|
|
|
SqlString = "SELECT * FROM test WHERE Telephone= '" + var_tel + "'";
|
|
|
|
|
Thx a lot
|
|
|
|
|
Hi, I urgently need a method to sub class a ActiveX control so that its old properties are still available + add some other new features to be added.
I cannot change the old ActiveX control as it a 3rd party control.
Please help
Mayank Goyal
|
|
|
|
|
Hi,
I wrote down a post some weeks ago but I can't find it so I'm sorry of having opened another one. Also, I'm sorry to have duplicated the post in the section managed c++, but after having clicked on 'submit' I noticed that there was a section visual c++ (which fits better whit my question).The problem is that I'm trying to exctrat some information (like codec name, lenght, width, ecc. ecc.) from an avi files. Actually I can do everything but the codec information. After having read from www.fourcc.org and some from msdn.com (http://msdn.microsoft.com/library/default.asp?url=/library/EN-US/multimed/mmstr_1xf6.asp)
, I've understood that I have to use vfw32.h library. I can exctrat only the information that an avi's codec is:
Stream Info:
Type Codec
vids divx
How can I match the information divx to the exact versione?? Moreover, How can i distinguish from divx an xvid?? Do I have to create a structure with all the existent codec inside??
Well, it's all ... I wanna thank you everyone is going to answer me.
Francesco
ps: If u want some more informations, please just ask me
|
|
|
|
|
cbiacca wrote:
I wrote down a post some weeks ago but I can't find it so I'm sorry of having opened another one
You mean these posts ?[^]
~RaGE();
|
|
|
|
|
Hi,
I am looking up a Call ID Class ,but it is very pity . I find that there are many Call ID source program ,but they is for VB ,not for VC. Can you help me ?
Thank you very much !
|
|
|
|
|
What is a Call ID class?
Regards,
Melwyn
|
|
|
|
|
When somebody call you ,you can see his or her phone number .that's call ID, This need the support of telecom ,and modem or some other device .at the same time ,the program can catch the phone number by modem ,Now I am looking up the program for VC.
|
|
|
|
|
Thanks for explaining the concept.
If you have the program in VB, it shouldn't be too difficult to convert it to VC++.
|
|
|
|
|
Hello Guys!!
I want to attach a license expiry functionality to my Win 32 Application. I just want to allow the user to use the application for a fixed period of time.
For this to work I think I have to make an entry in the registry the first time my application is run and use the date from there to compare with the system date.I did not find any method in MSDN for this.
Can anybody guide me in this regard if at all I am going on the right track.
Regards,
Abhi
|
|
|
|