132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Lukezzz

I have a project that consist of 2 Forms. I am trying to open Form2 with this code but when I compile the project I have this compile error and wonder what this meens and why it doesn´t work. cannot convert from 'System::Windows::Forms::Form ^' to 'Form1::Form2 ^ 1> No user-defined-conversion …

Software Development c++
Member Avatar for Lukezzz
0
105
Member Avatar for Now Then

Hi, I hope someone can help me with a few things that are holding me up now. Please feel free if you can answer just one query - any help is greatly appreciated ! 1) Can I implement a dynamic tooltip when hovering over a dynamically created control? What is …

Software Development
Member Avatar for hieuuk
0
120
Member Avatar for dnmoore

Attached your will find my completed files, I only have one question about the parent class which is called GoeSolids it has to be a generic geometric solid and i dont think I did that quite right. will someone be able to help me fix it? import java.util.Scanner; import java.text.DecimalFormat; …

Software Development java
Member Avatar for dnmoore
0
119
Member Avatar for amgupt01

Hi guys, I am a beginner to Java (I'm only a freshman in high school) and I'm working on a project which involves the need for me to be able to store 11 different strings as a text file. I have it storing the strings with multiple lines so I …

Software Development file-system java
Member Avatar for gprest
0
176
Member Avatar for Shinedevil

I have no idea how to make somthing like this, and i'm kind of new with file I/O. How would you start somthing like this? O.k. here is what I have to save, I have roughly 56+ variables that need to be counted in this. But what I am having …

Software Development c++ ios
Member Avatar for daviddoria
0
140
Member Avatar for GadiK

Hey, I'm having a problem reading from a device attached to my serial port. I have a big application which uses a thread to read from the serial device and writes the data to a log file. The device is set to transmit data at 500Hz, which means that my …

Software Development c++
Member Avatar for GadiK
0
2K
Member Avatar for sumzilla

Hi everyone! I am a beginner python user and have a final project due for the class. I am doing blackjack since it's my favorite card game. I am terrible at python but busted out code for the game itself. I was thinking of making it into a GUI, but …

Software Development gui python
Member Avatar for Stefano Mtangoo
0
357
Member Avatar for Filipe11

Good staff ... I'm doing a program in which I have a class (pharmacies) in which it has a list of medications (List <Medications>), but the medications class has 3 sub ... When I insert an object in the list, everything works fine .... insert such an object from a …

Software Development
Member Avatar for rapture
0
88
Member Avatar for dominic23jones

I am creating a jar file which when run displays an image the image path is hardcoded ie the whole path is written. So whenever the jar file is run on a different computer to my own the image is not shown. So my question is how is it possible …

Software Development image java
Member Avatar for PoovenM
0
158
Member Avatar for srs_grp

i want to write a code for big endian and little endian represntation of message.The msg is trading message.How can i do it with core java? also how can i check data type validity of input given by user and data type is also provided by user. Both Data type …

Software Development java
Member Avatar for AlbertPi
0
230
Member Avatar for karang

Hi How can I set the include path in C++ using command line Regards Karan

Software Development c++
Member Avatar for serkan sendur
0
145
Member Avatar for rawmode

hello our pro asked us to do some application using C# , he said it is simple , but im not pretty good at C# , so i wrote most of the program but after all i came to a dead end , when building/running the project i get 4 …

Software Development c#
Member Avatar for LizR
0
154
Member Avatar for dextrew

create a program that includes two functions named calcavg() and ariance(). The calcavg() function should calculate and return the average of the values stored in an array named testvals. The array should be declared in main() and include the values 89,95,72,83,99,54,86,75,92,73,79,75,82,73. the variance() function should calculate and return the variance …

Software Development c++
Member Avatar for William Hemsworth
0
195
Member Avatar for Lukezzz

I try to find an event for if you rightclick and leftclick a buttoncontrol in a Form application. Simply, to detect if it is the left or right button on the mouse that is clicked. What I want to do is that if I rightclick a button I want the …

Software Development c++
Member Avatar for Lukezzz
0
992
Member Avatar for singoi

Hallo friends, need help for following problem. i have a form where i get the details of particular Combobox. Pic 2.jpg attached. here on right side i got few textboxes say txt1..txt2 .... txt7. on left side of this jpg i got the details of a particular project number. when …

Software Development visual-basic
Member Avatar for singoi
0
90
Member Avatar for Rejinacm

what is the reason why Python doesn't have switch statement ?

Software Development python
Member Avatar for sneekula
0
137
Member Avatar for mrinal.s2008

Hi, I'm writing a template class as below. Trying to add a funtion to browse all the elements of an instance, that needs a vector iterator. When I compile the code getting a list of errors. Two of them typically draw my attention. The Error reads [B][COLOR="Red"]error:[/COLOR][/B] dependent-name ` std::vector<T,std::allocator<_CharT> …

Software Development c++
Member Avatar for mrinal.s2008
0
211
Member Avatar for Manutebecker

I've been reading up on templates and they just seem like so much hastle for so little reward. I can't find anyway to effectively use it over vectors. I am just having a lot of trouble learning them because the concept seems so weird.

Software Development c++
Member Avatar for ~s.o.s~
0
142
Member Avatar for nida afaq

if i want to check that wether the entered character is char type or int type,how can i do that?

Software Development c++
Member Avatar for Narue
0
112
Member Avatar for arunkish

Hi All, Hope I'm now at the right place. Well.... I have a numeric field and I want to format the field as follows in the select statement. How should I do it?? For eg. 9000 - 9,000 10000 - 10,000 120200 - 1,20,200 etc.... Simply an indian format. How …

Software Development vb.net
Member Avatar for sierrainfo
0
135
Member Avatar for ajithraj

I dont know how to solve this..Can anyone help me.. The project is an Intranet aplication... how can a client upload a file/image.... Uploaded file/image should be to the server... Thanks

Software Development client-server java
Member Avatar for peter_budo
0
363
Member Avatar for karang

Hi I want the format of the date like Fri, Dec 12, 2008 Earlier I used CTime today = CTime::GetCurrentTime(); CString chdpl = today.Format("%A, %B %d, %Y" ); for Friday, December 12,2008 But I don't know how to specify Fri in format Regards Karan

Software Development c++
0
106
Member Avatar for ajithraj

haii I have a requirement in which i want to read a file from another machine in the network. I want to know how to set the URL Thanks in advance

Software Development java
Member Avatar for masijade
0
309
Member Avatar for 4ukh

I've a form like newform1 and a table newtbl1... in form I've a unbound checkbox "chkbx1" and in the newtbl1 i have a field name chk_stat which is a checkbox (yes/no) now i want to link this chkbx1 with the chk_stat. mean when i check/uncheck checkbox1 same thing happen in …

Software Development sql visual-basic
Member Avatar for aktharshaik
0
93
Member Avatar for karang

Hi How to get WeekdayName in VC++ I have searched on net and found the use of CTime::GetCurrentTime(); But this is the lengthy method Is there any shorter one. Kindly advice Regards Karan

Software Development c++
Member Avatar for Freaky_Chris
0
191
Member Avatar for Dannielf

I'm doing a program that shows which tickets have been sold for an auditorium. I am a beginner to c++ so I am not sure how I can do the following: a) Allocate an input with a character (e.g. when I enter 'A10' .. how do I allocate 'A' to …

Software Development c++
Member Avatar for mrinal.s2008
0
92
Member Avatar for lulusweety

I got a code. But it is not working compilation error is - undefined symbol try , throw , catch. I am using C++ compler version 3.0. Is this version not enough. Or any header file is to be included for exception handling. Please help me

Software Development c++
Member Avatar for Freaky_Chris
0
167
Member Avatar for karang

Hi I am using the code to get the current date CTime aNow = CTime::GetCurrentTime(); char month[3]; char day[3]; char year[6]; char todaysdate[30]; itoa(aNow.GetMonth(), month, 10); itoa(aNow.GetYear(), year, 10); itoa(aNow.GetDay(), day, 10); strcat(todaysdate,month); I am getting value of month but apart from that I am also getting an unexpected character …

Software Development c++
Member Avatar for cikara21
0
145
Member Avatar for abcd_nima

hai there!am a beginner in java.am familiar with c,c++ and object oriented programming principles.someone please suggest me a book or a student friendly site(online materials preffered) that i can refer to ,and improve my java skills.as a beginner i would also like to know the basic differences b/n c++ that …

Software Development java
Member Avatar for peter_budo
0
96
Member Avatar for wookinhung

Dear Sir(s) I currently have problems with VB6. My problem is: I want to link data in one form with another. For example: If someone inputs an information in a textbox in Form1, I want Form2 to be able to get the inputted information and process it. Thanks wookinhung

Software Development visual-basic
Member Avatar for wookinhung
0
93
Member Avatar for akmed

I am doing C++ assignment, it invols designing a program where the user can put binary numbers and gets a word in result. I have done the first part of the program but i am strugling to do the the last to tasks. Here is what i have done so …

Software Development c c# c++
Member Avatar for AHUazhu
0
127
Member Avatar for firoz.raj

Sir , when i remove distinct keyword it also hang find attachment also rs.Open " SELECT ITEM_CODE, PRODUCTNAME, UNIT FROM PARTDETAIL ORDER BY UCASE(LEFT(TRIM(ITEM_CODE),1)), VAL(MID(TRIM(ITEM_CODE),2,10)) ", con, adOpenDynamic, adLockOptimistic

Software Development visual-basic
Member Avatar for firoz.raj
0
239
Member Avatar for karang

Hi I am using Itoa function to convert int to string. CTime aNow = CTime::GetCurrentTime(); char* month; itoa(aNow.GetMonth(), month, 10); But I am getting error Unhandled exception at 0x00573deb in App_Name.exe: 0xC0000005: Access violation reading location 0x0000323d. Am I missing something Regards Karan

Software Development c++
Member Avatar for karang
0
104
Member Avatar for codedhands

Hi,am trying to search and extract the text [CODE]href="http://www.yahoo.com"[/CODE] from a string <a href="http://www.yahoo.com" id="link1">.Here is my code: [CODE=python] import re p=re.compile(r'\b(href="(.*)"){1}\b') m=p.search('<a href="live.net" link="go2">') print m.group() #Prints: href="live.net" link=" [/CODE] The code above [CODE]Prints: href="live.net" link="[/CODE],but i want to the href="live.net" I need help on this please

Software Development python
Member Avatar for jice
0
126
Member Avatar for rkumaram

Hi, I want to know what exactly happens when constructor fails. Do we have mechanism which will provide us information regarding failure of constructor other than exception. What happens with the memory already allocated to the object when in some circumstances construction of object fails.

Software Development c++
Member Avatar for rkumaram
0
171
Member Avatar for d1s_0n3_guy

I was trying to create a simple struct array database that would be able to look up a user id and print out there first name, last name and age. So I've created a text file with 10 simple names ...here is my code ...can any one help me with …

Software Development c++
Member Avatar for ArkM
0
120
Member Avatar for cusado

when i try to do the following, [code] double root_value, c; int d; d=0; printf("%.0f", root_value); for(c=2; c<root_value;c++) { if(c !=root_value) { if(fmod(root_value,c)==0) { d = 1; } } } if(d == 1) { printf("not prime\n"); } else printf("is prime\n"); [/code] now its part of a program to determine if …

Software Development c
Member Avatar for ArkM
0
120
Member Avatar for Trmsk

Hi, everyone. I'm trying to use gettext in complicate application. It consists of C++ code wrapped in python interface via sip. Is it possible to bind textdomain once in python code, and don't use this function in C++ code? Now I have to use this function twice like is shown …

Software Development c++ python
Member Avatar for Trmsk
0
149
Member Avatar for Rejinacm

I m using Python 2.5. The dll i imported is created using clr. The dll function is returning a string. I m trying to apply "partition" attribute to it. I m not able to do it. Even the partition is not working. I think "all stringd returned from clr are …

Software Development python
Member Avatar for Rejinacm
0
111
Member Avatar for baudday

Hi, I've been looking all over, and I can't seem to figure this out. I have to generate a random number within the range of -99 and 99. I know about RANDOM, but I don't know how I could use that to keep the numbers within this range. Any help …

Software Development shell-scripting
Member Avatar for fpmurphy
0
189
Member Avatar for Se7Olutionyg

[CODE]#include <iostream> #include <cmath> using namespace std; const float G = 32.17; // function declaration float caltime ( float,float, float ); float calheight ( float,float,float); // main function int main() { float theta, cotheta, sitheta, distance, velocity, time, height; cout << " Input the angle of elevation : " << …

Software Development c++
Member Avatar for vmanes
0
105
Member Avatar for Pender

hi, i hope someone can help here with my problem. i have a file with this structure: testtt Login-Lat-Group = CNAme Auth-Type = whatever testt Login-Lat-Group = CName Auth-Type = whatever test Login-Lat-Group = CName Auth-Type = whatever i need now a command (e.g. awk or sed) which deletes the …

Software Development shell-scripting
Member Avatar for eggi
0
163
Member Avatar for carson myers

so I have this working procedure that is basically like func. 09h of int 21h except it terminates at 00h, and it uses 01h-04h as control characters that determine the style of the text. I wrote it in the main procedure of a test program to get it working, and …

Software Development assembly
Member Avatar for carson myers
0
169
Member Avatar for clb8372

[QUOTE]I was given feed back from my instructor and I am not sure how to implement these changes. Here is the feedback: [LIST] In you MAIN module you call a WELCOME MESSAGE module but you don't have one defined in the code. [/LIST][LIST]Why do you have a variable named ItemName? …

Software Development c++ database-design
Member Avatar for VernonDozier
0
288
Member Avatar for dotNetDummi

Hi all, I'm new to VB and I am doing a lottery program. I managed to produce 7 random numbers but I am stuck with the sorting. All I can think of is to use if statements to do comparsion, but that will be a long way to do it …

Software Development visual-basic
Member Avatar for cfrutos
0
129
Member Avatar for dimplomat15

please can someone help me with this HW the instructions are : # The computer should ask the player for the largest possible value which could be generated (N) # The maximum number of guesses should be set equal to 1/2 N. (Don't prompt the user). # When the game …

Software Development java
Member Avatar for dimplomat15
0
145
Member Avatar for anbuninja

so i think we might have nested loops in my upcoming final. so im practicing some challanges. heres a program sample For how many years have you collected rainfall data? 2 Enter the rainfall (in inches) for month 1 of year 1: 4 Enter the rainfall (in inches) for month …

Software Development c++
Member Avatar for deviantrunner
0
184
Member Avatar for CoolAtt

plz explain how to do this the proper way. [CODE]main.c ===== struct names{ // definitions ----- ---- ---- } struct names x; function1(&x); file2.c ====== function1(struct names *x){ ---- ---- ---- }[/CODE] am getting warning: [B]'struct names' declared inside parameter list[/B]

Software Development c
Member Avatar for ArkM
0
135
Member Avatar for ItecKid

Hello, I am trying to write the merge sort algorithm. My code is as follows: [code=c++] #include <iostream> #include <cstdlib> using namespace std; void m_sort(int list[], int temp[], int left, int right); void merge(int list[], int temp[], int left, int mid, int right); void mergeSort(int list[], int size) { int …

Software Development algorithm c++
Member Avatar for ItecKid
0
134
Member Avatar for brixton

Hello, I have the following setup, where vertexArray is a pointer to float (float*). It is supposed to check if the pointer has been allocated memory for. If it hasn't, it should allocate memory, but if it's already been done it will go on to put values in the array. …

Software Development c++
Member Avatar for ArkM
0
76

The End.