|
I wonder what MFC is capable of?
Can it create full-screen 3D games?
Have anyone ever played games on
RealOne Arcade? Are they made from
MFC? Anyone knows what technology do
they use?
Thanks
|
|
|
|
|
Use Direct3D.
You can combine DX with MFC without any problems.
You can also use some 2D/3D library, but remember that it will run slower (software rendering).
using: [VISUAL STUDIO 6.0 sp5] [WIN98/2]
|
|
|
|
|
So, you mean the DirectX can combine with
MFC? Is DirectX a language or a platform?
How do you combine them together? Do you
just add DirectX code into the MFC project?
Thanks.
|
|
|
|
|
Direct-X is a free MS API. Almost every commercial game today is created using DX.
To develop in DX, you need C++ and an understanding of COM objects. There's a DX for visual basic also, but it's very limited and you should not use that one.
If you want to develop into DX, you need to download the DX SDK from the microsoft site.
There's an example, that comes with the SDK, on how to combine D3D into an MFC app. It's pretty straightforward.
To be complete, I should mention OpenGL too. That's another API with 3D inside, but I've never used that.
using: [VISUAL STUDIO 6.0 sp5] [WIN98/2]
|
|
|
|
|
Yes I know every commercial game is using DirectX today.
But I don't know how it is used. So you are saying that
I can download the SDK and combine it with MFC. So, do
I need Visual Studio to do that. Well, yes, I have
VS.Net 2003 installed, but what if other people who do
not have VS, can they benefit from the DX SDK?
I am currently a freshman CS student, so most of the
programmings are done in console-based C++. So could
you tell me how do they develop game's engine? Do they
used MFC combine with DX technique? Have you ever played
Half-life, or Unreal? They comes with an Editor that allows
you to create a mod, have you used that? That looks like
a normal window-based program. Is it developed in MFC +
DX techniqe?
Could you explain that what's the difference between
Win 32 program, and MFC?
Thanks.
|
|
|
|
|
MFC isn't best suited for games. Games don't make the best use of the MFC capabilites. MFC is an overhead that most games don't require.
Most games have their own window handling framework, although I do know people who use WTL to handle the processing of Windows messages.
Personally I rolled my own mini-framework to use along side DirectX.
I used some of the techniques described in the Windows++[^] book for building the framework for handling message processing. I then used DirectX to handle the drawing.
Michael
'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879
|
|
|
|
|
I want to create ActiveX self,
but in CDialog where it defined, instead of them
(due to lack of memory happens if Cdialog creates ActiveX
- they do many uncontrolled loads with IPictureDisp interface )
I need to get position and tab-oreder information for
each control in CDialog resource.
Here is not shown position info, and enumeration:
http://www.codeproject.com/useritems/UpdateResource.asp
and Do not allow to create control by CDialog.
Can some one help me?
thanks.
|
|
|
|
|
How to detect ICMP echo request under windows2000 ?
Any source available ???
|
|
|
|
|
you'll need a packet sniffer!
Don't try it, just do it!
|
|
|
|
|
I need to look up "real names" for GUID's (Interface name, CoClass name, TypeLib etc.)
I know that the info is available in the registry, and that VC6 debugger does it nicely.
is there anything I can reuse? Or do I have to venture on my own?
"Dor säggsische Dialeggt eechnet sich wie keeen onderor für den Ausdrugg zäärdlischor Gefiehle."
sighist | Agile Programming | doxygen
|
|
|
|
|
it's pretty easy, but don't know any API for that
you have to only open registry at the right place.
If you look to HKCR\CLSID\
you'll see a bunch of GUIDs in text form for objects, you have to open registry key
HKCR\CLSID\{GUID} and get the default value to retrieve the name of the object
for interfaces the same
HKCR\Interface\{IID}
suprisingly for Typelibs it's little different
HKCR\TypeLib\{LIBID}\1.0 (or another version number)
you can check it directly in regedit.
Hope it helps
|
|
|
|
|
When you right click an exe file you get the company's name, I'm wondering how you create this information? I would assume there's a setting in VC++ and studio.NET that compiles this information into the file but I'm not sure where to find this setting.
Obseve everything, remember more...
|
|
|
|
|
In resources tab, click Insert > Version and fill out the version info for your app. That'll get compiled in the exe and Windows will be able to associate your exe file with a company etc. when viewing properties or in small text beneath the icon in explorer
|
|
|
|
|
Hi,
take a look to your ResourceView in VC++.
You will find the resources of your project and also a version-resource (VS_VERSION_INFO). If not, add a version-info to your project.
Regards
Frank
|
|
|
|
|
In VC++, just add version info to your resources.
things could always be worse...
|
|
|
|
|
I have an application on a CD. I want to copy protect it(do not want the user to copy it form the disk)Is there any secure software available.
All sugestions are welcome and its urgent!!
Thanx in advance.
|
|
|
|
|
There's nothing available, that's really working. Only thing which works for 100% is not to giving the CD away, sorry.
Problem is, that if the operating system can read it (as it must to access it) someone else can do it as well.
You can do some sort of protection to check if the right CD used, but if your software is good, then next day or after next day will be some cracks available to overcome that problem.
Only solution I found working is support. You'll support only registered and paying customers, giving them a feeling that it's better to buy it than just copy it.
|
|
|
|
|
Check out www.securom.com, it'll give you a little while at least before the hackers get in. Doubt its free though. Personally I prefer silent copy protection methods, such as those in Championship Manager 4 and Unreal Tournament, where (in CM4) if a copied disk is inserted it allows you to play the game, but every game you play is fixed so you lose. This way will at least keep those people who buy one copy and share it amongst friends at bay from researching a hack because they aren't aware its the copy protection doing its job .
|
|
|
|
|
Thanks for the suggestions
|
|
|
|
|
Greetings All,
Is there an API call to find a string within another ?
How about with wildcard Chars
How about with wildcard char[] (i.e a wildcard that represents any number of chars) ?
Cheers
If sex is a pain in the ass, then you are doing it wrong!
|
|
|
|
|
API no, library yes, _tcsstr, strstr.
The wildcard stuff is a different issue. One way to do this is with regexp, although something that handles only ? and * is simpler.
Steve S
|
|
|
|
|
try this function. It should work
int Compare(const char* mask, const char* s)
{
const char* cp=0;
const char* mp=0;
for (; *s&&*mask!='*'; mask++,s++)
if (*mask!=*s&&*mask!='?') return 0;
for (;;)
{
if (!*s)
{
while (*mask=='*')
mask++;
return !*mask;
}
if (*mask=='*')
{
if (!*++mask)
return 1;
mp=mask;
cp=s+1;
continue;
}
if (*mask==*s||*mask=='?')
{
mask++, s++;
continue;
}
mask=mp;
s=cp++;
}
}
"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
|
|
|
|
|
Is there any code or Axcive X to send and recived datas via USB?
In win98 or XP or 200?
|
|
|
|
|
Click on the "search comments" link above, type "USB" and press Enter
|
|
|
|
|
There are commercially available generic USB drivers that can adjust to virtually any protocol, and support all relevant OS versions.
I am not aware of a free / cheap solution, or one provided with the OS.
"Dor säggsische Dialeggt eechnet sich wie keeen onderor für den Ausdrugg zäärdlischor Gefiehle."
sighist | Agile Programming | doxygen
|
|
|
|