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
Y

Yadrif

@Yadrif
About
Posts
14
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • char pointer question
    Y Yadrif

    I was just playing around with the code, no real application here. Just learning. I actually started by writing a sample to use a pointer to a pointer. Just to learn how it worked and actually use what I read. I then for some reason decided to stuff 'AB' into what the pointer points to just to see what would happen. I then removed the pointer to pointer part to simplify it before posting the question. Maybe this just gets into the realm of undefined behavior. I thought perhaps there would be an explanation as to why it does what it does. Thanks.

    C / C++ / MFC question help

  • char pointer question
    Y Yadrif

    Hi All, I was playing around with char pointers just trying to learn things and noticed that if I malloc the size of a char and set what the returned poitner points at to be 'AB', when I cout what the pointer points to it writes out 'B'. This is the code: char *mainBuf = NULL; mainBuf = (char*)malloc(sizeof(char)); *mainBuf = 'AB'; cout << "mainBuf=" << mainBuf << endl; The output is: mainBuf=B I really didn't know what this would do as like I said I was experimenting. In a way I was surprised it did not crash because I thought cout looked for the terminating null character. Can anyone help me understand why this does what it does? Thanks.

    C / C++ / MFC question help

  • Declaring Objects with Default Constructor
    Y Yadrif

    Thanks. I get it now. I should have noticed that. Thank You.

    C / C++ / MFC c++ visual-studio tutorial question

  • Declaring Objects with Default Constructor
    Y Yadrif

    Hello Everyone, In c++, when declaring objects using the default constructor why are we not allowed to use the parentheses? For example: Date birthday; vs. Date birthday(); // WRONG!! It seems like allowing the parentheses would keep the syntax of the declaration in sync with when we are using a constructor other than the default such as Date birthday(10, 4, 2000); Seems like there is a reason for everything in c++ so just wondering. Thanks.

    C / C++ / MFC c++ visual-studio tutorial question

  • Opened Mail of neighbour
    Y Yadrif

    I did something similar with paycheck's. I picked up their check instead of mine, opened it, got excited because I thought I got a raise. Then realized it was not mine.

    The Lounge question

  • Overloading the () operator
    Y Yadrif

    Thanks to everyone for the help. Thanks.

    C / C++ / MFC question help

  • Overloading the () operator
    Y Yadrif

    Hello All, I see some code that looks like this: string ClassA::operator()(int size1, int size2) { ....Some function implementation.... } This appears to me to overload the () operator. Why would someone do this? My understanding of operator overloading is to make code more readable such as with the + and comparison operators. I would think the implementation for this overloaded operator would be called by: ClassA c = new ClassA(); string s = c(10, 20); So, what is the purpose of oerloading the () operator and am I approaching finding where it is called in the code correctly? Thanks for any help. Thanks.

    C / C++ / MFC question help

  • J# finally bites the dust
    Y Yadrif

    So exactly what is the J# feature set? Thanks.

    The Lounge com

  • Windows CE 5 vs. CE.Net
    Y Yadrif

    Hello Everyone, What is the difference between Windows CE 5 and CE.Net? Or where can I find documentation on this? I've searched a lot but seem to not find any definitive comparison. I don't think it is two names for the same thing but I am fairly new to the Windows CE and Windows Mobile platforms so any direction you could give me would be great. Thanks.

    Mobile question csharp visual-studio

  • Windows Form UI and Thread Safety on Controls
    Y Yadrif

    Hello All, I'm working on a project where I'll have multiple controls on a Windows form that may get updated when messages are received on a socket being listened on by a worker thread or the controls might get updated from the main thread. The way I currently understand it is I need to set the controls properties using a delagate if control.InvokeRequired is true. How could this be done without having to have a delagate method for each control on the form? There are many of them and they all could be updated from the worker thread. All advice is appreciated. Thanks.

    .NET (Core and Framework) design question

  • Click Once Apps and Accessing File System
    Y Yadrif

    Hello, Can an application deployed with Click Once allow the user to browse and select a file from the file system? From my research I think this is possible but have not found exactly what needs to be done. If you have worked with Click Once in the past I'd really like to hear about your experience. It sounds like an interesting way to give internal (Intranet) users a better UI experience. I'm especially interested in the security limitations or what must be done to work within them. Thanks for the help. Thanks.

    .NET (Core and Framework) design security help question

  • C on UNIX Question
    Y Yadrif

    Do you think the compile error could be because the compiler doesn't recognize the syntax? Here is the compiler output: "usrfunct.c", line 91: error #2020: identifier "nparm" is undefined long TAPEINFO(nparm, parmptr, parmdec) ^ "usrfunct.c", line 91: error #2020: identifier "parmptr" is undefined long TAPEINFO(nparm, parmptr, parmdec) ^ "usrfunct.c", line 91: error #2020: identifier "parmdec" is undefined long TAPEINFO(nparm, parmptr, parmdec) ^ "usrfunct.c", line 92: error #2130: expected a "{" WORD nparm; I've actually been emailed the source and just asked to see if I can figure out why it won't compile. I think it is an HP UNIX box. By looking at the make log it seems like the compiler is called aCC. Once again never seen this but have never worked with C on HP UNIX before. Thanks for your help.

    C / C++ / MFC help question linux beta-testing code-review

  • C on UNIX Question
    Y Yadrif

    Hello Everyone. I have the following C code snippet: long TAPEINFO(nparm, parmptr, parmdec) WORD nparm; BYTE **parmptr; FINFO *parmdec; { ....Code in the function goes here.... } I'm not an expert by any means in C but I have done a litte C development on Linux and have never seen code like this before. The variables that are defined directly below the function header seem wierd. The problem is a compile error stating "nparm is undefined" and pointing at nparm in the function header line. Is the definition after the function header supossed to define nparm? If someone could provide any feedback I'd appreciate it. Thanks.:confused:

    C / C++ / MFC help question linux beta-testing code-review

  • Programming Quotes
    Y Yadrif

    One of my favorites and it seems to impress my boss is: If you only have a hammer everything looks like a nail. I suspose this means sometimes people approach a problem from the perspective of what they currently know or have instead of asking what really is the best way.

    The Lounge html com testing beta-testing code-review
  • Login

  • Don't have an account? Register

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