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
N

Nilesh Hamane

@Nilesh Hamane
About
Posts
24
Topics
14
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to allocate memory for 2-D integer array in one line?
    N Nilesh Hamane

    :laugh:

    Don't die, until you do.

    C / C++ / MFC question com data-structures performance tutorial

  • move function in maze does not work correctly
    N Nilesh Hamane

    Only by reading the input keys, **(worm) will not move, for that you need to add some code here

    if (arrow_keys()==75)
    {
    // worm moving logic will be here
    }

    Don't die, until you do. http://nnhamane.googlepages.com

    C / C++ / MFC

  • How to get IP addresses of all PC's connected in LAN?
    N Nilesh Hamane

    Is there any inbuilt function in C-Socket Programming for retrieving the IP addresses of all PC's connected in LAN?

    Don't die, until you do.

    C / C++ / MFC tutorial question

  • How to allocate memory for 2-D integer array in one line?
    N Nilesh Hamane

    I have this code for allocating memory for 2-d int array.

    int **p = (int **)malloc(MAXROW*sizeof(int *));

    for(int i = 0; i < MAXROW; i++)
    {

    p\[i\] = (int \*)malloc(MAXCOL\*sizeof(int));
    

    }

    How can i optimize this code in one line?

    http://nnhamane.googlepages.com/

    C / C++ / MFC question com data-structures performance tutorial

  • Is there any alternative for GetAsyncKeyState( int ) function in visual c++?
    N Nilesh Hamane

    Thanks for your reply Pallini. I was curious about how keylogger works and while searching, i got a keylogger code in c++. Now i am just trying to edit it, just for a learning purpose. :|

    C / C++ / MFC c++ question

  • Is there any alternative for GetAsyncKeyState( int ) function in visual c++?
    N Nilesh Hamane

    I am creating an background application which runs in the background, for that i want to know which key has been pressed by user. Right now, i am using this code:

    while( 1 )
    {
    for( int i = 0; i < 256; i++ )
    {
    GetAsyncKeyState( i );
    }
    }

    But, due to while( 1 ) other applications are hanging. Is there any alternative for GetAsyncKeyState( int ) function OR can i use the same function in another way?

    C / C++ / MFC c++ question

  • How to send messages from pc to pc in LAN without turning 'Messenger' service on?
    N Nilesh Hamane

    hummmmm. but i was looking for some more different answers...

    Managed C++/CLI tutorial question

  • How to send messages from pc to pc in LAN without turning 'Messenger' service on?
    N Nilesh Hamane

    Hi All, I am working on windows platform with no administrative privileges. I want to send messages/files from my pc to another in LAN. I am using one software 'IP Messanger' which doesn't required any privileges to install it or to send messages/files from one pc to another in LAN. I know DOS commands like 'send','msg' etc. but they need 'Messenger' to be on. My pc's 'Messenger' is off but still 'IP Messenger' works fine. How can the software work well without turning 'Messenger' service on :confused:? Also i want know that, is there any method/command available in DOS to send messages/files without 'Messenger' service? Thanks Nilesh

    Managed C++/CLI tutorial question

  • How to send messages from pc to pc in LAN without turning 'Messenger' service on?
    N Nilesh Hamane

    There is no problem with IP Messenger, its working fine; but i want know how can the software work well without turning 'Messenger' service on? Also i want know that, is there any method/command available in DOS to send messages/files without 'Messenger' service?

    COM question com tutorial

  • How to send messages from pc to pc in LAN without turning 'Messenger' service on?
    N Nilesh Hamane

    Hi All, I don't know whether my question will appear in COM category or not, sorry for that. I am working on windows platform with no administrative privileges. I want to send messages/files from my pc to another in LAN. I am using one software 'IP Messanger' which doesn't required any privileges to install it or to send messages/files from one pc to another in LAN. I know DOS commands like 'send','msg' etc. but they need 'Messenger' to be on. My pc's 'Messenger' is off but still 'IP Messenger' works fine. How? Can i send messages without turning 'Messenger' on? and how? Can anyone please explain this or just give me some idea so that i can search more on it. Thanks Nilesh

    COM question com tutorial

  • Inheritance!!!
    N Nilesh Hamane

    Please see the code bellow.

    #include <iostream>
    #include <stdlib.h>

    using namespace std;

    class Cpolygon
    {
    protected:
    int width, height;
    public:
    void setvalues (int a, int b)
    {
    width=a;
    height=b;
    }
    };

    class Crectangle:public Cpolygon
    {
    public:
    int area ()
    {
    return(width*height);
    }
    };

    class Ctriagle:public Cpolygon
    {
    public:
    int area()
    {
    return((width*height)/2);
    }
    };

    int main(int argc, char *argv[])
    {

    Crectangle rect;
    Ctriagle tril;

    Cpolygon *Poly1 =▭
    Cpolygon *Poly2 =&tril;

    Poly1->setvalues(4,5);
    Poly2->setvalues(4,5);

    cout<<Poly1->area()<<endl;
    cout<<Poly2->area()<<endl;

    system("PAUSE");
    return 0;
    }

    I have two questions. 1.

    Cpolygon *Poly1 =▭
    Cpolygon *Poly2 =&tril;

    What does these two lines indicate? 2. Instead of creating two objects of base class can we use only one object of base class to set the values. i.e.

    Cpolygon *Poly;

    So that

    Poly->setvalues(4,5);

    need to call only once and create the objects of derived class and show the outputs i.e.

    Crectangle *rect;
    Ctriagle *tril;

    cout<<rect->area()<<endl;
    cout<<tril->area()<<endl;

    will it work? :confused: Thanks for reading.

    C / C++ / MFC oop question

  • Why there is difference in outputs when i change the compiler?
    N Nilesh Hamane

    Thanks Code-o-mat for your explanation. But it means that there are no standard rules for compilers to interpret the code. Am i correct?

    http://nnhamane.googlepages.com/

    C / C++ / MFC c++ com question

  • Why there is difference in outputs when i change the compiler?
    N Nilesh Hamane

    CODE: int k = 35; printf( "%d %d %d", k == 35, k = 50, k > 40 ); When i compiled same code in Turbo C++ then its giving output as: 0 50 0 and in Microsoft VC++ its giving output as: 0 50 1 Can anyone tell me why there is difference in outputs when i change the compiler? Thanks Nilesh

    http://nnhamane.googlepages.com/

    C / C++ / MFC c++ com question

  • Can we change the path of dlls in target directory?
    N Nilesh Hamane

    I searched on net more about loadlibrary function but i haven't got anything. can you please tell me about how to use it in windows form?

    http://nnhamane.googlepages.com/

    C / C++ / MFC question csharp c++ visual-studio com

  • Can we change the path of dlls in target directory?
    N Nilesh Hamane

    This question is related to my previous question. As i mentioned before, my project contains many dlls and i am facing some ambiguity due to two dlls which contains same namespace names. So, i want to change the paths of these to dlls. But i dont know how to. Is their any option in visual studio c++ so that i can easily solve my problem?

    http://nnhamane.googlepages.com/

    C / C++ / MFC question csharp c++ visual-studio com

  • Problem while code integration in Visual C++ .net framework.
    N Nilesh Hamane

    I will try to explain exact problem, there are two headers i.e. header1 and header2. header2 is same as header1 with extra functions. Namespace and class names are same in header1 and header2. header1 is linked to project before header2 and it has less functions. So whenever extra function getting used that time error message is coming. Actually due to same namespace and sequence of headers first preference is to header1 and that does not contain that extra function. This should not happen actually. I can't change namespace names of headers, because I have only headers not code. If I change the sequence of linking then problem is occurring for header2, because that header also does not contain some functions. If you got my problem then please suggest me. And one more thing independent projects are working fine. If I debug the whole project then also same problem is occurring. Thank you and regards.

    http://nnhamane.googlepages.com/

    .NET (Core and Framework) c++ help csharp dotnet com

  • Problem while code integration in Visual C++ .net framework.
    N Nilesh Hamane

    Hi friends, there is a project which contains more than 10 small projects. These projects contains their respective exe's. Each project has some dlls to perform particular operation. Each dll is build by linking with either header1 or header2. My task is to integrate them in one project and make one exe i.e. code integration. I have almost finished it. When I run the project then it is giving error as "Attempted to read or write protected memory. This is often an indication that other memory is corrupt" for those projects whose dlls are linked with header2 and its fine working for those projects whose dlls are linked with header1. I have linked the new project with each and every dll required for operation. No errors while compilation. But it's giving an error while performing operations. Do you have any solution for my problem?

    http://nnhamane.googlepages.com/

    .NET (Core and Framework) c++ help csharp dotnet com

  • Problem while accessing values set in another class function.
    N Nilesh Hamane

    Thanks dojohansen for your reply. Actually static variables i have mentioned above are not actually variables..they work like static variables but they are objects of user defined classes(in dll) which are created for mapping the inputs, and the objects works as keys and can be used anywhere in the project. If i assign any input value to object then its value can be used throughout the program. So we use it...but sometimes value becomes undefined(error) as mentioned above. I thought that it was due to half code in .cpp and half in .h, so integrated all in .h file then also not working...while trying a lot i got the solution. I need to write same code with different function name and that function should not be called by any other function, then values are setting properly but code is increasing...dojohansen i have posted my query after lot of debugging and discussing with colleagues, hope you better understand my problem now. Thanks and Regards - Nilesh.

    http://nnhamane.googlepages.com/

    .NET (Core and Framework) help com tutorial

  • Problem while accessing values set in another class function.
    N Nilesh Hamane

    One more thing, SetInputF2 function is not called by any function. If i call SetInputF2 function in any other function then same problem occuring as with SetInputF1 function.

    http://nnhamane.googlepages.com/

    .NET (Core and Framework) help com tutorial

  • Problem while accessing values set in another class function.
    N Nilesh Hamane

    Hi Friends, In my project, i am using two classes suppose A and B. Class A contains two functions suppose SetInputF1 and SetInputF2 with same code and same return type just differ in function name (both functions are used to assign input values of class A to static global variables), and class B contains one function suppose f3. SetInputF1 is called by many functions. Now if i call SetInputF1 in f3 then the values of static global variables are not setting properly and if i call SetInputF2 in f3 then values are setting properly. I am using SetInputF2 function only due to this problem. But due to this my code length is increasing. How to overcome this problem :confused:, please help me if you can...

    http://nnhamane.googlepages.com/

    .NET (Core and Framework) help com tutorial
  • Login

  • Don't have an account? Register

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