|
Hi,
I have a really annoying problem. When I build my application (which is quite large), the build succeeds and I press F5 to start debugging it, Visual Studio .NET 2003 always gives me this MessageBox:
These project configuration(s) are out of date:
ApplicationName - Debug Win32
Would you like to build them?
If I select Yes, the resources are rebuilt but nothing else. There are multiple resource files in this project BTW. Has this happened to anyone and are there any solutions?
Best regards,
Daniel
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
Check the modified dates of your .rc files and any external graphics (.bmp, .ico, etc.). One of those files probably has a date that's in the future.
--Mike--
LINKS~! Ericahist updated! | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ
Strange things are afoot at the U+004B U+20DD
|
|
|
|
|
Thanks for the suggestion Mike, however I can't find any resource file with modified date in the future. Any other ideas?
Best regards,
Daniel
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
Try using 'touch' i.e. http://www.codeproject.com/file/timestamp.asp to change the time stamp to now of all the files, including any that may be in directories other than the project directory.
If that fails do you have a macro running during compilation that changes a file?
i had a similar problem during Windows 3.1 days when the files existed on a server, I never figured it out!
Good luck.
"An expert is a person who has made all the mistakes that can be made in a very narrow field." - Neils Bohr
|
|
|
|
|
I had the same problem once. It was because my computer's date was set to the wrong year.
Kevin Shaffer
kshaff03@msn.com
|
|
|
|
|
Hi, i have got 1 question.
i am searching for an application, that works as a nt service. this programm must be a server which replies to a client.
for example the server works as a service and i type in my client "1", then the server reboots the computer. i know that you must write some privilegs, can someone help me ? I am a noob in this section and dont wanna waste all my time on this exercise. i just wanna have the source codes or examples
i dont find correct tuts here, because they doesnt work at all. i have studio .NET 2003 with C++ in it. please help me.
THX
|
|
|
|
|
Hi,
im trying to write a function in C++ which will create a virtual directory in IIS 5.0. Can anyone offer some assistance, I am new to programmatically dealing with IIS.
Kind regards,
BMK.
|
|
|
|
|
Communicate with the IIS ADMIN COM object, or execute windows scripting (VBScript) to create them. See this in MSDN - Internet Information Server Technical Articles : Automating Web Site Administration Using IIS
|
|
|
|
|
Thanks Blake, I had a look at the stuff on msdn previously and understand how to create virtual directories from the command line and using VBScript, but there does not seem to be any samples or snippets of C++ code which can create virtual directories without the need to go near VBScript or the command line... ?? Do you know where I could see sample C++ code alone which creates Virtual directories in IIS?
|
|
|
|
|
Something weird is happening with my 3d apps.
I've downloaded some 2d/3d tutorials (like drunken hyena). Now, when I run the already compiled executables that come with them, I get a framerate well over 200 and text is rendered just fine. But after recompiling it myself (without changing anything to the code or project settings), framerate drops to 60 and some glitches appear when rendering text.
Anyone knows what's going on here?
btw: interval=D3DPRESENT_INTERVAL_IMMEDIATE
dx9.0c release
using: [VISUAL STUDIO .NET] [WINXP PRO SP2]
|
|
|
|
|
Are you compiling the project in release or debug mode?
-- Rocky Dean Pulley
|
|
|
|
|
dx9.0c release
release or debug, doesn't matter, same problem.
60 is the default rate, though, but I clearly state D3DPRESENT_INTERVAL_IMMEDIATE as presentation interval.
using: [VISUAL STUDIO .NET] [WINXP PRO SP2]
|
|
|
|
|
Since the downloaded executables run fine on your system, it doesn't sound like a driver problem, so we can eliminate that from consideration. So the prime candidate is the build step itself.
When you build the apps, is there a radical difference in the sizes of the executables that you build vs. the size of the downloaded executables? It may be that when you link, you're unknowingly linking with the DirectX Debug libraries.
Although it seems that you've addressed this issue, it may not be the case. This is independent of your main Source File project settings, and has to be manually configured under the Link tab in the Project Settings. So even if your project is built in Release mode, this doesn't guarantee that you're linking with the DirectX Release libraries.
The executable file sizes should be the telltale sign of which DirectX libraries you're linking with.
Also, as a side note, the PresentationInterval is a device capability, not something you can set explicitly. You may be thinking of the SWAPEFFECT presentation parameter used when creating a 3D Device.
Bob Ciora
|
|
|
|
|
I installed the new sdk and it works fine now. december version proly has a bug then on some systems.
using: [VISUAL STUDIO .NET] [WINXP PRO SP2]
|
|
|
|
|
I've developed an application that manages Multicast UDP messages using Winsock sockets.
Now I've to use Winsock2 instead of Winsock.
I've changed the include file but the following code
doesn't compile:
ip_mreq l_IpMulticastReq;
l_IpMulticastReq.imr_multiaddr.s_addr = l_pScktReceiver->m_dwMulticastRxAddress;
l_IpMulticastReq.imr_interface.s_addr = INADDR_ANY;
l_iRetVal = setsockopt(l_pScktReceiver->m_scktReceiver,
IPPROTO_IP,
IP_ADD_MEMBERSHIP,
(char*)&l_IpMulticastReq,
sizeof(ip_mreq));
How can I join a multicast gruop using Winsock2 functions ???
Thanks a lot.
|
|
|
|
|
I find some difficulty with ASSERT macro. I know the use of ASSERT, but what should i do to change (redefine) the functionality of ASSERT macro. c below
//file1.cpp
#include "file1.h"
void MyFunc()
{
//...
ASSERT(MyExpr);
//...
}
//EOF
//===============
//file2.cpp
#include "file1.h"
#include "file2.h"
void MyFoo()
{
//...
MyFunc();
//...
}
In this context if the MyExpr in ASSERT of file1.cpp does not evaluate to true the program crashes with Abrot retry cancel option .
But i want to change this behaviour like writing the error value into a file and exit properly.
BUT I SHOULD NOT TOUCH THE FILE1.CPP. I should do the change in file2.cpp or file2.h such that it changes the functionality of ASSERT with out banging. I WANT TO BE IN DEBUG MODE ALSO.:->
|
|
|
|
|
Are you talking about redefining the ASSERT() macro to do something else?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Ya u are right David . I want to change ASSERT
i did
#ifdef ASSERT
#undef ASSERT
#define ASSERT(x) blah blah..
#endif
But deos not work Y
|
|
|
|
|
Make sure you are redefining the macro after all of the MFC-related header files have been included. You can also compile with the /P option to see how the preprocessor expanded the macro.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Your only option (I think) of actually changing the ASSERT functionality without editing the other file would be to get the address of _CrtDebugBreak or whatever presents the A/R/I dialog box, and then somehow emit your own code there. Extremely bad idea if you ask me.
A far better solution would be to copy the function you're not supposed to touch, rename it and make a few changes here and there.
|
|
|
|
|
Hi
After making some changes in my code I cannot get back to "Design" modus in my VC++ project. (because of problems with the GetObject function I have to un- define and then -re define it during some other fuction calls)
I get an error message saying:
"An error occurred while loading the document.Fix the error, and then try loading the document again. The error message follows:<br />
MCppCodeDomParser Error Line 98, Column 4---unexpected token for a `term´
I can compile and run the application, but I cannot make any changes in the GUI using the visual interface.
Is there a way to "fix the error" as the errormessage suggests?
regards
doneirik
|
|
|
|
|
I'd like to set auto power-up time and date which will turn-on computer on desired time. Is there some way how to do this programatically instead of manual settings in the BIOS ?
Thank you !
rrrado
|
|
|
|
|
Hi all. I want to create a subwindow in a window, any idea how to do it?
|
|
|
|
|
Your question is difficult - need more detail. Do you have an HWND or a CWnd as your parent?
Joel Holdsworth
Wanna give me a job this summer?
Check out my online CV and project history[^]
|
|
|
|
|
thnx for your concern. I have an MDI application which shows some opengl scenes. From the mainframe, i have several views from the menu. What i wanted was when i click an option from the menu, a different view appears but which need not necessarily show opengl scenes. maybe some blank window with some text in it. (data used comes from the previous opengl scene). Now since i am not able to do this, i am planning to use a subwindow which appears in the mainwindow. Ie a blank window (small one at top corner of screen)?? Any suggestion....
|
|
|
|