Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
L

Lakamraju Raghuram

@Lakamraju Raghuram
About
Posts
22
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Blank section - 'General Indian Topics'
    L Lakamraju Raghuram

    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.

    Site Bugs / Suggestions lounge

  • Blank section - 'General Indian Topics'
    L Lakamraju Raghuram

    "General Indian Topics" is appearing blank. Is this for my account or my browser alone :confused:

    Site Bugs / Suggestions lounge

  • dsaf
    L Lakamraju Raghuram

    Quote:

    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.

    Spam and Abuse Watch

  • relational operators in class time
    L Lakamraju Raghuram

    Change to what?

    C / C++ / MFC help

  • How to setup the project settings when create an x64 project in cs2008?
    L Lakamraju Raghuram

    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

    C / C++ / MFC workspace c++ visual-studio com debugging

  • What does #pragma pack(0) do
    L Lakamraju Raghuram

    I am reading 8 on my console.

    C / C++ / MFC question

  • What does #pragma pack(0) do
    L Lakamraju Raghuram

    #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) ??

    C / C++ / MFC question

  • What does #pragma pack(0) do
    L Lakamraju Raghuram

    Here 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 / C++ / MFC question

  • C++ File
    L Lakamraju Raghuram

    are you giving us the code ..... or you forgot the question

    C / C++ / MFC c++

  • How to let client using [i][j] access two dimension array?
    L Lakamraju Raghuram

    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:"<
    
    C / C++ / MFC question graphics data-structures tutorial

  • MFC
    L Lakamraju Raghuram

    I 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

    C / C++ / MFC c++ question

  • How Can I Embed a text file in Code ?
    L Lakamraju Raghuram

    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:

    C / C++ / MFC question

  • How Can I Embed a text file in Code ?
    L Lakamraju Raghuram

    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

    C / C++ / MFC question

  • wsprintf in 32 and 64 bit windows.
    L Lakamraju Raghuram

    Use

    GetLastError()

    method after you called wsprintf and provide the error code

    C / C++ / MFC c++ help announcement

  • Captions with files
    L Lakamraju Raghuram

    Quote:

    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.

    C / C++ / MFC c++ question

  • March Best Mobile
    L Lakamraju Raghuram

    :thumbsup: Agreed

    Article Writing javascript asp-net testing tools architecture

  • March Best Mobile
    L Lakamraju Raghuram

    :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.

    Article Writing javascript asp-net testing tools architecture

  • March Best Mobile
    L Lakamraju Raghuram

    Quote:

    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. :)

    Article Writing javascript asp-net testing tools architecture

  • HTML5 Canvas
    L Lakamraju Raghuram

    And 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).

    Article Writing html question

  • London Physio's
    L Lakamraju Raghuram

    Do 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[^]

    Spam and Abuse Watch com beta-testing tools question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups