356 Posted Topics
Hey Lets see if I can explain myself correctly...... I have 2 projects, one a program and another a library. First project is basically this, more or less (obviously it is more complicated) [code] //This is the main project //Inside com.stuct: //Global.java package com.stuct; public class Global { public static … | |
Hey I want to create a JAR library but not sure how to in MyEclipse. Im currently doing it manually using jar command but I cant seem to get it correctly The library code is: [code] public class LibAdd { public static int addtwonumbers (int a,int b) { return a+b; … | |
Hello I'm tring to declare a BinaryOut type of object in a Java web project but it doesn't seem to work. I've imported the same libraries I used in a standard Java project so I don't know what's wrong. Any tips???? | |
Hey Is it possible to run a Java Servlet that loads a .html page that has a bunch of JS scripts in it? I know how to load a normal .html page (I believe it is correct) but not sure if it works if it has Javascript as well. Thanks. | |
Hello Im trying the ini4j library but I seem to be having problems writing a Unicode file (no problems reading I believe) Is this a Java issue or ini4j? Thank you | |
Hey AFAIK, you have to pay for Mono for Android so you cant write C# applications that run on Android. Is there any alternative? | |
Hey I was wondering how I could write a binary file in Java with code in C++ using the reinterpret_cast function. If I remember the line correctly (not currently at work) it was: [CODE] file.write=reinterpret_cast<char *(&x)>,sizeof x; [/CODE] with x being a variable. How can I do that in Java? … | |
Re: [quote] try this to read windows ini files in java: [url]http://ini4j.sourceforge.net/[/url] Cheers, Boaz. [/quote] Does this process Unicode text (accents and such)? | |
As some of you have read, Ive been working with JNI for these days. Ive found that JNA may be easier to manage and also allows some other things. I have this very simple program: The .cpp: [code] #include <stdio.h> #include "PruebasDeJNA.h" int suma(int a,int b) { return a+b; } … | |
Im switching too much between these "wrapper" frameworks so I think I should just concentrate on one and leave the others alone. Which should I go for in a servlet like enviroment? JNI, JNA or Swig? The only one I have "expirence" with is JNI. The rest Im playing around … | |
Hey Ive been given a JavaScript program (with embedded in a HTML) with several (from what Ive seen) free libraries. For example: excanvas.js jquery-1.6.4.min.js prototype.js colorpicker.js This JavaScript program (using those and other free libraries) to draw something like this: [img]http://img339.imageshack.us/img339/3997/dibujoajyu.jpg[/img] As you see the dots, beside having a X … | |
(So continues the JNI saga....) I currently have this (in C++, this being my native code in C++): (x is a jstring passed thru the header) [code] jdouble res; if (x=="*") { res=a*b; } else if (x=="+") { res=a+b; } else if (x=="-") { res=a-b; } else if (x=="/") { … | |
(More JNI woes...) When I try to comply this code [code] import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * Servlet implementation class HacerOperacionesConJNI */ public class HacerOperacionesConJNI extends HttpServlet { private static final long serialVersionUID = 1L; private native double operaciones(double a,double b,String op); … | |
Hey Im currently working on a application server written in Java but to use information from a C++ program. The company seems to agree that rewriting thousands of lines of code would be time consuming and simply making libraries of key functions of the C++ program and then passing them … | |
Hey Lets say I have 2 columns in table1 Id Value Id is obviously primary but I want Value to be unique.... I tried "NOT EXISTS" with a subquery but I cant really seem to get it to work. It would be something like [CODE]INSERT INTO table1(value) WHERE VALUES('3'); [/CODE] … | |
Hey Im writing a platform game "Mario style" for mobiles in Java but I seem kinda stuck. Any recommendations on some points I should do? Ill view them and post code Ive done related to them. To recap some of the things done: Map loads I can "move" (what actually … ![]() | |
Hello I have a TreeView such as this 1 2 2a 2b 3 4 4a 5 And I want to when I press a button disable 2 and 4 (with all its child nodes). How can I do this? Thanks | |
Hello Ive been searching around Google and while I have found some answers, Im not sure how to implant them correctly. I wish to disable the Close (X) button on a Windows Form. I read about ControlBox (I think that the property) but I perfer to do it another way. … | |
Hello I have a form with a textfield simply named 'textfield' on one page and a table with a recordset on another page. It has a dynamic field/text with this code [code] SELECT codas FROM t WHERE user = colname [/code] and colname is [code] $_POST['textfield'] [/code] I manually replace … | |
Hello I seem to have a problem with a UPDATE that just does not want to work. Im simpled it down to the most simple UPDATE possible and it simply does not want to work. Here is the simple version: [CODE]public static string CambiarDatosUsuarios(string usuario,string contr,string pregunta,string respuesta,string correo) { … | |
(I know this is the C++ section but since Im not sure where to put this...) I have a movie clip that with ActionScript I would like to do a gotoandStop on (for example) frame 3 of Layer 1 but I would like to keep playing Layer 2. How do … | |
Hey How can I send mail thru C#? It seems that it can be sent only thru Smtp (from Googling) but there has to be a way to do it thru POP3 as Windows Live Hotmail supports it and AFAIK VB.NET also supports it. If someone can give me a … | |
Hey This might sound like a dumb question but I simply dont know how to do it. Not only that but for some reason I do not know, my professor refuses to teach me how to use debugging and watch variables. He wants the "change, try, and test" method.... I … | |
Hello Im intrested in making a small online store mockup just to test a bit how it would work. Id like simply a "shopping cart" with a login system where I can add products to the shopping cart and "buy" them. Any guides, tutorials, tips, snippets, etc? Thank you :) | |
Hey Im having a hard trouble drawing in a Java window so if there is a plugin that shows the coordinates in a Java window when I hover my mouse over that spot it would make my coordinate easier. | |
Hello I want to use a CustomValidator using ASP.NET/C# to make sure a textbox isnt empty (no spaces, no blanks, no nulls, etc) How do I do it? Thanks | |
Im wondering how do I correctly generate a random number in Java. Sometimes it gives me a negative, positive, very small range ,etc. Id like a simple formula that can give me some examples to control this better. Thank you very much. | |
Hey Ive been hearing about Netbeans but Id like alternatives. Any out there? If the program is not written in Java (ironic I know) I would perfer it. Thanks | |
Hey I want to generate 3 different types of arrays but 2 include a negative number and Im not really sure how to do that. The first type should generate 0 to 2 (which works): [CODE]num = Int(Rnd() * (2 - 0 + 1)) + 0[/CODE] Now I need one … | |
Hey Im doing a loop with somthing similar to this: [code=C] char stn[25]; do { printf ("Insert a number:\n"); gets(stn); }while (stn!="123"); if (str=="123") { printf ("Good value!"); } [/code] Now if I input 123, it enters the if that prints "Good value!" and the program ends naturally. Now if … | |
Hey I rather not use conio.h for cross compatibility so is there any way to make my own "conio.h" and just include it in my compilation. Thanks. | |
Hey I currently have [CODE]Private Sub LabelClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label14.Click, Label15.Click, Label16.Click, Label17.Click If sender.backcolor = Color.LightGray Then sender.backcolor = Color.Green ElseIf sender.backcolor = Color.Green Then sender.backcolor = Color.LightGray End If End Sub [/CODE] But there are ALOT of labels (about more than 300) … | |
Hey I have a use for working with basic binary search trees but I cant seem to find good examples on the basic operations such as sorting, insert data, delete and search for data. Can someone give some basic examples? Thanks. | |
Hey I wanted to know how to make a number pyramid with (for example) the following formation: (This would be for 5 rows, with 5 being a variable and as you can see in the last row the last number is 5 on each end) [IMG]http://img199.imageshack.us/img199/2239/numbers.png[/IMG] [url]http://img199.imageshack.us/img199/2239/numbers.png[/url] So far I … | |
Hey I was wondering how is the easiest way to send a email thru VB .NET 2005. I want to send a email every 5 minutes a certain text (that I have no problem the only problem is how to send the email with the address, server address, user name, … | |
Hey This is going to be hard to explain but oh well.... I have a form with a menu. When I hit option one, it opens another form (form2) inside that same form (mdiparent). When I hit X on form2, then try to open it again from the original form … | |
Hey I have a file named filetext.txt with the text: One word Two words Three words Four words and the program should read this filetext.txt and output to another file called filecopied.txt this text: One Two Three Four I have this so far: [code] #include <assert.h> #include <complex.h> #include <ctype.h> … | |
Hey I have a text file (1.txt) with the lines: This is line 1 This is line 2 This is line 3 This is line 4 This is line 5 and Im trying to read all the pair lines from that file and write them to another text file called … | |
Hey I know gcc is problably the best natural complier for C but Im looking for a IDE. I cant use Visual Studio 2008 (which Id like to) as it uses it own compiler. I was using wx-dev (I believe it is called like that) and it is pretty good. … | |
Hey I was wondering how I could port and comply a Linux application to run it under Windows? The application I want to port is Cheese. | |
Hey Ive been asked (and I may add this to my system as well) to make a shell script that backups to all files in x location to another location in z. The thing is that the backup must only be made if one file has been changed. Example: /x … | |
Hey In VS, you can in a struct do: [code] struct test{ int tes; }tt; [/code] then when I put tt., it would display the all fields in a tooltip which in this case would display tes. Is "IntelliSense" (I know it is not called that) in wxDev-C++? | |
Hey Im already generating numbers correctly from 0 to MAX_INT. But Id like to know how can I change that range (including negetive numbers) And while already on the subject, why does this code only generate numbers in the VERY high 90s? [code] int main() { int array[100]; srand(time(0)); gen(array); … | |
Hey The title is a bit confusing so Ill explain. I have a function that returns random values from 0-4 for the computer (which has numberofplayers). Lets say number of players is 2. One is me and the other is the PC. I (myself thru a scanf and I being … | |
Re: My suggestion: Take a C course in some center in your city. WILL help you out... | |
Re: WOW.... I have no idea what you are trying to do but you are WAY over your head. 1: Learn to use "tab" 2: password[c]= password[6] with no ; at the end? (Thatll problably solve 99% of the complying errors 3: What the fuck is this: [code]{ l=strcmp(&loginid[i], login); p=!strcmp(&pwd[i],password); … | |
Re: [QUOTE=Salem;789261]There you go, a program to print a balanced checkbook [/QUOTE] Well I learnt something from this thread [code=c] printf( "CHECKBOOK\n" "=========\n" " ^\n" ); [/code] Had no idea you could do that in C. | |
Lets say people say 1,3,4,6,9,10,44 And the correct answer is 5. How do I calculate the closest number to 5? Thanks. | |
Hey Why does the following code comply in Dev-C++ and it DOESNT in MS VS 6.0? [code=C] #include <ctype.h> #include <errno.h> #include <limits.h> #include <float.h> #include <locale.h> #include <math.h> #include <setjmp.h> #include <signal.h> #include <stdarg.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> void main() { int num; … | |
Hey I want to make a VHDD (V.irtual H.ard D.rive D.isc) using the dd command and then encrypt it. I was told I had to do something with loop also to encrypt it but cant find anything. I dont want to experiment as dd is VERY powerful and can fuck … |
The End.