|
Hi,
I am thinking about installing DirectX9 SDK, but I am affraid about the performance impact.
I suppose the SDK comme will some "debug feature enabled" versions of DirectX libs.
Will those libs be used by commercial applications (i.e. games) instead of the normal end user ones and will it impact speed or stability ?
I am using Visual C++ 6.0 (SP6) on XP Home SP2.
Thanks for your advices/tips,
Th.
-- modified at 9:16 Friday 2nd September, 2005
|
|
|
|
|
Perhaps you may re-install single user DirectX after the SDK?
Eric
"If it is not broken, do not fix it"
|
|
|
|
|
After checking, it seems that you have a choice in DirectX control panel applet to use retail or debug versions.
Be aware that there are settings for many modules (Direct Input, D3D, ...).
But... (you'll hate me ) after setting everything to "retail" I ran DiagFX whichfire me a warning about the fact I used a lib (only one) indebug mode and that it may be slower...
My advice: Use a different computer for coding and playing
Beside your issue, it is always tempting to use beta untested features on a development computer, and most very optimised games do not like this !
Good luck,
Eric
"If it is not broken, do not fix it"
|
|
|
|
|
I've got a Visual Studio C++ 6.0 project which I am now trying to get working in VC++ .NET. I've encountered a problem with some file handling code which originally used <fstream.h>, I've changed this to use <fstream> however I am now encountering compilation errors when I'm accessing the file, e.g.
fileA.seekg ( EIGHTWORDS, ios::seek_dir::cur ) ;
it complains about the ios::seek_dir::cur part. Does anyone know what the equivelent 'flag' is in .NET and also where I can get a list of all other flags (MSDN doesn't seem to be much use on this)
TIA,
Andy
|
|
|
|
|
what is the error message ?
did you try prefixing with std:: ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Thanks for your reply, the exact message I get is:
"error C2510 : 'seek_dir' : left of '::' must be a class/struct/union"
I've tried putting std before it but that has no effect.
|
|
|
|
|
looking at the MSDN[^], you should use ios::cur directly...
the error message tells you that you apply the operator :: to a non object identifier (seek_dir is not a class but an enum)...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
yep your right, thank you for helping me.
|
|
|
|
|
why i'm not able to find an UDP client server programs in "Pairs".. all samples i got arein the name.. "SendRecieve" in the same program...(or am i in a confused state?? ) can any one give me a link for "SIMPLE Client/Server UDP program" ??
in MFC ?
thanks
V
|
|
|
|
|
|
Hi All
I used Windows management Instrumentation, registry access (used RegOpenKeyEx etc.) , & few APIs to build an application.
Now problem is that when i run the program then after 5-10 minutes dialog box(of exe) disappeares automatically.
What should I do to prevent this problem.
Please reply ..
Thanks & Regards.
|
|
|
|
|
I've never found such an strange behavior like that. Do you have any piece of code candidate that we could take a look?
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
Information related to program are as as follows
1) Program is written in VC++ 6.0.
2) WMI Classes for retrieving system hardware & software Inforamation.
3) Used Registry keys for information retrieval,(here I used RegOpenKeyEx(),RegEnumVale(), RegEnumKey() etc.)
4) Used some APIs for information retrieva(like OS Version, Computer Name, Number of processors etc.)
5) All the property pages are added to sheet in OnInitDialog() function.
6) Also everything is written in OnInitDialog().
7) For every resource(S/W or H/W) a linked list is created .
8) node of Linked list is structure whose attributes are TCHAR and _bstr_t type
9)structures contains all the information retrieved by either WMI, or by Registry or by APIs.
10) Finally values are displayed on property pages through structures.
* I have checked task manager there is no instance of program after termination.
* Time span is not more than 10 mins.
*Program is even terminated when i am continually clicking on varios controls, and tabs of dialog box.
*Also program is even terminated when there are no activities being done on the PC
Please reply .
Thanks
|
|
|
|
|
You'll have to Debug and put several breakoints over the app to know where can it be the problem. You also can write a log file a write it in severela points of the applications where you suspect that there's the problem.
MArc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
Does this only happen in your release build? How about when you run the debug version under the debugger and leave it running?
I've seen an app just disappear before as a result of stack corruption or overflow. In one case, someone was appending characters to a char buffer or STL string (can't remember which) in a loop. Problem was, they forgot to initialize the loop count. Thus, the loop kept going in the release build and the buffer was seriously overrun. In another case, stack overflow occurred when a function was being called repeatedly/recursively in response to network traffic.
|
|
|
|
|
rajeevktripathi wrote:
Now problem is that when i run the program then after 5-10 minutes dialog box(of exe) disappeares automatically.
Your Executable may failing due to one or more reason, try to debug your Executable thats the only way to find solution!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
This is a simple question. I have a dialog based application window and i want to resize it before displayed on the screen. I used the PreCreateWindow and the SetWindowPos within OnInitDialog but without success. What i'm doing wrong?
|
|
|
|
|
if you are into OnInitDialog, the dialog is already created and about to be displayed...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
You have to resize it when it's already created: OnInitDialog is a good place. Try MoveWindow if SetWindowPos doesn't work.
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
calling the SetWindowPos() at the OnInitDialog should do!.....
can u show us the code?
cheerz....
"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
|
|
|
|
|
I had pass wrong value to the pWndInsertAfter parameter to SetWindowPos . Thans for your time.
|
|
|
|
|
I'm trying to use _strnextc from C Run-Time Library in Visual C++ v6 code, but compiler says is undeclared - I have included the relevant .h file, but looks like something isn't getting #defined to access this function. I am building a statically linked single threaded MFC ptroject.
Can anyone help ?
Thanks,
Grant.
|
|
|
|
|
Hi ,
I am totally new to VC++ .NET environment.
My application is of 3 parts; a static library built in VC++ 6, the application exe - a VC++6 console application and a MFC Extension DLL again from VC6. But all these I have included in VC.NET solution. The static library is used by both the exe as well as the DLL.
I was forced to convert the DLL to Managed Extension as I was using XMLReader.
As i am using a class declared in the static library in the DLL, i get a linking error:
fl_rule_engine error LNK2020: unresolved token (0A00000C) CBinaryField.__dtor
Any help will be much appreciated!!!
This is my first question and I hope I get some answers.
Thanks
smilerays
|
|
|
|
|
Hallo comunity,
where can i download the WebBrowserControl to add them to my dialog to show html files from the web?
I dont have one in my Visual Studio 6!
thanx
mirso
|
|
|
|
|
Isn't it in the ActiveX list already installed (Menu "Project > Add to Project > Components and Control > Registered ActiveX Components")?
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|