|
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)!
|
|
|
|
|
instead of using UpdateData(), you can send a user defined message back. Then in your dialog, in WindowProc, process your message by calling UpdateData().
|
|
|
|
|
You Cannot make a call to UpdateData from the Worker thread!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
I have a problem with combo box in VS.net , i have a simple combo box (DropList) and when the user clicks it it only shows one item per row,in order to select other items user has to click on the little scrollbars that appear next to item.
I want simply that it showed all 6 items.But can't do it.
Can anyone help?
Regards
m0n0
|
|
|
|
|
I think it is to resolve at design stage where you can set the dimensions of a combo up. Drag the size handle of the combo more down on your dialog or view.
|
|
|
|
|
problem is i can't resize it verticaly.I can only resize it horizontally
m0n0
|
|
|
|
|
Try to delete it and create new one, resizing at once to desired size. I suspect it is a bug in resource editor. I experienced the same.
|
|
|
|
|
Nope. it does not help.I don't understand what's the problem
i can resize it vertically only if it's type in properties is set to "Simple" , but thats not what i need i need "DropList" style
m0n0
|
|
|
|
|
Go to the resource view and click on the dropdown button of the combo box. You can resize it vertically.
|
|
|
|
|
I have a modeless dialog, when one of its button is pressed, I called a subroutine to load a file. Since the operation is lengthy, I want to give user some feedback that sth is going on. So I want to show a text string. I did the following:
<quote>
CStatic textProgress;
textProgress.Create(_T("Image loading..."), WS_CHILD | WS_VISIBLE|SS_CENTER,
CRect(CPoint(rectDlg.left+nOffset, rectDlg.CenterPoint().y-2*nOffset),
CSize(rectDlg.Width()-2*nOffset, nOffset)),
pParent);
but when the system runs, I saw the rectangle at the position specified, but no text. why?
Thanks for any help!
|
|
|
|
|
Try this instead of pParent.
Haakon S.
A sure cure for seasickness is to sit under a tree.
Spike Milligan
|
|
|
|
|
I don't have access to "this", since it's not a member function, but a global function.
I also have a CProgressCtrl in this global function, it's being showed ok.
|
|
|
|