|
I CANT PLAY COUNTER STRIKE CUS OF VISUAL C++ :S:S:S:S:S:S
|
|
|
|
|
Congratulations. You are now officially the owner of the most stupid, pathetic, ridiculous, useless, worthless pile-of-crap post on this message board.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
if i start playing counter strike it sas runtime error Visual C++
can anyone help me
|
|
|
|
|
Why not? It seems like it would be the opposite - you can't play visual C++ because of Counter Stike.
/\ |_ E X E GG
|
|
|
|
|
Hi!
I have created a very simple program (a wizard application) with Microsoft Visual C++ .Net 2003. I want to make it stand-alone, ie to create an executable that doesn't need extra DLL.
I notice that my application is linked with mscoree.dll, and imports the CorExitProcess function from ths library.
Before, with Visual C++ 6, with the same compiler options, my executables didn't needed more DLL.
Is there a way to create stand-alone executables with Visual C++ .Net 2003 ? I'm using only MFC.
Thks in advance!
Appstmd
http://www.atlence.com
|
|
|
|
|
I notice that my application is linked with mscoree.dll,
That is because your program uses the .NET framework.
Is there a way to create stand-alone executables with Visual C++ .Net 2003 ? I'm using only MFC.
Start your program as MFC application and use MFC in a static library. Do not use managed extension in your project setting which will add clr(.NET) support to your program.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
Thanks for your answer. I use MFC in a static library, but how can I disable managed extension in my project? I cannot find it in the project settings dialog.
Thks in advance!
Appstmd
http://www.atlence.com
|
|
|
|
|
In your project properties
General - Project Defaults - Use Managed Extensions
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
This parameter is already set to 'No'. I think it must be a bug in the C++ .Net 2003 compiler...
Thks in advance!
Appstmd
http://www.atlence.com
|
|
|
|
|
It seems that my application runs anyway on a PC that doesn't have the mscoree.dll file.
Thks in advance!
Appstmd
http://www.atlence.com
|
|
|
|
|
Hi,
i'm implementing a tray icon for a cformview mfc sdi app. I want to know which message captures when you press close in the app. (the Cross on the top right part of the program.
I know that the CDialog has the OnCancel, so it closes when you press esc. But it doen't work with cformview .
I tried OnClose, but when i press the X it never goes there. Any ideas?
thanks!
|
|
|
|
|
Why not capture the WM_DESTROY message? That autta work.
|
|
|
|
|
I have 2 GUI applications. One is running on a laptop and is a acting like a data server sending TCP/IP connection based, messages to a client over an Ethernet link. The client program is running on another system. The client loops in Read() and gets the server data. During test, in a lab, the data seems to arrive at the client correctly. But, should I use a checksum to verify that the data is always correct on the client side??? My Ethernet cable may be long...and in a possibly noisey environment in the field. I believe the underlying features of TCP/IP verifys checksum.
Any ideas??
Thanks.
Jerry
|
|
|
|
|
You shouldn't have to. The lower levels of the protocol stack handle data integrity issues. There is nothing stopping you from doing this though.
__________________________________________
a two cent stamp short of going postal.
|
|
|
|
|
|
I have a dialog box application that I would like to remember some strings that i type in for the next time the program starts... I don't want to just write them to a text file for obvious security problems, i was thinking more like writing them to a string table, but i don't know if i can do that while the program is running rather than while programming it...
Any suggestions will be greatly appreciated and i can give more information if need be.
thx
ix
|
|
|
|
|
First, depending on who you are securing the data from, string tables are no more secure than a text file.
Second, security is a large complex issue, you should read much about it before you begin to assume what is secure.
Third, you cannot write the resources of a file that is currently loaded.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
The registry is the best place to house this sort of information. If security is that important though, you could always encrypt your data before writing it.
|
|
|
|
|
I guess i should clarify, security isn't that important, really i just don't want to have a text file with the strings in it... Its for an ftp program, where you can write in lots of different usernames and passwords so it remembers them all for next time... the registry is where i do that?
thanx for the replys.
|
|
|
|
|
Yep, just about every application that remembers the application options and various settings stores that information in the registry.
|
|
|
|
|
Hey thanks alot folks... thats an amazingly fast answer to my problem!!! now i gonna have to learn some more stuff
|
|
|
|
|
>> where you can write in lots of different
>> usernames and passwords
>> the registry is where i do that?
If this is going to be a production product then I would seriously advise against that. Storing passwords a clear text anywhere is not going to be considered acceptable.
As I stated previously, security is a large subject, you can't really know until you start to investigate it. There are so many resources available these days on the net for reading about software security issues. You really should take some time to understand the subject more thoroughly.
But, that's just my opinion… I could be wrong.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
I agree this is definitly an area where security is a must and the data must be encrypted. Storing unencrypted values in the registry is not much better than storing them in a file named passwords...
John
|
|
|
|
|
Does anyone know a good site for learning how to edit the registry from inside a program?
thx
|
|
|
|
|
The CRegKey class is what you want to use:
// Read a DWORD from the registry
DWORD dwValue = 0;
CString csKEY = "Software\\Company";
CRegKey key;
if ( key.Open(HKEY_LOCAL_MACHINE, csKEY, KEY_READ) == ERROR_SUCCESS)
{
if (key.QueryDWORDValue("MyKey", dwValue) == ERROR_SUCCESS)
AfxMessageBox("You read it into dwValue");
key.Close();
}
// Write a DWORD to the registry
DWORD dwValue = 3;
CString csKEY = "Software\\Company";
CRegKey key;
if ( key.Create(HKEY_LOCAL_MACHINE, csKEY) == ERROR_SUCCESS)
{
if (key.SetDWORDValue("MyKey", dwValue) == ERROR_SUCCESS)
AfxMessageBox("You wrote it");
key.Close();
}
|
|
|
|