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
H

hrishi321

@hrishi321
About
Posts
38
Topics
19
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • where to place JavaScript
    H hrishi321

    Hello All, I am New to php :) I wanted to modularize my pages nicely.. Found a method to divide the page into different php file and include them in the main page.. Is it a good method? . . If so, I am not getting where to put my java-script code. . Usually I put them in the header of the page or a different file and set up the link in the header... But now, if I want to call a method from a subdivided php file, do I have to write the method in the same file, or I can put all the method in the main page, just like usual? Please feel free to point me out if I am lacking some other basic concept :) thanks Hrishi

    Web Development java javascript php tools question

  • Dyanmic drop down form ( Like Gmail's advance-email-search)
    H hrishi321

    Hello All, Could anyone please help with suggesting the technique that I can follow to achieve the following. I need to create a drop down form/division.. just like gmail-advance-search-option, where the drop down form pops up on clicking on a link. Please note that my drop down division content is dynamic, ie must be sent by server dynamically (depending on a parameter which user selects previously). Detail/example: So lets say user selects the option X and click on the buton/link to collapse the drop-down form. At this time, we should receive the form (belongs to the option X) from the server and client should display it. On click on submit, some search should be perform. PHP is a must. Could you please let me know the technique to achieve the same..Ajax/Jquery sounded helpful to me . but i have almost 0 knowledge on them . . . . An example or link would be highly appreciated. Sorry if it sounds basic :) I am a new bee to web development. Thanks Hrishi

    Web Development javascript php sysadmin help tutorial

  • Grid-View Ajax style
    H hrishi321

    Hello All, I am very confused to choose among many ways to do a task efficiently. Please suggest me the best way to do the following.. All I want is to "search a sql-database and show up the result in a grid". Note that each row would have an image, a link and some text. My main check points are 1) Ajax-style grid: On pressing next-page, only the grid should be updated not the whole page 2) Client side pagination: Since the search result might be huge, on each time pressing the next-page, I want to get only the specified rows from the server. NOT THE WHOLE SEARCH RESULT- WHICH WOULD SLO DOWN MY INITIAL GRID SHOWING ..... Solution Options::: I am new to web-programming. While browsing through I got the following points...But i am not able to put them all together and somehow i am not confident about it..very much confused what to use and what not to... please help!!! 1) asp.net ajax toolkit 2) use a simple way to create a table with many rows in client side using java script, and get the data form server using AJAX writing the all code of myself. But in this case i need to have a way of pagination if myself 3) etc (may be many other solutions exist) Practically, there may be many pros and cons which I am unaware of. I am looking for something efficient and easy to use. May be less code. technology: vs2008/2010, Ajax/Jquerry/JS, sql-db... since havent started teh project I am open to any technology which gives the best solution. thanks in advance :)

    ASP.NET database css csharp java javascript

  • Grid view
    H hrishi321

    Hello All, Please help with the following. I am a newbie to asp.net and trying to have a grid view with binding data with the help of code. I need to have a grid-view with 2 column, which is a result from a complex sql-querry (more then one table). the 2 columns are as follows 1) display one image 2) display some formatted text and a link and a button. (the text and the link-text comes from different db table.) thanks in advance hrishi

    ASP.NET database csharp css asp-net wpf

  • dreamweaver cs4, Design view mode
    H hrishi321

    hello all, I am facing some difficulties with dreamweaver cs4, could anyone please help me out with. I am new to dreamweaver so my question might be very basic. I have a ready made page by my friend, which has one submenu(links). On click of the link it opens particular Division(div) on the page itself (something like contentPageHolder)......Now my problem is to view this divisions in design mode.. . Always the first division is being seen. (Ofcoruse since I cannot click the links in design mode) . . Which is the way in order to view different divisions in design mode Thanks in advance hrishi

    Web Development help design question

  • working with USB
    H hrishi321

    Hello All, Could anyone please let me know, if we have any library or any easy going way, in order to work with USB2 flashdrive... All I need to do is detect a USB2 flash-drive, and then save a file in it. I am looking for any driver, or library or any other way, So that I dont have to go deeper inside USB protocol. I can use VB.NET or c# if necessary. thanks in advance Hrishi

    Visual Basic csharp adobe

  • ATL CString
    H hrishi321

    thanks for your reply. TCHAR was a great help. I am facing another problem, while implementing the same. could you please take a look and follow the above comments of mine. thanks in advance Hrishi

    ATL / WTL / STL c++ question

  • ATL CString
    H hrishi321

    Thanks for your reply, It was of great help. I followed the same way as you suggested. But found a very interesting problem. Following is the explanation: I should be able to use + operator like below..

    CMyString strTemp;
    strTemp = "aa" + strTemp;

    And for this I need to overload the +operator.(Reason:: I get a error which says::

    error C2678: binary '+' : no operator found which takes a left-hand operand of type 'const wchar_t [3]'

    I am not able to find a appropriate way to call the operator+ of the base class, or any other way to solve the same. [ All I need is, inside operator+ overloading , to convert the char to wchar and then pass it to the base class] Please help me. thanks in advance Hrishi

    ATL / WTL / STL c++ question

  • ATL CString
    H hrishi321

    Thanks for your reply :) what about setting the project as character set : Not set, in this case, as your suggestion, do I need to replaced all char to TCHAR in the whole project. Thats a lot :) . . I was trying to avoid much touch in the project implementation :) How about having my own class CMyString : public ATL::CString, can i do something in this way to avoid less touch to the project code ? Please note that the current project uses char not wchar_t. Project setting could be change according to our convenience thanks in advance hrishi

    ATL / WTL / STL c++ question

  • ATL CString
    H hrishi321

    Hello All, here I have another 2 doubt of ATL::CString 1. I am not able to overridden ATL::CString class, in a proper way. Is it necessary to override all the methods of this class? I want to override only a few actually. 2. for all the character operation, it warns me " conversion from 'wchar_t' to 'char', possible loss of data"

    char tt = strTemp[0];

    Is there any way to convert 'wchar_t' to 'char' as in global way, so that i don't need to typecast it everytime like

    char tt = (char)strTemp[0];

    thanks in advance hrishi

    ATL / WTL / STL c++ question

  • Basic doubt with Class template
    H hrishi321

    thanks a lot, it was really helpful :) hrishi

    ATL / WTL / STL c++

  • Avoiding MFC CString
    H hrishi321

    Hello all, I need to avoid MFC from my existing project, and convert to ATL. I am using STL for the most of the conversion (defining my own class for MFC type) CString has been use extensively in the project. So I guess its better to implement my own CString class. So that I dont need to touch all the implementation. I found out that ATL also has CString

    typedef CAtlString CString;

    So, if project setting avoids MFC, then CString will be refererd from this ATL CString class. But the problem is I need to touch and convert many code like

    "xx" to L"xx"
    char to wchar_t

    Can I have a efficient way, in order to avoid touching much implementation, and character code supportness. Shall I override this ATL CString class? or better right my own? considering about the supporting of character type (Unicode/others), could you Please suggest me, or advice me. thanks in advance Hrishi

    ATL / WTL / STL c++ help question

  • Basic doubt with Class template
    H hrishi321

    I think there is a misunderstanding. Sorry if my words were not able to explain my doubt. If you please refer to my main-doubt

    Could anyone please tell me, is there any way to separate the definition of the methods of a template class ,from header file to .cpp file.

    The code which you have provided works absolutely fine, in just one file. Just that I wanted to know, if there is any way to separate the definitions of the method in an another .cpp file. (Just like a normal class where we declare in .h and implement in .cpp)

    template <class T>
    void CMyTemplate<T>::Method1(T& TDummy)
    {
    TDummy = TDummy + 1;
    }

    and the declaration in an separet .h file

    template <class T>
    class CMyTemplate
    {
    public:
    virtual void Method1(T& TDummy);
    };

    thanks in advance hrishi

    ATL / WTL / STL c++

  • Basic doubt with Class template
    H hrishi321

    thanks for your reply and your suggestions, Oh, I am really unable to figure it out. And there is no difference as such in my implementation. FYI, the linking error which i am getting is..

    TestProject.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CMyTemplate<int>::Method1(int)" (?Method1@?$CMyTemplate@H@@UAEXH@Z)

    modified on Thursday, July 7, 2011 10:35 PM

    ATL / WTL / STL c++

  • Basic doubt with Class template
    H hrishi321

    Code In xxx.h file ::>> -------------------------------------- template <class T> class CMyTemplate { public: virtual void Method1(T TDummy); }; Code in xxx.cpp file ::>> -------------------------------------- #include "xxx.h" template <class T> void CMyTemplate<T>::Method1(T TDummy) { TDummy = TDummy + 1; } Code in main function ::>> -------------------------------------- CMyTemplate<int> objT;

    ATL / WTL / STL c++

  • Basic doubt with Class template
    H hrishi321

    Hello again :) thanks for your all reply...for the same doubt, if you don't mind, could you please have a look at the comments and reply below (Mr. Albert), since it has an clear cut example and my doubt. thanks in advance Hrishi

    ATL / WTL / STL c++

  • Basic doubt with Class template
    H hrishi321

    Hello again :) thanks for ur reply... yes, so say in this program, here is the problem i am facning... Now in the main function, if I try to create an object . .like CMyTemplate<int> objT; it gives me linking error error LNK2001: unresolved external symbol "public: virtual void __thiscall CMyTemplate<int>::Method1(void *)" (?Method1@?$CMyTemplate@H@@UAEXPAX@Z) waiting for your reply.. thanks hrishi

    ATL / WTL / STL c++

  • Basic doubt with Class template
    H hrishi321

    thanks a lot, for all the points. But i am sorry, I really didn't get my answer... so does it mean to say, that I can put my class(template) method definitions in .cpp file?? Regards, hrishi

    ATL / WTL / STL c++

  • Basic doubt with Class template
    H hrishi321

    thanks for ur reply.... ok, I have a class template with few methods....according to my knowledge, we have to put the definitions of all template-class-methods in .h files itself .....actually , FOR SOME REASON , I DON'T WANT TO PUT THE METHODS DEFINITIONS IN .h FILE.......i want to put them in .cpp file, just like other normal classes that we do......is it possible? if so, how?.... thanks in advance Hrishi

    ATL / WTL / STL c++

  • Basic doubt with Class template
    H hrishi321

    Yes sure, thanks . .But I want to know is there any way that I can separate the definitions of methods, in a .cpp file, (just like what we do for normal classes) . . . .[I tried , although there is no syntax error, but it shows linking errors]........ FOR SOME REASON , I DON'T WANT TO PUT THE METHOD'S DEFINITIONS IN .h FILE......... thanks again hrishi

    ATL / WTL / STL c++
  • Login

  • Don't have an account? Register

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