|
The server is an asynchronous server.
|
|
|
|
|
Hi,
I am using Visual studio .NET 2002. Sometimes when I try opening a cpp file, my Visual studio seems to be hanging. It will take 7-8 mins to open the file.
SO what I usually do is I will delete the .ncb file (the database file for the solution).
Then the performance will be good enough at the cost of not getting the drop downs in the editor (list of methods, data members etc).
Any ideas as to why should it hang?
Thanks
|
|
|
|
|
PrashantJ wrote:
Any ideas as to why should it hang?
You require more Memory in your Computer!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Upgrade to microsoft less hanging version, like Visual Studio 6.0
My idea is to create a new project by wizard (not a empty one) and remove the cpp and h from it, and add your files to the project. And then compile the project. Just try it, it works many times for me.
http://www.priyank.in/
|
|
|
|
|
Hey all,
I am new to this forum. Wish I was good at programming , so i cud have posted the solutions...unfortunately, I am not...Instead I have my own query....and am desperately seeking help...
I have this assignment submission next week. I have no idea about the logic for this assignment. My assignment is as follows:
*********************************************
Text segmentation from images with scenery + text. Obtain at least 10 images from newspapers, magazines etc. Some should be color. (3 min) Scan them as necessary. Devise three segmentation techniques to separate letters from background. Methods should be essentially automatic in operation. Methods: may include :Thresholding Local or Global, Color. Geometric Features, Texture
*************************************************
Can anyone help me out with the logic for this program? This thing is in C++. All I have done is binarise the input image.But I dont know how to proceed. Please help me out guys.
Cheers,
Raj
|
|
|
|
|
|
I write a console program that connect 2 computers with socket, like a chat program. I try to use the commands that use windows socket v1.1 only because I don't sure Windows NT Server 3.51 support windows socket v2 or not. When I test with 2 Windows XP, it works very well. But when I test with a Windows XP and a Windows NT Server 3.51, It doesn't work both Windows XP be a server and a client. Client side tells me "Could not get host by address", but no run time error.
I think the problem is compiling. I don't know how to do. Please give me some suggestions about setting the compiler or the other method to solve this problem. Thank you very much.
|
|
|
|
|
Does anyone here want an article explaining how to write a 2D graphics game engine using DirectX 9? I don't have alot of time but if someone wants I can spare some time to write an article. Need a reply if you want me to make the article.
IM PROUD TO BE A GMAIL;
|
|
|
|
|
Dirext X is a pretty hard field atleast for me, and if you can write articles on it, every body would be interested on it. B'caz articles are not shown here for a day, so future members of CP can also got the benefit of your expertise.
tom_dx wrote:
don't have alot of time
No body at CP have time, all are big programmers, but to write an article is a way to increase your knowledge also about that subject.
My request on Direct X is a very simple article for that can be understand by fools like me, and covers the advanced details of Direct X on capturing video from various sources, like multiples camera, desktops, etc.
http://www.priyank.in/
|
|
|
|
|
|
tom_dx wrote:
Need a reply if you want me to make the article
Reply you want, Reply you get
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Yes, please write the article.
If you could get a slant towards 2D graphics that won't be used as a game.
1) alpha blending
2) lockable framerate so that in a non-game application it doesn't use 100% cpu
I could go on.
I tried doing some 2D stuff in DX9 but went back to DX7 since you can still get an HDC to the surface and draw to it that way.
BTW by interst is in doing graphics for an HTPC.
|
|
|
|
|
An integer variable in an application is overwritten somehow, but I do not have a clue as to where it is occurring.
how ca I best use the integrated debugger to track this kind of problem down?
|
|
|
|
|
These kind of things happen due to buffer overflow.
To find out where this is happening, why don't you put a breakpoint condition, to break when the value of that variable changes.
You can set this break point from the breakpoints dialog box in VC++6.
|
|
|
|
|
hi
i had the problem in my application.i had made the library and include in the project from menu(project->addtotheproject->files) it workds perfectaly for the debug and release builds only for "use mfc shared dll" more below.
But, from the (project->settings) menu when i choose the 'use MFC in the static library' in the drop down list of "microsoft foundation classes" it gives the errors which are
msvcrt.lib(MSVCRT.dll) : error LNK2005: __setmbcp already defined in libcmtd.lib(mbctype.obj)
LINK : warning LNK4098: defaultlib "mfc42.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "mfcs42.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/CH3.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
CH3.exe - 2 error(s), 3 warning(s)
can anybody tell me what to do.
ddd
|
|
|
|
|
Your statically linked library should use the same MFC model as your application.
You could MAYBE get away with the statically linked library using MFC as static, but you have to add special macros at the beginning of each function. You probably won't get the program to run correctly if you mix a static link library built using MFC as shared with an application built using MFC as static.
Go reset the setting for your static link library to match those of your EXE.
|
|
|
|
|
my statically linked library is using the same MFC model.i had build the library using the "use mfc as static library" from the prject setting menu. there are no errors or warnings in that.
but still it gives the same errors as i stated earlier.
ddd
|
|
|
|
|
It seems you have the debug library linked with the release exe or vice versa.
Make sure you did not include the debug version of your library instead of the release version with the release version of your program.
The "libcmtd.lib" makes me think you got the debug version associated with the other libraries which are release versions.
I think that name roughly translates as "Library C Multi-Threaded? Debug".
Which also reminds me, if your program is going to be multi-threaded, make sure your libraries are set to be multi-threaded as well.
|
|
|
|
|
i first "build" the library using debug as option and then build the library using the release as option.
in my application where i had used the library is .lib file present in release folder,and then i build my application which gives errors.
tell me what that problem is.
my application is not multithreaded.
ddd
|
|
|
|
|
1. I still think that the debug version of your EXE might be trying to use the release version of your library.
You need to sort that out.
2. Make sure one is not using UNICODE and the other is not.
3. If you are using the MBCS, make sure the library and EXE both match.
|
|
|
|
|
hi
it worked thank u.
if we had two libraries then add then by placing comma(,) between them in both 'library path' and other or what to do.
ddd
|
|
|
|
|
You can have multiple library paths and include paths.
Separate multiple path and definitions items with comma ',' character.
Multiple librariy file names on the "object/library modules" are separated with a space ' ' character.
|
|
|
|
|
through ur mentioned instructions i made the exe of release by including lib files .i had made his entry in the registry autorun key that is
hkey_localmachine\software\microsoft\currentversion\run.(dont consider the slashed and name cases) when computer starts it gives the error that cannot read from memeoy location and some memory adress is shown on dialog box.
i had used the same path to check another exe from release folder of another application it works fine.
what is that problem had exe not been made correctaly or what.
ddd
|
|
|
|
|
Sounds like a BUG in your program to me.
You need to check for uninitialized variables or pointers that are still being used that are no longer good.
Make sure you are compiling at warning level 4 and don't ignore ANYTHING.
|
|
|
|
|
I implemented working thread ..
UINT CRTFinalDlg::run(LPVOID p)
{
CRTFinalDlg * me = (CRTFinalDlg *)p;
me->run();
return 0;
}
In that working thread (run) I am using UpdateData functions ... and the program compiles prefectly, but when I'm starting it I'm getting ::
Debug Assertion Failure!
File: wincore.cpp
Line: 884
Pressing on ignore button repeats the Assert but in the background I can see that aplication runs well.
So, the question is :: what should I write instead of UpdateData(T/F)???
Just to say that application is Dialog based (so it has only one window)!
|
|
|
|