What is MFC sendMessage/postMessage equivalent in java?

Hi, i am new to java. i hope i can get some help from u.
question #1. how does user defined message work in java?
question #2. how to send a message from dialog1 to dialog2 message quene and how to capture this message?
thank you very much
--mila                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

I am not aware of what "messages" do in MFC. Do they transmit some form of information from one component to another? Please enlighten me; I may be able to help you then.

Similar Messages

  • Struct equivalent for java array?

    What's the struct (c++) equivalent in Java?
    here's my im doing.
    class Text
    char character;
    int freq;
    public static void main(String[] args) throws IOException
    BufferedReader key = new BufferedReader(new InputStreamReader(System.in));
    Text[] letter = new Text[2];
    I want to assgined letter[0].character = 'a'; and letter[0].freq = '3' but it doesn't allow me to do that when I compile it?

    I've trying doing:
    for(i = 0; i < letter.length; i++)
                   letter.character = new Text();
                   letter[i].freq = new Text();
    and even
    for(i = 0; i < letter.length; i++)
                   letter= new Text();
    before doing
    letter[0].character = 'a';
              letter[0].freq = '3'; but got an error:
    non static varible this cannot be referenced from a static context

  • ReDim equivalent in Java

    Hello,
    What's the equivalent in Java of 'Redim '?
    e.g Redim RedBucket(0)(0)
    is it an ArrayList
    Thanks
    Paul

    ReDim is like ArrayList in the same way that a wheelbarrow is like a pickup truck.
    With ReDim, you have to specify the size of the array at the beginning, and then you have to decide when the size needs to be changed, and you have to decide what to change it to. With ArrayList, you don't have to do any of that. You just say "Gimme an ArrayList" and it figures out how much array space it needs by itself.
    But really, you're better off just learning Java. You won't want to speak Java with a VB accent.

  • $ENV perl equivalent in Java

    We are in our first steps in trying to convert some of our systems from Perl to Java.
    In a module we had (Database module) which was responsible for all DB activity, we had an area where, upon errors, we printed out $ENV{SCRIPT_NAME} environment variable, which is set by Apache and can be read by Perl. This helps us debug things by knowing which script was ran when a DB error occurred.
    As we are porting the Database module into a Database class, we are trying to think how we can achieve the same capability with Java.
    I don't know of the existence of $ENV equivalent in Java. Not one that contains the web-server executed script, in case its a script that is ran by a web server.
    Is there?
    Note that the Database module may be ran as part of a Servelet but may also be part of just a simple server script. In perl, is such case, the $ENV{SCRIPT_NAME} would come out empty.
    Any suggestions of how to do that?

    Pidgin wrote:
    As you indicated: Note that both are relatively slow and should only be used for exceptional or error conditions.
    The access to the SCRIPT_NAME is actually a web re,ated variable that we need for showing which HTTP resquest generated the specific SQL error.It's only a variable in perl (or in CGI scripts, to be more precise).
    It happens often enough, and doing a very low-level trace of the executed code migt not be the right option.SQLExceptions that need logging happen often? That shouldn't be the fact. How often?
    Stacktraces are not awfully slow. They are ok for handling errors & exceptions. But they should not be used for classical flow control.
    For example, it might be that the executing code is Script.class using Database.class, but Script.class can be initiated from www.whatever.com/script/ or www.whatever.com/premium/script/.. in each case, we want to know the full URL of the called "script'.With the stack trace you'd see the Servlet and/or Action that handles the request.
    So we do need access to the web "environment".
    What we do now, is store a static Servlet_Request variable (set on the first Database constructor, by passing the servlet request and response objects to the Database constructor). From that point on, we can access Servlet_Request.getRequestURI()That won't work as soon as more than one request is handled at the same time (which is very, very soon!).
    You might want to look into something like log4js MDC, where you can at one point in your application set a key in a map and have that appear in every log statement from that thread until it's removed again.
    This is quite different than the Perl logic, where we could access a "web enabled" System.getenv() and read from it SCRIPT_NAME or other web related parameters, if they existed (or returning null if they didn't)You should not try to apply the best practices learned by perl web programming 1:1 on Java. In the Java world pretty different concepts apply, especially when doing Web-Programming, as Perl web-applications are usually based on the rather antiquated CGI interface, while Java uses a central application server that handles each request as it wishes.

  • What do you plan to do with java

    I know this is a game development forum, but I had one question. What does everyone 'who is nice at java example abuse' (i'm not saying that no one else is nice, but he's name is the most catchyest) what do you plan to do with java. Do you really want to make games in java for the rest of your life, and prove to the world that java is gaining power? Or you just use java as the jump off point to learn anything else.
    Sorry if i'm getting to personally, but I was just wondering. This is a question to everyone not just abuse. lol

    Development speed:
    C / C++ (DJGPP):
    downloading many parts - 1 week
    installing - 1 weekend
    looking for basic tutorials - 1 week
    getting hello world to work - 1 afternoon
    getting more tutorials - 1 week
    getting past hello world - 3 weeks
    doing something worth doing - never
    total time to becoming a basic C programmer - 18 months & counting (I still try every couple of months, it never works)
    compiling someone else's code - 1% success (only one program not specifically designed for DJGGP ever compiled - C is portable eh?)
    Java
    dowloading JDK - 4 hours
    installing - 1/2 hour
    basic tuts - 1 hour
    hello world - 3 hours (java.lang.NoClassDefFoundException :-) )
    more tutorials - 10 mins
    getting past hello world - 1 week
    doing something worth doing - 2 weeks
    total time to becoming a basic java programmer - 1 month
    compiling someone else's code - 95% success (some people use the GNU regexp and GL4java, now there's regexp & 3D in the main package, so that shouldn't be a problem for much longer)
    Running speed:
    http://members.lycos.co.uk/wjgoh/JavavsC.html
    pure java JITted for the current machine is faster than generalised C, it's just that in C you get like
    prog: printf("xxx\n")
    stdlib: some assembler
    wheras java
    prog: println("xxx");
    lib: print("xxx"+"\n");
    lib: print("xxx\n");
    lib: write("xxx\n");
    lib: write(new byte[] {'x','x','x','\n'});
    lib: native void write({'x','x','x','\n'});
    stdlib: write(bytes);
    stdlib: some assembler
    I know that's not the right chain, I'm just showing the idea. Also you get things like this:
    //deprecated - don't use
    getSize() {
    return size;
    //ok, use this
    getPanelSize() {
    return getSize();
    where it's faster to use dodgy old methods.
    Shish

  • Equivalent of java.sql.ResultSetMetaData

    Hi,
    I'm looking for something which is equivalent to java.sql.ResultSetMetaData in Toplink. Does anyone know how this can be done ?
    Thanks,
    -Prashant

    Hi,
    I have a similar problem. I want to find out the column names when i fire raw-sql. I use SQLCall to do this.
    Then I get a Vector<DatabaseRow>.
    Vector vDR = session.executeQuery( new SQLCall( "select * from table_name" ) )
    Now Is there a way to find out the column names dynamically. In the javadocs i see that objDatabaseRow.keys() returns an Enum<DatabaseField>... but i cant see javadocs on how to use DatabaseField.
    So is there any other way ?
    Thanks,
    Krishna

  • What are the security implications of having JAVA running on my Mac Book Pro?

    What are the security implications of having JAVA running on my Mac Book Pro?

    Java on the Web (not to be confused with JavaScript, to which it's not related, despite the similarity of the names) is a weak point in the security of any system. Java is, among other things, a platform for running complex applications in a web page, on the client. That was always a bad idea, and Java's developers have proven themselves incapable of implementing it without also creating a portal for malware to enter. Past Java exploits are the closest thing there has ever been to a Windows-style virus affecting OS X. Merely loading a page with malicious Java content could be harmful.
    Fortunately, client-side Java on the Web is obsolete and mostly extinct. Only a few outmoded sites still use it. Try to hasten the process of extinction by avoiding those sites, if you have a choice. Forget about playing games or other non-essential uses of Java.
    Java is not included in OS X 10.7 and later. Discrete Java installers are distributed by Apple and by Oracle (the developer of Java.) Don't use either one unless you need it. Most people don't. If Java is installed, disable it — not JavaScript — in your browsers.
    Regardless of version, experience has shown that Java on the Web can't be trusted. If you must use a Java applet for a task on a specific site, enable Java only for that site in Safari. Never enable Java for a public website that carries third-party advertising. Use it only on well-known, login-protected, secure websites without ads. In Safari 6 or later, you'll see a lock icon in the address bar with the abbreviation "https" when visiting a secure site.

  • Can we define a complex type that is equivalent to java.util.List?

    hi everyone
    is it possible to define a complexType that is equivalent to java.util.List? all i know now is how to define an array of some type using either <xs:list> for simpleType or the minOccurs and maxOccurs of the element tag. i was wondering if there is way to define something equivalent to a List in java. thanks

    Define a sequence of list tems.
    <xs:element name="list">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="item"  maxOccurs="unbounded"  type="xs:string"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

  • What's up with this update re: Java? Do I have it?  If not, do I need to get it and from where?

    What's up with this update re: Java?
    Do I have it? 
    If not, do I need to get it and from where?
    Thanks

    You don't have it unless you have downloaded and installed it either manually or via Software Update.
    The update should be installed to protect you from possible malware exploits via Java. However, if you don't use Java programming or run Java applets in your browser, then you do not need the update. But you must turn Java off in your browser's security preferences (it will be a checkbox.)

  • What is top level class declaration in java?

    What is top level class declaration in java?

    The declaration of a class that's not nested inside any other class.

  • What is the best IDE to write java?

    I was wondering if somebody can tell me what is the best IDE to write java?

    Search the forums for "Best IDE", which has been asked a zillion times.

  • APEX equivalent of Java Static Initialization Block

    Is there a APEX equivalent of Java static init block (i.e. execute once at class load time)? My use case is that I need to load some configuration values to an environment (i.e. APEX Workspace) specific variables and don't want to do per user session since the values remain the same for all user sessions. I believe SYS_CONTEXT is tied to user session and would not be useful for my usecase. Any advise would be appreciated.

    Hello,
    You should check the concept of User Preferences and see if it can help you:
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21678/aadm_mg_sessions.htm#BABHFEFD
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • What is an in-memory class in java.

    what is an in-memory class in java. Please explain me about it and even give a sample code if possible.
    thanks in advance.

    what is an in-memory class in java. Please explain me
    about it and even give a sample code if possible.
    thanks in advance.In what context was this question asked?

  • What's the latest stable version of Java Advanced Imaging Image I/O Tools?

    Hi,
    Could anybody tell me what's the latest stable version for Java Advanced Imaging Image I/O Tools and from where I can download the same?
    Thanks

    Just 'mark out of date' the package. Or email him directly. The forums are generally the WORST way to try and contact any specific developer.
    Oh, and before that, please do a quick google....
    http://projects.gnome.org/gedit/
    Closing.

  • Forte Express Equivalent in Java

    Hi
    Can any body tell me Forte Express equivalent in Java?
    Thanks in advance

    Hi
    Can any body tell me Forte Express equivalent in Java?
    Thanks in advance

Maybe you are looking for

  • Advice for creating a network

    I want to create a home network with the following: - a Mac Pro (acting as the server with the video, images, and audio files) in an office room - an Airport Express connected to powered speakers to play music in another room - an iTV connected to my

  • My computer and my iphone crashed, so how do I get my music and apps back?

    My OS went out on PC while reinstalling Windows my iphone froze.  I took my phone to the apple store and the only way they could fix my was to to reset it.  The reset restore my phone to new, which wiped off all of my pictures, contacts, music, calen

  • Oracle Application Server Release 4.0.8.1 on Windows 2000.

    Can I install Oracle Application Server Release .0.8.1 on Windows 2000 ?

  • InDesign CS6 won't open files

    InDesign CS6 won't open some files. No error message, simply returns to previous 'Open...' view. I've tried restarting, rebooting, resetting my InDesign preferences and re-unzipping the original zip file. I can still open previously worked on files,

  • Adobe CS3 both on MAC & PC

    Ok, so if i have Adobe CS3 on a PC, and decided to buy a macbook and to put Adobe CS3 on the mac as well, (by purchasing the mac version ofcourse), will the file types be able to interact? if i save a premiere file, will it work/open on the Windows P