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
J

Jay Hova

@Jay Hova
About
Posts
66
Topics
24
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Disable Menu Items
    J Jay Hova

    I am calling this from my main class... I don't get it. I have almost the same exact code right beneath it and it works. (this is the code that checks the menu options) Thanks for helping

    C / C++ / MFC help

  • Disable Menu Items
    J Jay Hova

    I have only been programming for a month, so please be patient. right now i am using the code i found on the msdn.microsoft.com site CMenu* mmenu = GetMenu(); CMenu* submenu = mmenu->GetSubMenu(0); submenu->EnableMenuItem(ID_FILE_NEW, MF_BYCOMMAND | MF_DISABLED | MF_GRAYED); I get the error that GetMenu doesn't take 0 parameters? Can someone tell me whats wrong. I used similar code if not the same, to get a couple other menu options checked/unchecked and it worked fine. Don't understand why it doesn't work. Oh yeah, I have no idea why msdn is not installed on this computer? its not my own.

    C / C++ / MFC help

  • Disable Menu Items
    J Jay Hova

    Hi Jason, I don't have MSDN installed on this computer, I only remember off the top of my head its something like : EnableMenuItem((i think its the menuID?), Flags); Can you or someone shed some light to get this done with MFC? Thank you for your help!

    C / C++ / MFC help

  • Disable Menu Items
    J Jay Hova

    Hi, I was wondering if someone could help me disable a menu option. Thank you for your help.

    C / C++ / MFC help

  • Working with Files
    J Jay Hova

    Hi, In my MFC app I need to read and write to a file. Write now I am working on the writing part of it all. I can write to a file that doesn't exist, but when the file does exists it always overwrites the contents of the file. I am using the following code:

    CStdioFile f;
    f.Open("test.txt",CFile::modeCreate | CFile::modeReadWrite | CFile::shareDenyWrite, NULL);
    f.WriteString(temp);
    f.Close();
    

    temp is just some string that the user enters. Can anyone tell me what I am doing wrong, and tell me how would i get it to append to the end when the file exists already? Is there a better way to do this?

    C / C++ / MFC c++ question

  • float to hex
    J Jay Hova

    Thanks for the help. Where can I find those articles, on the msdn.microsoft site? Just to clarify: I am sending information from my program to someone else via the internet. I was told that the information has to be sent in hex format. So are you saying i can just send a float number? Thanks for all your help

    C / C++ / MFC question

  • float to hex
    J Jay Hova

    Hi, Is there a method that will convert an float to a hex number? Thanks.

    C / C++ / MFC question

  • Compiling Problem
    J Jay Hova

    Hi All, I was wondering if someone could tell me the reason why my project builds every single file in my project everytime I try to execute the exe file? After i build the code, make no changes and hit the execute it says all the .obj file are out of date. It never did this before, but all of a sudden it is making me build all the .obj and exe twice. I already did a clean and it still does it. I thought if i don't make any changes, the file would know this and not build them all again. Many thanks in advance

    C / C++ / MFC help question

  • Edit box string
    J Jay Hova

    Thanks.... Is there a place where I can find all these types of conversion "tool/methods"? I know what this one does (atoi) but I know there are other ones that I may find useful. Many thanks again.

    C / C++ / MFC question

  • Edit box string
    J Jay Hova

    Thanks everyone....I was using GetLine, didn't realize until right now that was only for multiple line boxes. can you tell i am new to programming?!?!?! In another case, I will have a number. Is there a way to determine if this number is a negative? How do I just look at the first character in the string?

    C / C++ / MFC question

  • Edit box string
    J Jay Hova

    Hi All, How do I get the information that a user enters from a edit box? I want to open a file that the user enters...so basically i want to get the string entered by the user into the open file call. Many thanks in advance.

    C / C++ / MFC question

  • Help with templates (newbie)
    J Jay Hova

    Sorry about that, I forgot to log in before. Sorry also about the double post. Here is the code.... template class Node { public: T data; Node * link; Node(T x=0, Node* A = NULL): data(x), link(A) {} }; typedef Node* nodePtr; Many thanks in advance

    C / C++ / MFC help wpf question

  • help with a TCP Program that sends messages
    J Jay Hova

    Thanks for the help Brian. I am really new to programming, and do not understand how to do what you are telling me. How would I declare an instance of the "formatting" class inside the class with the "working" socket? What other information do you need to know about my program? Many thanks in advance.

    C / C++ / MFC question sysadmin help

  • help with a TCP Program that sends messages
    J Jay Hova

    yes that is what i want to do. Only thing is that I create the socket in one class and want to format a message before I send it, which is done in another class. I do not know how to get the same socket that I created in the first class to be used in the second class. If i try and use the same socket, it will give me an error saying that it is a undeclared identifier. Thanks for your help. I know it is probably a simple question, but I am a newbie with program. (Trying to change my career and learn something new)

    C / C++ / MFC question sysadmin help

  • help with a TCP Program that sends messages
    J Jay Hova

    Hi, I read those articles, thats how i got the app to connect to the server. :-) I am still having problems sending the information though. I don't know if I should be passing in the same connection or instantiating a new one in the second class. Don't know how to use the same connection actually. Can anyone help me with that? Thanks in advance.

    C / C++ / MFC question sysadmin help

  • help with a TCP Program that sends messages
    J Jay Hova

    Hi all, New to programming, writing my first app using TCP. I need to make a client server that will send messages to a server. Right now i have two dialog windows. One that takes in the IP that the user wants to connect to(Connection), and another window where the user will set the information that will be sent (Format_Msg). I would like to have a third window that tells me what is sent over and what it receives. I can get the app to connect to the server, I just can not send the appropriate messages over to the server. I do all the connecting and instantiate a socket called ConnectServer in the Connection class. I do all the formatting of the message in the Format_Msg class. my question is how do I send these messages now? I am trying to use the:send (SOCKET s, const char FAR * buf, int len, int flags) command but don't know what I am doing wrong. Can I use the same connection that I made (ConnectServer), or do I have to instantiate a socket in the Format_Msg class too? If I don't, could you please tell me how I could get it to recognize the other socket that was instantiated in the Connection class? If you have code to how i could do this, it would be great. Many thanks in advance.

    C / C++ / MFC question sysadmin help

  • Sending messages with Server/Client
    J Jay Hova

    I'm sorry but i do not understand what to do. Once I have the client and the server connected, how do i send the message to the server? It doesn't seem to send the data to the server. Is there something I have to pass between the two cpp files, or can i just connect and then instantiate a SOCKET object and send it to that? Can someone possible give me some sample code...i looked at the tutorials on this site but i still can't get it to work. Thanks in advance.

    C / C++ / MFC sysadmin question

  • Sending messages with Server/Client
    J Jay Hova

    Hi All, I'm new to programming, so i have been trying to read and go to a few classes. I have been reading the tutorials on Server/Clients and am still a little confused. Right now i have a dialog that has a couple of check boxes on it, and I want to send the information of whether the boxes are checked or not to the server side . The message is just a string that looks like this : 2000 or 2001 I know that the two connect, but I can not get the message to be sent to the server. I am using the command: send (socket, buf,strlen(buf),0)where socket is instantiated in another dialog class that i use to connect to the server. How do I use the same socket that is already connected to the server to send this message. It won't compile unless i instantiate another socket in the dialog class with the check boxes. Many thanks in advance.

    C / C++ / MFC sysadmin question

  • Simple question about radio buttons
    J Jay Hova

    David, Thank you for your help. I had to manually insert the control in DoDataExchange because after reading the article you linked me to earlier today, i ungrouped the second radio. It doesn't make sense to me, but it seems to be working right now. Now to the next part of this app.... Many many thanks for your help, patience, and understanding. You are really a class act guy!

    C / C++ / MFC help tutorial question

  • Simple question about radio buttons
    J Jay Hova

    David, Sorry that you have to spoon feed me through this. I feel like such a moron because I can not grasp this concept. I really appreciate your help. What do i have to put in DoDataExchange? Also by adding the member variable to the other cpp file, won't it over write the existing data in m_SendTo? Thanks.

    C / C++ / MFC help tutorial 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