356 Posted Topics

Member Avatar for riahc3

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 …

Member Avatar for riahc3
0
529
Member Avatar for riahc3

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; …

Member Avatar for riahc3
0
179
Member Avatar for riahc3

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????

Member Avatar for riahc3
0
184
Member Avatar for riahc3

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.

Member Avatar for riahc3
0
636
Member Avatar for riahc3

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

Member Avatar for riahc3
0
747
Member Avatar for riahc3

Hey AFAIK, you have to pay for Mono for Android so you cant write C# applications that run on Android. Is there any alternative?

Member Avatar for riahc3
0
185
Member Avatar for riahc3

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? …

Member Avatar for riahc3
0
939
Member Avatar for eranga262154

[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)?

Member Avatar for riahc3
-1
2K
Member Avatar for riahc3

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; } …

Member Avatar for riahc3
0
154
Member Avatar for riahc3

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 …

Member Avatar for jwenting
0
150
Member Avatar for riahc3

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 …

Member Avatar for riahc3
0
167
Member Avatar for riahc3

(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=="/") { …

Member Avatar for riahc3
0
146
Member Avatar for riahc3

(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); …

0
74
Member Avatar for riahc3

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 …

Member Avatar for riahc3
0
2K
Member Avatar for riahc3

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] …

Member Avatar for rch1231
0
107
Member Avatar for riahc3

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 …

Member Avatar for ztini
0
43
Member Avatar for riahc3

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

Member Avatar for Luc001
0
107
Member Avatar for riahc3

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. …

Member Avatar for riahc3
0
117
Member Avatar for riahc3

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 …

Member Avatar for ko ko
0
91
Member Avatar for riahc3

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) { …

Member Avatar for YMCMb
0
275
Member Avatar for riahc3

(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 …

Member Avatar for JasonHippy
0
105
Member Avatar for riahc3

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 …

Member Avatar for riahc3
0
86
Member Avatar for riahc3

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 …

Member Avatar for riahc3
0
903
Member Avatar for riahc3

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 :)

0
59
Member Avatar for riahc3

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.

Member Avatar for adams161
0
188
Member Avatar for riahc3

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

Member Avatar for Freon22
0
834
Member Avatar for riahc3

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.

Member Avatar for tong1
0
156
Member Avatar for riahc3

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

Member Avatar for peter_budo
0
136
Member Avatar for riahc3

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 …

Member Avatar for riahc3
0
76
Member Avatar for riahc3

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 …

Member Avatar for jephthah
0
203
Member Avatar for riahc3

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.

Member Avatar for jephthah
0
1K
Member Avatar for riahc3

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) …

Member Avatar for Oxiegen
0
1K
Member Avatar for riahc3

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.

Member Avatar for Narue
0
52
Member Avatar for riahc3

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 …

Member Avatar for shah1248
0
109
Member Avatar for riahc3

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, …

Member Avatar for kvprajapati
0
41
Member Avatar for riahc3

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 …

Member Avatar for kvprajapati
0
139
Member Avatar for riahc3

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> …

Member Avatar for Tom Gunn
0
925
Member Avatar for riahc3

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 …

Member Avatar for Gaiety
0
202
Member Avatar for riahc3

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. …

Member Avatar for jeeter19
0
395
Member Avatar for riahc3

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.

Member Avatar for vincent2085
0
138
Member Avatar for riahc3

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 …

Member Avatar for sknake
0
204
Member Avatar for riahc3

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++?

Member Avatar for mitrmkar
0
122
Member Avatar for riahc3

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); …

Member Avatar for Rashakil Fol
0
132
Member Avatar for riahc3

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 …

Member Avatar for Salem
0
183
Member Avatar for orthographer

My suggestion: Take a C course in some center in your city. WILL help you out...

Member Avatar for WaltP
0
208
Member Avatar for orthographer

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); …

Member Avatar for orthographer
0
324
Member Avatar for hsoni007

[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.

Member Avatar for riahc3
0
201
Member Avatar for riahc3

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.

Member Avatar for ajay.krish123
0
124
Member Avatar for riahc3

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; …

Member Avatar for riahc3
0
134
Member Avatar for riahc3

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 …

Member Avatar for riahc3
0
267

The End.