|
Hello,
I have ATL DLL Project with MFC support in VS2003. During one of build I got the next error: ‘error LNK2005: _DllMain@12 already defined in MSVCRT.lib’. I’ve figured out the same information was founded in mfcs71.lib. How to fix this problem? Please help!
Regards,
Leonid
|
|
|
|
|
I want to know (programatically, of course: I am not blind!) if my application is displaying a MessageBox() or otherwise engaged in a modal dialog.
The context of the question is this: I am in a CView* and I want to do something to the user interface. I need to know if my application is "busy" waiting for a modal dialog before I can proceed with my changes ???
I have tried GetActiveView() and it tells me if "this" view is the current "top" view. (I run modal loops in my views) so this is coverd.
I am about to try GetFocus() then GetOwnerWnd()...
Maybe someone already has the answer??
|
|
|
|
|
I got it, I think!
GetLastActivePopup()
I wonder where I was for the last XX years, I tought I knew WIN32.
It goes to show, you learn something every day!
|
|
|
|
|
OOps. this is not good: GetLastActivePopup() still returns my VIEW's HWND instead of that of the MessageBox()
I guess I can either (a) keep looking or (b) find someone smarter than me to give me the answer!
|
|
|
|
|
ummmmm
why dont u set a variable in the calling view or doc class when the dialog pops up and clear it when it goes away?
"there is no spoon" biz stuff about me
|
|
|
|
|
I tapught about that. The problem is that ma application has maybe 100 views or screens, and I want beautiful code, not a quick hack.
Whatever would force me to spend lots of time working like a robot is not a great idea. I may capture all invokation of message boxes and dialog boxes, but as I (or someone else) maintain my applicatio, I am scared to "forget" about it.
If I could use WIN32 to tell me is a messagebox is up and running, I write once and can rely on that no matter how my stuff is written, putting the logic in a base-class somewhere.
|
|
|
|
|
What did they do to VC++? All my VC++ 6 MFC program doesn't work properly. I tried to create a simple Hello World console program in VC++ .net and it gives cout not define.(Got stdio to work but I can't seem to get iostream or iostream.h to work)
|
|
|
|
|
With <iostream>
I get a lot of syntax error with cerrno and stdio. Missing { and ':'
|
|
|
|
|
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\cerrno(16): error C2143: syntax error : missing '{' before ':'
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\cerrno(16): error C2059: syntax error : ':'
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\cstdio(15): error C2143: syntax error : missing '{' before ':'
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\cstdio(15): error C2143: syntax error : missing '{' before ':'
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\cstdlib(15): error C2143: syntax error : missing '{' before ':'
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\cstdlib(15): error C2059: syntax error : ':'
|
|
|
|
|
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World" << endl;
}
this will output as:
Hello World
ALL YOUR BASE ARE BELONG TO MICROSOFT!
Demonware Studios Leader
|
|
|
|
|
Nope. Don't you need to #include <iostream>
Currently this is what I have
#include <iostream>
using namespace std;
void main()
{
cout << "Hello World." << endl;
}
But getting a lot of
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\cerrno(16): error C2143: syntax error : missing '{' before ':'
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\cerrno(16): error C2059: syntax error : ':'
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\cstdlib(15): error C2143: syntax error : missing '{' before ':'
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\cstdlib(15): error C2059: syntax error : ':'
|
|
|
|
|
Got this to work
#include <iostream>
int main(){
std::cout << "Hello World" << std::endl;
}
|
|
|
|
|
I forgot to check th 'do not treat carrots as tags box' :P
so this is what i meant
#include <iostream>
ALL YOUR BASE ARE BELONG TO MICROSOFT!
Demonware Studios Leader
|
|
|
|
|
I want to invoke the context help question '?' mark on the title bar without the user clicking on it, how do I do that - can't find any info anyware, is there a windows message I can send to the dialog for it to activate ?
thanks,
lee.
|
|
|
|
|
k, got some windows related questions here,
1.I have this folder:
C:\Documents and Settings\my username(hidden for obvious reasons)\Local Settings\Temporary Internet Files
why can't I delete it?
1.if I go into cmd.exe and delete it it works but after that it is created right away. Why?
2.there are some files in this directory that I can delete from explorer.exe but not from cmd.exe or from my own program. Why? and how can I delete these files from my own program that I make and I want to delete them from it?
|
|
|
|
|
1) You may need to make sure they are not set to read-only!
2) Your security access may not be set to allow you to delete them!
3) cmd.exe did not delete them it just acted like it did (for some reason).
Sure you could try to write your own program to delete them, but the problem that is stoping you will still be there and it should still not work.
INTP
|
|
|
|
|
Spiritofamerica wrote:
1.if I go into cmd.exe and delete it it works but after that it is created right away. Why?
It's a special "system" folder. Why is this folder troubling you?
Spiritofamerica wrote:
2.there are some files in this directory that I can delete from explorer.exe but not from cmd.exe or from my own program. Why? and how can I delete these files from my own program that I make and I want to delete them from it?
They may be marked as read-only, hidden, or system. It may also be a permission (or lack thereof) issue.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
When i compiled my program, the following error occur:
PlaySound error LNK2019: unresolved external symbol "public: __thiscall CCapture::CCapture(void)" (??0CCapture@@QAE@XZ) referenced in function _main
CCapture is just an object and I create the CCapture object in another .cpp.
I have already link the two .cpp files and included the .h files. However, the problem still exist.
How can I solve this problem?
Thank you!
|
|
|
|
|
Sobero wrote:
How can I solve this problem?
You defined a constructor in the class defintion, but you haven't written the body of it - CCapture::CCapture()
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I am migrating my VC6.0 code to VC .NET now. But I got some link errors because some export functions I used have CString as parameters. Is there any ways to get around of this, like any project settings? Thank you.
will
|
|
|
|
|
I am getting CString problem also. I am getting Assertion Failed.
|
|
|
|
|
I am trying to implement the overlay blend mode as in photoshop. I have already implemented some blend modes(screen , multiply etc). Ovrlay blend mode is a combination of Multiply and screen blends depending on the base color this i found out. But when should i apply multiply and when should i apply Screen. What are the color values of the base, Can Anybody give me the info.
Thanks, Vikash
|
|
|
|
|
have a look at the filters section in the SVG spec - iirc this is described quite well and may be of help. http://www.w3.org/Graphics/SVG/
|
|
|
|
|
Thanks I will try that but i am open to any more suggestions
|
|
|
|
|
I just received a call to debug a TAPI problem.
The company that created the control no longer exists.
Problem: When the VB App finished making a call and downloading via modem, it closes the program without giving a reason. This only occurs on machines running Win2000 or WinXP. The program was origanaly written and tested on Win2000 (also tested on Win3.1, Win95 and Win98).
Could this have something to do with Windows security updates?
Any ideas would be helpfull.
NOTE: I already left this same message on the VB forum.
INTP
|
|
|
|