While it is perfectly justifiable to prevent misuse of this platform, it would be nice if the same is conveyed by a post in that forum. Of course if you don't give a damn then also its fine for me.
Lakamraju Raghuram
Posts
-
Blank section - 'General Indian Topics' -
Blank section - 'General Indian Topics'"General Indian Topics" is appearing blank. Is this for my account or my browser alone :confused:
-
dsafQuote:
It's either a certain Indian company
I agree that using the 'R' word here is unwarranted for. And at the same time, if it is not sure who the spammer is or from where he is from, it is equally foolish to deduce something from past spams. It could be the same idiot or a new idiot spamming, all I am saying is when not sure why to infer.
-
relational operators in class timeChange to what?
-
How to setup the project settings when create an x64 project in cs2008?I think you have't fully understood that article. When you are copying win32 settings to x64, that article clearly mentioned to change win32 switch to win64 for /D switch
Quote:
Values of WIN32 are replaced by WIN64 for /D (Preprocessor Definitions).
Quote:
I found the _WIN32,_WIN64 macro in MFC source code
Which source code? your code or in any of the standard headers? If it is yours, then you should take care to propely to map these settings to win32 and win64 pre-processor definitions
-
What does #pragma pack(0) doI am reading 8 on my console.
-
What does #pragma pack(0) do#pragma pack(0)
#include
using namespace std;struct Test
{
char a;
int i;
};void main()
{
cout<I am using VS2008 SP1. The build is x86.
Now guess the result of sizeof(Test) ?? -
What does #pragma pack(0) doHere n has to be 1,2 4, 8 .... Now if don't specify any value or if the value is 0, then the members are packed to default packing size (which is 8 for many compilers). However few compilers will throw compilation error.
-
C++ Fileare you giving us the code ..... or you forgot the question
-
How to let client using [i][j] access two dimension array?I have tried it in this way:
#include
#include
#include
using namespace std;class CMyResultSet
{
public:
CMyResultSet(){}
~CMyResultSet(){}string GetResult(unsigned int i, unsigned int j) { return m\_Data\[i\]\[j\]; } void SetResult(string Result, unsigned int i) { if( i >= m\_Data.size()) { // New push to 1-dimension vector vec; vec.push\_back(Result); m\_Data.push\_back(vec); } else { // Push to an existing 1-dimension's 2nd dimension m\_Data\[i\].push\_back(Result); } }
private:
vector< vector > m\_Data;
};
void main()
{
CMyResultSet objResultSet;objResultSet.SetResult("00",0); objResultSet.SetResult("01",0); objResultSet.SetResult("10",1); objResultSet.SetResult("11",1); objResultSet.SetResult("20",2); cout<<"Value at 00:"<
-
MFCI totally agree with Richard MacCutchan's statement. I would be hard to analyze without peeking into your project organisation. Can you just compile the modified cpp alone (you can press ctrl+F7 or right-click on that cpp in the solution view and press compile) and see what other cpp's are compiling. In this way you can find the dependency of those cpp's with the current one
-
How Can I Embed a text file in Code ?The only fear I have is of security. If the developer intends to store security critical information in this text file, then I think he is inviting trouble from the hackers/crackers or what ever, as the resource file is wide open for extraction and manipulation. Like pointed rightly by you, it's up to the OP to chose the method :thumbsup:
-
How Can I Embed a text file in Code ?You can also use resources to embed text file into your project. Say the name the text file is data.txt, then in the .rc file add
IDS_TEXT_DATA RCDATA DISCARDABLE "Data.TXT"
and in the resource.h give assign appropriate constant to it
#define IDS_TEXT_DATA 5555
-
wsprintf in 32 and 64 bit windows.Use
GetLastError()
method after you called wsprintf and provide the error code
-
Captions with filesQuote:
If it is a graphic file, it would say what the image is a picture of
This is better called as 'preview' and can be retrieved as file buffer (which holds either jpeg/png/bmp image type) and can be parsed accordingly. Now like the same way, you should know what other types have as text caption to extract and parse them. Isn't it? I guess, there is no such set of methods in VC++ to do task in a generic way.
-
March Best Mobile:thumbsup: Agreed
-
March Best Mobile:thumbsup: Your Home Automation with Netduino and Kinect[^] is one of the best drafted article I have seen. Just don't let your spirits down by this. They will surely appreciate you. After all there are very nice people out there in CP.
-
March Best MobileQuote:
Possibly several people from one organisation voted for you
May be my colleagues, who have read it and appreciated it even before it got picked up for voting. Now why that should be a problem. It's a bit strange. Say if all my colleagues don't find my article worthy and finds the other guys article great and say if they have all voted for him, then for God's sake don't say that the guy's article will be kicked out as suspicious - is this fair ? :confused:
Quote:
but you should probably have taken this up with the site admins at the time
But the other article which got prize is one of my favorite for that month. So I just let it go and it wont make any sense at least to me to argue upon this. But to be frank I am a bit dejected :~
Quote:
have no access to the voting logs
Yup, that is the way it should be. Only few admins should have access. In spite of this, I still find CP as a great place and the best for sharing the knowledge. I am a great fan of how this site is run by Chris and other supporting staff. I am just addicted to it and I am happy to be so. :)
-
HTML5 CanvasAnd is it not better to preview how the code plays before going for download? I think the OP is asking how to show preview live (other than attaching snapshots).
-
London Physio'sDo we want them here? There are flooding the QA section with psycho physio deals http://www.codeproject.com/script/Membership/View.aspx?mid=8788921[^] http://www.codeproject.com/script/Membership/View.aspx?mid=8789129[^]